/**
 * Admin styles for A1AI Chatbot
 *
 * @package    A1AI
 * @subpackage A1AI/admin/css
 */

/* Admin Common Styles */
.a1ai-wrap {
    margin: 20px 20px 0 0;
}

.a1ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.a1ai-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
}

.a1ai-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    padding: 15px;
}

.a1ai-card h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Dashboard specific styles */
.a1ai-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

.a1ai-stats-card {
    padding: 15px;
    border-radius: 3px;
    background: #f9f9f9;
}

.a1ai-stats-number {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

/* Settings form styles */
.a1ai-settings-form .form-table th {
    width: 200px;
    padding: 15px 10px;
}

.a1ai-api-key-field {
    width: 350px;
}

/* Chatbot management styles */
.a1ai-chatbots-list {
    margin-top: 20px;
}

.a1ai-chatbot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.a1ai-chatbot-name {
    font-weight: 600;
}

.a1ai-chatbot-actions {
    display: flex;
    gap: 10px;
}

/* Form field styles */
.a1ai-form-field {
    margin-bottom: 15px;
}

.a1ai-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.a1ai-form-field input[type="text"],
.a1ai-form-field input[type="number"],
.a1ai-form-field textarea,
.a1ai-form-field select {
    width: 100%;
    max-width: 400px;
}

.a1ai-form-field textarea {
    min-height: 100px;
}

/* Tabs navigation */
.a1ai-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Tab content */
.a1ai-tab-content {
    display: none;
}

.a1ai-tab-content.active {
    display: block;
}

/* Show first tab by default */
.a1ai-tab-content#tab-chatbots {
    display: block;
}

.a1ai-tabs-nav a {
    padding: 10px 15px;
    margin-right: 5px;
    text-decoration: none;
    color: #555;
    border: 1px solid transparent;
    border-bottom: none;
}

.a1ai-tabs-nav a.active {
    border-color: #ccc;
    background: #fff;
    border-bottom-color: #fff;
    margin-bottom: -1px;
    color: #000;
}

/* Conversation Settings Styles */
.a1ai-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.a1ai-section h3 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 16px;
}

.a1ai-section p {
    margin-bottom: 15px;
    color: #666;
}

/* Messages and Notices */
.a1ai-notice {
    padding: 10px 15px;
    margin: 15px 0;
    border-left: 4px solid #00a0d2;
    background: #f7f7f7;
}

.a1ai-notice.a1ai-notice-warning {
    border-color: #ffb900;
}

.a1ai-notice.a1ai-notice-error {
    border-color: #dc3232;
}

.a1ai-notice.a1ai-notice-success {
    border-color: #46b450;
}

/* Modal styles */
.a1ai-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a1ai-modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.a1ai-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a1ai-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.a1ai-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a1ai-modal-close:hover {
    color: #000;
}

.a1ai-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Conversations side-by-side layout */
.a1ai-conversations-container {
    display: flex;
    gap: 20px;
    height: 600px;
}

.a1ai-conversations-table {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: auto;
}

.a1ai-conversations-table table {
    width: 100%;
}

.a1ai-conversations-table tbody {
    display: table-row-group;
}

.a1ai-conversation-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.a1ai-conversation-row:hover {
    background-color: #f9f9f9;
}

.a1ai-conversation-row.selected {
    background-color: #e7f3ff;
}

/* Conversation preview panel */
.a1ai-conversation-preview {
    width: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.a1ai-preview-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a1ai-preview-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.a1ai-preview-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a1ai-preview-close:hover {
    color: #000;
}

.a1ai-preview-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.a1ai-preview-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

.a1ai-preview-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.a1ai-preview-info {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.a1ai-preview-meta {
    margin-bottom: 10px;
}

.a1ai-preview-meta span {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.a1ai-preview-meta .a1ai-preview-chatbot {
    font-weight: 600;
    color: #333;
}

.a1ai-preview-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

/* Conversation messages styling */
.a1ai-conversation-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
}

.a1ai-conversation-message.user {
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
}

.a1ai-conversation-message.assistant {
    background-color: #f9f9f9;
    border-left: 4px solid #46b450;
}

.a1ai-conversation-message.system {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.a1ai-conversation-message .role {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #666;
}

.a1ai-conversation-message .content {
    margin-bottom: 5px;
    line-height: 1.4;
}

.a1ai-conversation-message .time {
    font-size: 11px;
    color: #999;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .a1ai-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .a1ai-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .a1ai-chatbot-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .a1ai-chatbot-actions {
        justify-content: flex-start;
    }
    
    .a1ai-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .a1ai-modal-body {
        max-height: 70vh;
    }
    
    /* Conversations responsive layout */
    .a1ai-conversations-container {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .a1ai-conversations-table {
        height: 400px;
    }
    
    .a1ai-conversation-preview {
        width: 100%;
        height: 400px;
    }
} 

/* Upgrades, Add-Ons & Services Tab Styles */
.a1ai-upgrades-section {
    margin-bottom: 32px;
    animation: a1ai-fadein 0.8s;
}
.a1ai-upgrades-columns {
    display: flex;
    gap: 32px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.a1ai-upgrade-card {
    flex: 1 1 260px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
    border: 2px solid #4f8cff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(79,140,255,0.08);
    padding: 24px 20px 20px 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.a1ai-upgrade-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(79,140,255,0.18);
    z-index: 2;
}
.a1ai-upgrade-card h4 {
    margin-top: 0;
    color: #2a3d6a;
    font-size: 1.2em;
    margin-bottom: 10px;
}
.a1ai-upgrade-card ul {
    margin: 0 0 16px 0;
    padding-left: 18px;
}
.a1ai-upgrade-card li {
    margin-bottom: 6px;
    font-size: 1em;
}
.a1ai-upgrade-link {
    font-weight: 600;
    font-size: 1em;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(79,140,255,0.10);
    transition: background 0.2s, color 0.2s;
}
.a1ai-upgrade-card.a1ai-upgrade-standard {
    border-color: #4f8cff;
}
.a1ai-upgrade-card.a1ai-upgrade-enterprise {
    border-color: #ffb347;
    background: linear-gradient(135deg, #fff7e0 0%, #ffe7b0 100%);
}
.a1ai-upgrade-card.a1ai-upgrade-enterprise .a1ai-upgrade-link {
    background: #ffb347;
    color: #fff;
}
.a1ai-upgrades-title {
    font-size: 1.5em;
    margin-bottom: 18px;
    color: #2a3d6a;
    letter-spacing: 0.5px;
}
.a1ai-addons-section, .a1ai-services-section {
    margin-bottom: 32px;
    background: #f8fafd;
    border-left: 4px solid #4f8cff;
    padding: 18px 22px 12px 22px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(79,140,255,0.04);
    animation: a1ai-fadein 1.2s;
}
.a1ai-addons-section h3, .a1ai-services-section h3 {
    margin-top: 0;
    color: #2a3d6a;
}
.a1ai-addons-link, .a1ai-services-link {
    margin-top: 10px;
    display: inline-block;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(79,140,255,0.10);
    transition: background 0.2s, color 0.2s;
}
@media (max-width: 900px) {
    .a1ai-upgrades-columns {
        flex-direction: column;
        gap: 18px;
    }
}
@keyframes a1ai-fadein {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
} 

/* Upgrades Tab Flashy Enhancements */
.a1ai-upgrades-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 20%, #e0e7ff 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, #ffe7b0 0%, transparent 70%);
    opacity: 0.25;
    animation: a1ai-bg-move 8s linear infinite alternate;
}
@keyframes a1ai-bg-move {
    0% { background-position: 80% 20%, 20% 80%; }
    100% { background-position: 60% 40%, 40% 60%; }
}
.a1ai-tab-content#tab-upgrades { position: relative; overflow: hidden; }

.a1ai-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 7px;
    font-size: 1.2em;
    color: #4f8cff;
}
.a1ai-icon-stars::before { content: '\2605\2605'; color: #ffb347; }
.a1ai-icon-rocket::before { content: '\1F680'; color: #4f8cff; }
.a1ai-icon-puzzle::before { content: '\1F9E9'; color: #6c63ff; }
.a1ai-icon-cog::before { content: '\2699'; color: #2a3d6a; }
.a1ai-icon-arrow::before { content: '\2192'; color: inherit; }

.a1ai-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #ffb347;
    color: #fff;
    font-size: 0.85em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(255,179,71,0.10);
    z-index: 2;
    letter-spacing: 0.5px;
    animation: a1ai-badge-pop 1.2s;
}
.a1ai-badge-popular { background: #4f8cff; }
.a1ai-badge-value { background: #ffb347; }
@keyframes a1ai-badge-pop {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}
.a1ai-glow {
    box-shadow: 0 0 24px 4px #ffb34755, 0 4px 24px rgba(79,140,255,0.08);
    border-width: 3px;
    animation: a1ai-glow-pulse 2.5s infinite alternate;
}
@keyframes a1ai-glow-pulse {
    0% { box-shadow: 0 0 24px 4px #ffb34755, 0 4px 24px rgba(79,140,255,0.08); }
    100% { box-shadow: 0 0 36px 10px #ffb34799, 0 8px 32px rgba(79,140,255,0.18); }
}
.a1ai-section-divider {
    border: none;
    border-top: 2px dashed #e0e7ff;
    margin: 36px 0 32px 0;
    width: 100%;
    opacity: 0.7;
}
.a1ai-btn-flash {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s, background 0.2s;
}
.a1ai-btn-flash::after {
    content: '';
    position: absolute;
    left: -75%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.7) 100%);
    transform: skewX(-20deg);
    transition: left 0.4s;
    pointer-events: none;
}
.a1ai-btn-flash:hover::after {
    left: 120%;
    transition: left 0.4s;
}
.a1ai-btn-flash:hover, .a1ai-upgrade-link:hover {
    box-shadow: 0 4px 16px #4f8cff33;
    background: #e0e7ff;
    color: #2a3d6a;
}

/* Upgrades tab — refreshed content elements */
.a1ai-upgrades-intro {
    font-size: 1.02em;
    color: #4a5568;
    max-width: 760px;
    margin: -8px 0 20px 0;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}
.a1ai-card-price {
    margin: 4px 0 6px 0;
    font-size: 1.1em;
    color: #2a3d6a;
}
.a1ai-card-price strong {
    font-size: 1.7em;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.a1ai-card-price span {
    color: #6b7280;
    font-size: 0.9em;
    margin-left: 2px;
}
.a1ai-card-tagline {
    margin: 0 0 12px 0;
    color: #4a5568;
    font-size: 0.95em;
    font-style: italic;
}
.a1ai-workspace-section {
    margin: 8px 0 36px 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,179,71,0.18) 0%, transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(79,140,255,0.22) 0%, transparent 50%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #fff;
    border: 2px solid transparent;
    background-clip: padding-box;
    padding: 36px 32px 30px 32px;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(108,99,255,0.3),
        0 12px 40px rgba(67,56,202,0.35),
        0 4px 16px rgba(108,99,255,0.2);
    animation: a1ai-fadein 0.8s, a1ai-workspace-pulse 3.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
    overflow: hidden;
}
@keyframes a1ai-workspace-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(108,99,255,0.3),
            0 12px 40px rgba(67,56,202,0.35),
            0 4px 16px rgba(108,99,255,0.2);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(255,179,71,0.4),
            0 16px 50px rgba(67,56,202,0.5),
            0 4px 24px rgba(255,179,71,0.3);
    }
}
.a1ai-workspace-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255,179,71,0.12) 60deg,
        transparent 120deg,
        rgba(79,140,255,0.15) 200deg,
        transparent 280deg,
        rgba(255,179,71,0.1) 340deg,
        transparent 360deg
    );
    animation: a1ai-workspace-rotate 14s linear infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes a1ai-workspace-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.a1ai-workspace-section > * {
    position: relative;
    z-index: 1;
}
.a1ai-workspace-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%);
    color: #1e1b4b;
    font-size: 0.72em;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(255,140,66,0.5);
    z-index: 3;
    animation: a1ai-badge-pop 1s ease-out, a1ai-workspace-badge-bounce 2.2s ease-in-out infinite;
}
@keyframes a1ai-workspace-badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.a1ai-workspace-header {
    margin-bottom: 18px;
    max-width: 760px;
}
.a1ai-workspace-eyebrow {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffb347;
    margin-bottom: 6px;
}
.a1ai-workspace-title {
    margin: 0 0 10px 0 !important;
    font-size: 2.1em !important;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff !important;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.a1ai-workspace-lead {
    margin: 0;
    color: rgba(255,255,255,0.88);
    font-size: 1.05em;
    line-height: 1.55;
}
.a1ai-workspace-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 4px 0 24px 0;
    padding: 14px 16px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,179,71,0.25);
    border-radius: 10px;
}
.a1ai-workspace-stat {
    text-align: center;
    padding: 4px 6px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.a1ai-workspace-stat:last-child { border-right: none; }
@media (max-width: 700px) {
    .a1ai-workspace-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; }
    .a1ai-workspace-stat:last-child { border-bottom: none; }
}
.a1ai-stat-num {
    display: block;
    font-size: 1.8em;
    font-weight: 800;
    background: linear-gradient(135deg, #ffb347 0%, #ffd089 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 2px;
}
.a1ai-stat-label {
    display: block;
    font-size: 0.78em;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.a1ai-workspace-subtitle {
    margin: 6px 0 12px 0 !important;
    color: #fff !important;
    font-size: 0.82em !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.7) !important;
}
.a1ai-workspace-features {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.a1ai-workspace-features li {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.93em;
    line-height: 1.5;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.a1ai-workspace-features li:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,179,71,0.5);
}
.a1ai-workspace-features li strong {
    color: #ffb347;
    font-weight: 700;
    font-size: 1.02em;
    display: block;
}
.a1ai-workspace-features li span {
    color: rgba(255,255,255,0.82);
}
.a1ai-workspace-bridge {
    margin: 4px 0 20px 0;
    padding: 16px 20px;
    background: rgba(255,179,71,0.08);
    border: 1px solid rgba(255,179,71,0.3);
    border-left: 4px solid #ffb347;
    border-radius: 10px;
}
.a1ai-workspace-bridge-title {
    margin: 0 0 10px 0 !important;
    color: #ffb347 !important;
    font-size: 1em !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.a1ai-workspace-bridge-list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.88);
}
.a1ai-workspace-bridge-list li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 0.95em;
}
.a1ai-workspace-bridge-list li::marker {
    color: #ffb347;
}
.a1ai-workspace-cta-note {
    margin: 0 0 14px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9em;
    font-style: italic;
}

/* "...and so much more" block inside Workspace */
.a1ai-workspace-more {
    margin: 4px 0 22px 0;
    padding: 18px 20px 14px 20px;
    background: rgba(0,0,0,0.18);
    border: 1px dashed rgba(255,179,71,0.35);
    border-radius: 12px;
}
.a1ai-workspace-more-title {
    margin: 0 0 14px 0 !important;
    color: #ffd089 !important;
    font-size: 1.05em !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.a1ai-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffb347;
    box-shadow: 0 0 0 0 rgba(255,179,71,0.7);
    animation: a1ai-dot-pulse 1.8s infinite;
}
@keyframes a1ai-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,179,71,0.7); }
    70% { box-shadow: 0 0 0 12px rgba(255,179,71,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,179,71,0); }
}
.a1ai-workspace-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.a1ai-workspace-more-item {
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px 12px 12px 14px;
    color: rgba(255,255,255,0.82);
    font-size: 0.9em;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.a1ai-workspace-more-item:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,179,71,0.45);
}
.a1ai-workspace-more-item strong {
    color: #fff;
    font-weight: 700;
    font-size: 1.02em;
    display: block;
}
.a1ai-more-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%);
    color: #1e1b4b;
    font-size: 0.62em;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.a1ai-more-tag-soon {
    background: rgba(255,255,255,0.15);
    color: #c7d2fe;
    border: 1px solid rgba(199,210,254,0.3);
}
.a1ai-workspace-more-foot {
    margin: 14px 0 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.88em;
    text-align: center;
    font-style: italic;
}

/* FAQ — richer bullet lists & module groups */
.a1ai-faq-list {
    margin: 8px 4px 8px 22px;
    padding: 0;
    color: #4a5568;
    line-height: 1.55;
    font-size: 0.95em;
}
.a1ai-faq-list li {
    margin-bottom: 5px;
}
.a1ai-faq-list li::marker {
    color: #4f8cff;
}
.a1ai-faq-list li strong {
    color: #2a3d6a;
}
.a1ai-faq-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 12px 0 6px 0;
}
.a1ai-faq-module-group {
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 12px 14px 10px 14px;
}
.a1ai-faq-module-group h5 {
    margin: 0 0 8px 0;
    color: #4f8cff;
    font-size: 0.78em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e7ff;
}
.a1ai-faq-module-group ul {
    margin: 0 0 0 18px !important;
    padding: 0;
}
.a1ai-faq-module-group ul li {
    font-size: 0.92em;
    margin-bottom: 3px;
    color: #2a3d6a;
}
.a1ai-workspace-link {
    margin-top: 4px !important;
    display: inline-block;
    font-weight: 700 !important;
    font-size: 1.02em !important;
    padding: 10px 22px !important;
    height: auto !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%) !important;
    color: #1e1b4b !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(255,140,66,0.4) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    text-shadow: none !important;
}
.a1ai-workspace-link:hover {
    background: linear-gradient(135deg, #ffc266 0%, #ffa05c 100%) !important;
    color: #1e1b4b !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,140,66,0.55) !important;
}
.a1ai-workspace-link .a1ai-icon {
    color: #1e1b4b !important;
    font-weight: 800;
}
@media (max-width: 700px) {
    .a1ai-workspace-section { padding: 26px 20px 22px 20px; }
    .a1ai-workspace-title { font-size: 1.6em !important; }
}
.a1ai-services-pricing {
    list-style: none;
    padding: 0;
    margin: 12px 0 14px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 18px;
}
.a1ai-services-pricing li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    font-size: 0.97em;
}
.a1ai-svc-name {
    color: #2a3d6a;
    font-weight: 500;
}
.a1ai-svc-price {
    color: #4f8cff;
    font-weight: 700;
    font-size: 0.95em;
    white-space: nowrap;
}
.a1ai-faq-section {
    margin-bottom: 24px;
    padding: 18px 22px 14px 22px;
    background: #fafbff;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    position: relative;
    z-index: 1;
}
.a1ai-faq-section h3 {
    margin-top: 0;
    color: #2a3d6a;
}
.a1ai-faq-item {
    border-bottom: 1px solid #e0e7ff;
    padding: 10px 0;
}
.a1ai-faq-item:last-child {
    border-bottom: none;
}
.a1ai-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #2a3d6a;
    padding: 6px 4px;
    list-style: none;
    position: relative;
    padding-right: 28px;
    transition: color 0.15s;
}
.a1ai-faq-item summary::-webkit-details-marker { display: none; }
.a1ai-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3em;
    color: #4f8cff;
    font-weight: 400;
    transition: transform 0.2s;
}
.a1ai-faq-item[open] summary::after {
    content: '\2212';
    transform: translateY(-50%) rotate(0deg);
}
.a1ai-faq-item summary:hover {
    color: #4f8cff;
}
.a1ai-faq-item p {
    margin: 8px 4px 6px 4px;
    color: #4a5568;
    line-height: 1.55;
    font-size: 0.97em;
}


/* A1AI Assistant Styles */
.a1ai-assistant-card {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.a1ai-assistant-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.a1ai-assistant-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
    flex: 1;
}

.a1ai-assistant-message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
    gap: 12px;
}

.a1ai-assistant-message:last-child {
    margin-bottom: 0;
}

.a1ai-assistant-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a1ai-assistant-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.a1ai-assistant-content {
    flex: 1;
    background: #fff;
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.a1ai-assistant-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.a1ai-assistant-content p:last-child {
    margin-bottom: 0;
}

.a1ai-assistant-user .a1ai-assistant-content {
    background: #0073aa;
    color: #fff;
    margin-left: auto;
}

.a1ai-assistant-user .a1ai-assistant-avatar {
    order: 2;
}

.a1ai-assistant-user .a1ai-assistant-content {
    order: 1;
}

.a1ai-assistant-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.a1ai-assistant-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.a1ai-assistant-input button {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.a1ai-assistant-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.a1ai-assistant-quick-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.a1ai-assistant-quick-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.a1ai-assistant-quick-btn:active {
    transform: translateY(1px);
}

/* Responsive adjustments for quick actions */
@media (max-width: 768px) {
    .a1ai-assistant-quick-actions {
        gap: 8px;
        margin-top: 15px;
    }
    
    .a1ai-assistant-quick-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Typing indicator styles */
#typing-indicator .a1ai-assistant-content {
    background: #f0f0f0;
    color: #666;
    font-style: italic;
}

/* Contact form styles */
.a1ai-contact-form input,
.a1ai-contact-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.a1ai-contact-form button {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.a1ai-contact-form button:hover {
    background: #005a87;
} 

/* Logo container and fallback styles */
.a1ai-logo-container {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a1ai-logo-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
}

/* Ensure logo image is properly sized */
.a1ai-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Message pair styles for adjust functionality */
.a1ai-message-pair {
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fafafa;
}

.a1ai-message-pair-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.a1ai-message-pair-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Adjust button styles */
.a1ai-adjust-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    font-family: inherit;
}

.a1ai-adjust-button:hover {
    background: #135e96;
    color: white;
}

.a1ai-adjust-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.a1ai-adjust-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Adjust actions container */
.a1ai-adjust-actions {
    border-top: 1px solid #e1e1e1;
    padding-top: 15px;
    margin-top: 15px;
}

/* Enhanced conversation message styles for paired display */
.a1ai-message-pair .a1ai-conversation-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

.a1ai-message-pair .a1ai-conversation-message.user {
    background: #f0f8ff;
    border-left-color: #2271b1;
}

.a1ai-message-pair .a1ai-conversation-message.assistant {
    background: #f9f9f9;
    border-left-color: #46b450;
}

.a1ai-message-pair .a1ai-conversation-message:last-of-type {
    margin-bottom: 0;
}

/* Message role styling in pairs */
.a1ai-message-pair .role {
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: capitalize;
    font-size: 12px;
    color: #666;
}

/* Message content in pairs */
.a1ai-message-pair .content {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Message time in pairs */
.a1ai-message-pair .time {
    font-size: 11px;
    color: #888;
}

/* Clickable links in admin conversation preview */
.a1ai-conversation-message .content a {
    color: #0073aa;
    text-decoration: underline;
    word-break: break-all;
    transition: color 0.2s ease;
}

.a1ai-conversation-message .content a:hover {
    color: #005177;
    text-decoration: none;
}

.a1ai-conversation-message .content a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Internal links styling in admin */
.a1ai-link-internal {
    color: #0073aa !important;
    font-weight: 500;
}

.a1ai-link-internal:hover {
    color: #005177 !important;
    text-decoration: underline !important;
}

/* External links styling in admin */
.a1ai-link-external {
    color: #0073aa !important;
    font-weight: 500;
    position: relative;
}

.a1ai-link-external:hover {
    color: #005177 !important;
    text-decoration: underline !important;
}

.a1ai-link-external::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 2px;
}
/* =====================================================================
   A1Ai Workspace upsell surfaces (A1AI_Links renderers)
   Shared by the Upgrade tab, the Dashboard and every locked feature.
   ================================================================== */

/* --- Workspace plan tiers inside the dark promo panel --- */
.a1ai-workspace-tiers {
    margin: 18px 0 6px 0;
}
.a1ai-workspace-tier-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 10px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.a1ai-workspace-tier-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
}
.a1ai-tier-name {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.95em;
}
.a1ai-tier-price {
    color: #ffb347;
    font-weight: 800;
    white-space: nowrap;
}

/* --- Button row at the bottom of the promo panel --- */
.a1ai-workspace-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.a1ai-workspace-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
    border-radius: 8px !important;
    padding: 9px 18px !important;
    height: auto !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: background 0.2s, border-color 0.2s;
}
.a1ai-workspace-secondary:hover,
.a1ai-workspace-secondary:focus {
    background: rgba(255,255,255,0.14) !important;
    border-color: rgba(255,255,255,0.8) !important;
    color: #fff !important;
}

/* --- Compact Workspace nudge (locked / limited features) --- */
.a1ai-ws-nudge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    padding: 20px 22px;
    border-radius: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 12%, rgba(255,179,71,0.20) 0%, transparent 45%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
    box-shadow: 0 6px 22px rgba(67,56,202,0.28);
}
.a1ai-ws-nudge-body {
    flex: 1 1 380px;
    min-width: 280px;
}
.a1ai-ws-nudge-eyebrow {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #ffb347;
    margin-bottom: 6px;
}
.a1ai-ws-nudge-title {
    margin: 0 0 8px 0 !important;
    color: #fff !important;
    font-size: 1.18em !important;
    font-weight: 700;
    line-height: 1.35;
}
.a1ai-ws-nudge-text {
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 0.96em;
    line-height: 1.55;
}
.a1ai-ws-nudge-list {
    margin: 10px 0 0 18px !important;
    padding: 0;
    color: rgba(255,255,255,0.86);
}
.a1ai-ws-nudge-list li {
    font-size: 0.93em;
    margin-bottom: 4px;
    line-height: 1.45;
}
.a1ai-ws-nudge-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.a1ai-ws-nudge-cta {
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%) !important;
    color: #1e1b4b !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 20px !important;
    height: auto !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 6px 18px rgba(255,140,66,0.38) !important;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.a1ai-ws-nudge-cta:hover,
.a1ai-ws-nudge-cta:focus {
    background: linear-gradient(135deg, #ffc266 0%, #ffa05c 100%) !important;
    color: #1e1b4b !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255,140,66,0.5) !important;
}
.a1ai-ws-nudge-link {
    color: rgba(255,255,255,0.82) !important;
    font-size: 0.9em;
    text-decoration: underline;
}
.a1ai-ws-nudge-link:hover,
.a1ai-ws-nudge-link:focus {
    color: #ffb347 !important;
}
@media (max-width: 782px) {
    .a1ai-ws-nudge-actions {
        flex-direction: row;
        align-items: center;
    }
}

/* --- "Talk to a human" contact block --- */
.a1ai-contact-block {
    margin: 20px 0;
    padding: 20px 22px;
    background: #f7f9ff;
    border: 1px solid #dbe4ff;
    border-radius: 10px;
}
.a1ai-contact-block-title {
    margin: 0 0 6px 0 !important;
    color: #2a3d6a;
    font-size: 1.1em !important;
}
.a1ai-contact-block-lead {
    margin: 0 0 12px 0;
    color: #4a5568;
    line-height: 1.55;
}
.a1ai-contact-block-links {
    margin: 0 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.a1ai-contact-block-meta {
    margin: 0;
    font-size: 0.93em;
    color: #4a5568;
}
.a1ai-contact-block-hours {
    color: #718096;
}

/* Workspace tie-in note under the Done-For-You services list */
.a1ai-services-note {
    margin: 12px 0 0 0;
    font-size: 0.94em;
    color: #4a5568;
    line-height: 1.55;
}
