/* ============================================
   DASHBOARD STYLES - YourWebAgent
   ============================================ */

/* CSS Variables - Matching Landing Page Design System */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-sidebar: #1a1a1a;
    --accent-cyan: #00D9FF;
    --accent-cyan-dark: #05b3cb;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6b7280;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-glow-cyan: 0 0 20px rgba(0, 217, 255, 0.2);
    --shadow-glow-robot: drop-shadow(0 0 30px rgba(0, 217, 255, 0.15));
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Selection Styles */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: var(--text-primary);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #2d2d2d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d3d3d;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.dashboard-nav {
    height: 64px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 50;
    flex-shrink: 0;
}

.dashboard-nav__left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.dashboard-nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.dashboard-nav__logo:hover {
    opacity: 0.9;
}

.dashboard-nav__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--accent-cyan), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.dashboard-nav__logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.dashboard-nav__search {
    max-width: 28rem;
    width: 100%;
    position: relative;
}

.dashboard-nav__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.25rem;
    pointer-events: none;
}

.dashboard-nav__search-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.dashboard-nav__search-input::placeholder {
    color: var(--text-tertiary);
}

.dashboard-nav__search-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 1px var(--accent-cyan);
}

.dashboard-nav__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-nav__notifications {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.dashboard-nav__notifications:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-nav__divider {
    height: 32px;
    width: 1px;
    background: var(--border-subtle);
    margin: 0 0.5rem;
}

.dashboard-nav__user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.dashboard-nav__user-info {
    text-align: right;
}

.dashboard-nav__user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-nav__user-plan {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-nav__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.2);
}

.dashboard-nav__user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   LAYOUT
   ============================================ */
.dashboard-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ============================================
   SIDEBAR
   ============================================ */
.dashboard-sidebar {
    width: 256px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.dashboard-sidebar__content {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar__cta {
    width: 100%;
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow-cyan);
}

.dashboard-sidebar__cta:hover {
    background: var(--accent-cyan-dark);
}

.dashboard-sidebar__cta:active {
    transform: scale(0.98);
}

.dashboard-sidebar__section-title {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0.75rem;
    margin-bottom: 0.75rem;
}

.dashboard-sidebar__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-link--inactive {
    opacity: 0.5;
}

.sidebar-link__icon {
    font-size: 1.25rem;
}

.sidebar-link__text {
    flex: 1;
}

.sidebar-link__status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.sidebar-link__status--offline {
    background: #6b7280;
    box-shadow: none;
}

.dashboard-sidebar__footer {
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-link--logout {
    color: #f87171 !important;
}

.sidebar-link--logout:hover {
    color: #fca5a5 !important;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.dashboard-main {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
    position: relative;
}

/* Background Glow Effects */
.dashboard-main__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.dashboard-main__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.dashboard-main__glow--top {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 217, 255, 0.05);
}

.dashboard-main__glow--bottom {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.05);
}

/* Agent Dashboard Main Content */
#dashboard-main-content {
    position: relative;
    z-index: 10;
}

/* ── OFFLINE STATUS BADGE ── */
.status-offline {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* ── OFFLINE DOT IN SIDEBAR ── */
.agent-status.offline {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* ── CONNECT TO WEBSITE SECTION ── */
.connect-widget-section {
    background: rgba(245, 158, 11, 0.04);
    border: 2px dashed rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.offline-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.offline-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.offline-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 0 0 0.4rem;
}

.offline-text p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.6;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #00E5FF 0%, #0099cc 100%);
    color: #0a0e1a;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.25);
    font-family: 'Inter', sans-serif;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.4);
    background: linear-gradient(135deg, #33eeff 0%, #00E5FF 100%);
}

.connect-btn:active {
    transform: translateY(0);
}

/* Empty State */
.dashboard-empty {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.dashboard-empty__robot {
    position: relative;
    margin-bottom: 2rem;
    filter: var(--shadow-glow-robot);
}

.dashboard-empty__robot-glow {
    position: absolute;
    inset: 0;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 50%;
    filter: blur(32px);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.dashboard-empty__robot-icon {
    position: relative;
    width: 128px;
    height: 128px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.dashboard-empty__robot-icon-symbol {
    font-size: 4rem;
    color: var(--accent-cyan);
    font-weight: 300;
}

.dashboard-empty__robot-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.5;
}

.dashboard-empty__robot-badge {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.dashboard-empty__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.dashboard-empty__description {
    max-width: 28rem;
    font-size: 1.125rem;
    color: var(--text-tertiary);
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.dashboard-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.dashboard-empty__btn-primary {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-glow-cyan);
}

.dashboard-empty__btn-primary:hover {
    background: var(--accent-cyan-dark);
}

.dashboard-empty__btn-primary:active {
    transform: scale(0.98);
}

.dashboard-empty__btn-secondary {
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.dashboard-empty__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-empty__features {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
}

.dashboard-empty__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.dashboard-empty__feature-dot {
    width: 4px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 50%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .dashboard-nav__search {
        display: none;
    }

    .dashboard-nav__user-info {
        display: none;
    }

    .dashboard-sidebar {
        width: 72px;
    }

    .dashboard-sidebar__cta span:last-child,
    .sidebar-link__text,
    .dashboard-sidebar__section-title {
        display: none;
    }

    .dashboard-empty__title {
        font-size: 1.75rem;
    }

    .dashboard-empty__description {
        font-size: 1rem;
    }

    .dashboard-empty__features {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-empty__feature-dot {
        display: none;
    }
}

@media (min-width: 769px) {
    .dashboard-nav__search {
        display: block;
    }
}

@media (min-width: 640px) {
    .dashboard-nav__user-info {
        display: block;
    }
}

/* ============================================
   CREATE AGENT MODAL
   ============================================ */

/* Modal Container - Hidden by default */
.create-agent-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    /* ⚡ OPTIMIZED: Reduced from 300ms to 150ms for snappier feel */
    transition: opacity 150ms ease, visibility 150ms ease;
}

/* Active State - Show Modal */
.create-agent-modal.modal--active {
    opacity: 1;
    visibility: visible;
}

.create-agent-modal.modal--active .create-agent-modal__card {
    transform: scale(1);
}

/* Dark Backdrop - OPTIMIZED */
.create-agent-modal__overlay {
    position: absolute;
    inset: 0;
    /* ⚡ OPTIMIZED: Removed backdrop-filter blur (VERY expensive!) */
    /* Increased opacity from 0.8 to 0.9 for better coverage without blur */
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

/* Modal Card - OPTIMIZED */
.create-agent-modal__card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    padding: 40px;

    /* ⚡ OPTIMIZED: Simplified shadow from 3 layers to 2 */
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(0, 217, 255, 0.15);

    transform: scale(0.9);
    /* ⚡ OPTIMIZED: GPU acceleration + reduced duration from 300ms to 150ms */
    transform: translateZ(0) scale(0.9);
    transition: transform 150ms ease;

    /* ⚡ OPTIMIZED: Removed expensive backdrop-filter blur (20px was VERY slow!) */
    /* Made background MORE opaque (0.98) so blur isn't needed */
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.98) 0%,
            rgba(30, 30, 30, 0.96) 100%);

    /* Subtle gradient border glow */
    border: 1px solid rgba(0, 217, 255, 0.15);
}

/* Modal Header */
.create-agent-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.create-agent-modal__header-text {
    flex: 1;
}

.create-agent-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.create-agent-modal__subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Close Button - OPTIMIZED */
.create-agent-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    /* ⚡ OPTIMIZED: Replaced 'all' with specific properties, reduced to 150ms */
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    flex-shrink: 0;
}

.create-agent-modal__close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.create-agent-modal__close:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.create-agent-modal__close .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Progress Indicator */
.create-agent-modal__progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot--active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

/* Active progress line (for future steps) */
.progress-dot--active~.progress-line::before {
    width: 100%;
}

/* Form */
.create-agent-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Field */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-field__required {
    color: #EF4444;
    font-weight: 600;
}

.form-field__optional {
    color: var(--text-muted, #6b7280);
    font-weight: 400;
    font-size: 0.8125rem;
}

.form-field__help {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-top: -0.25rem;
}

.form-field__counter {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    text-align: right;
    margin-top: -0.25rem;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-tertiary);
    font-size: 1.25rem;
    pointer-events: none;
    /* ⚡ OPTIMIZED: Reduced from 200ms to 150ms */
    transition: color 150ms ease;
}

/* Form Input - OPTIMIZED */
.form-input,
.form-textarea {
    width: 100%;
    background: #1E1E1E;
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    /* ⚡ OPTIMIZED: Replaced 'all' with specific properties, reduced to 150ms */
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
}

.form-input {
    height: 48px;
}

.form-textarea {
    padding: 0.75rem 1rem;
    resize: vertical;
    min-height: 100px;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 1px var(--accent-cyan);
}

.form-input:focus~.input-icon {
    color: var(--accent-cyan);
}

/* Error State */
.input-wrapper.input--error .form-input,
.input-wrapper.input--error .form-textarea {
    border-color: #EF4444;
}

.input-wrapper.input--error .form-input:focus,
.input-wrapper.input--error .form-textarea:focus {
    box-shadow: 0 0 0 1px #EF4444;
}

.input-error {
    font-size: 0.75rem;
    color: #EF4444;
    display: none;
    margin-top: -0.25rem;
}

.input-wrapper.input--error~.input-error {
    display: block;
}

/* Success State */
.input-wrapper.input--success .form-input,
.input-wrapper.input--success .form-textarea {
    border-color: #22c55e;
}

/* Modal Footer */
.create-agent-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* Modal Buttons - HEAVILY OPTIMIZED */
.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    /* ⚡ OPTIMIZED: Replaced 'all' with only GPU properties, reduced to 150ms */
    transition: transform 150ms ease, opacity 150ms ease, background-color 150ms ease, color 150ms ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
}

.modal-btn--secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.modal-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.modal-btn--secondary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

.modal-btn--primary {
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    /* ⚡ OPTIMIZED: Static shadow instead of animated */
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

/* ⚡ PERFORMANCE FIX: Pseudo-element glow instead of box-shadow transition */
.modal-btn--primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: radial-gradient(circle at center, rgba(0, 217, 255, 0.4), transparent 70%);
    border-radius: inherit;
    opacity: 0;
    /* Only transition opacity (GPU accelerated!) */
    transition: opacity 150ms ease;
    z-index: -1;
    pointer-events: none;
}

.modal-btn--primary:hover {
    background: var(--accent-cyan-dark);
    /* ⚡ OPTIMIZED: Removed box-shadow transition (expensive!) */
    transform: translateY(-1px);
}

/* Activate glow on hover */
.modal-btn--primary:hover::before {
    opacity: 1;
}

.modal-btn--primary:active {
    transform: translateY(0);
}

.modal-btn--primary:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.modal-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ============================================
   MODAL RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .create-agent-modal__card {
        padding: 32px;
        max-width: 90%;
    }

    .create-agent-modal__title {
        font-size: 1.375rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .create-agent-modal {
        padding: 0.5rem;
    }

    .create-agent-modal__card {
        padding: 24px;
        max-width: 100%;
        border-radius: 12px;
    }

    .create-agent-modal__title {
        font-size: 1.25rem;
    }

    .create-agent-modal__subtitle {
        font-size: 0.8125rem;
    }

    .create-agent-modal__footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
    }

    .form-input,
    .form-textarea {
        font-size: 1rem;
        /* Prevent zoom on iOS */
    }
}

/* Focus visible polyfill for older browsers */
@supports not selector(:focus-visible) {

    .create-agent-modal__close:focus,
    .modal-btn:focus,
    .form-input:focus,
    .form-textarea:focus {
        outline: 2px solid var(--accent-cyan);
        outline-offset: 2px;
    }
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScaleIn {
    from {
        transform: translateZ(0) scale(0.9);
    }

    to {
        transform: translateZ(0) scale(1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .create-agent-modal,
    .create-agent-modal__card,
    .modal-btn,
    .form-input,
    .form-textarea,
    .progress-dot,
    .progress-line::before {
        transition: none;
        animation: none;
    }
}

/* ============================================
   STEP 2: CONFIGURATION COMPONENTS
   ============================================ */

/* Step Content Wrapper - Controls visibility between steps */
.step-content {
    display: none;
}

.step-content--active {
    display: block;
}

/* Bot Type Cards Grid */
.bot-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Individual Bot Type Card */
.bot-type-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* ⚡ OPTIMIZED: Only GPU properties */
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
    overflow: hidden;
}

/* Hide actual radio input */
.bot-type-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Card Content */
.bot-type-card__content {
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Card Icon */
.bot-type-card__icon {
    font-size: 2rem;
    color: var(--accent-cyan);
    transition: transform 150ms ease;
}

/* Card Title */
.bot-type-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

/* Card Description */
.bot-type-card__description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Checkmark indicator - hidden by default */
.bot-type-card__checkmark {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 150ms ease, transform 150ms ease;
}

.bot-type-card__checkmark .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

/* Hover State */
.bot-type-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.bot-type-card:hover .bot-type-card__icon {
    transform: scale(1.1);
}

/* Selected State */
.bot-type-card:has(.bot-type-input:checked) {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--accent-cyan);
}

/* Active/Click Animation */
.bot-type-card:active {
    transform: scale(0.98);
}

/* Focus State for Accessibility */
.bot-type-input:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ============================================
   LANGUAGE SELECT DROPDOWN
   ============================================ */

.form-select {
    width: 100%;
    height: 48px;
    background: #1E1E1E;
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
    border-radius: 0.5rem;
    padding: 0.75rem 3rem 0.75rem 3rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    /* GPU-optimized transitions */
    transition: border-color 150ms ease, box-shadow 150ms ease;
    outline: none;
    cursor: pointer;

    /* Custom dropdown arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300D9FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.form-select:hover {
    border-color: rgba(0, 217, 255, 0.3);
}

.form-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* Dropdown options */
.form-select option {
    background: #1a1a1a;
    color: var(--text-primary);
    padding: 0.75rem;
}

/* ============================================
   TONE SEGMENTED CONTROL
   ============================================ */

/* Tone Segmented Control */
.tone-control {
    display: flex;
    background: #1E1E1E;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    position: relative;
}

/* Individual Tone Option */
.tone-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

/* Hide actual radio input */
.tone-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Tone Label */
.tone-label {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    /* ⚡ OPTIMIZED: GPU properties only */
    transition: color 150ms ease, background-color 150ms ease;
    user-select: none;
}

/* Hover State (unselected) */
.tone-option:hover .tone-label {
    color: var(--text-primary);
}

/* Selected State */
.tone-input:checked+.tone-label {
    background: var(--accent-cyan);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 217, 255, 0.3);
}

/* Focus visible for accessibility */
.tone-input:focus-visible+.tone-label {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE - STEP 2 COMPONENTS
   ============================================ */

@media (max-width: 768px) {
    .bot-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bot-type-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .bot-type-card {
        padding: 1.25rem;
    }

    /* Tone options stay horizontal but with smaller text if needed */
    .tone-label {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }
}

/* ============================================
   STEP 3: KNOWLEDGE BASE COMPONENTS
   ============================================ */

/* Knowledge Base Variations Container */
.kb-variation {
    display: none;
}

.kb-variation--active {
    display: block;
}

/* KB Section */
.kb-section {
    margin-bottom: 2rem;
}

.kb-section--booking {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.kb-section__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.kb-section__description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* ============================================
   FAQ COMPONENTS (Variation A)
   ============================================ */

/* FAQ Items Container */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Individual FAQ Item */
.faq-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: border-color 150ms ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* FAQ Delete Button */
.faq-item__delete {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: color 150ms ease, background-color 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item__delete .material-symbols-outlined {
    font-size: 1.25rem;
}

.faq-item__delete:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.faq-item__delete:active {
    transform: scale(0.95);
}

/* FAQ Fields Spacing */
.faq-item .form-field {
    margin-bottom: 1rem;
}

.faq-item .form-field:last-child {
    margin-bottom: 0;
}

/* Add More Button */
.btn-add-more {
    width: 100%;
    height: 48px;
    background: transparent;
    border: 2px dashed rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    color: var(--accent-cyan);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    transition: border 150ms ease, background-color 150ms ease;
}

.btn-add-more .material-symbols-outlined {
    font-size: 1.25rem;
}

.btn-add-more:hover {
    border-style: solid;
    background: rgba(0, 217, 255, 0.05);
}

.btn-add-more:active {
    transform: scale(0.99);
}

/* ============================================
   FILE UPLOAD COMPONENTS (Variations B & C)
   ============================================ */

/* File Input (hidden but accessible) */
.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: border 150ms ease, background-color 150ms ease, transform 150ms ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.file-upload-zone:hover {
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.file-upload-zone:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Drag Active State */
.file-upload-zone--drag-active {
    border-color: var(--accent-cyan);
    border-style: solid;
    background: rgba(0, 217, 255, 0.05);
    transform: scale(1.01);
}

/* Upload Zone Icon */
.file-upload-zone__icon {
    font-size: 3rem;
    color: var(--accent-cyan);
}

/* Upload Zone Text */
.file-upload-zone__text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

.file-upload-zone__subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.file-upload-zone__limit {
    font-size: 0.8125rem;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.5));
    margin: 0;
}

/* File Upload Error */
.file-upload-error {
    color: #EF4444;
    font-size: 0.875rem;
    margin: 0.75rem 0 0 0;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border-left: 3px solid #EF4444;
}

/* Uploaded Files List */
.uploaded-files {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uploaded-files:empty {
    display: none;
}

/* Individual Uploaded File Item */
.uploaded-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 150ms ease;
}

.uploaded-file:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* File Icon */
.uploaded-file__icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* File Info */
.uploaded-file__info {
    flex: 1;
    min-width: 0;
}

.uploaded-file__name {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploaded-file__size {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* File Status (success/loading) */
.uploaded-file__status {
    flex-shrink: 0;
}

.uploaded-file__status--success {
    color: #10B981;
    font-size: 1.25rem;
}

/* File Remove Button */
.uploaded-file__remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: color 150ms ease, background-color 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uploaded-file__remove .material-symbols-outlined {
    font-size: 1.25rem;
}

.uploaded-file__remove:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.uploaded-file__remove:active {
    transform: scale(0.95);
}

/* ============================================
   RESPONSIVE - STEP 3 COMPONENTS
   ============================================ */

@media (max-width: 640px) {

    /* FAQ Items */
    .faq-item {
        padding: 1rem;
    }

    .faq-item__delete {
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Upload Zone */
    .file-upload-zone {
        padding: 1.5rem;
        min-height: 160px;
    }

    .file-upload-zone__icon {
        font-size: 2.5rem;
    }

    .file-upload-zone__text {
        font-size: 0.9375rem;
    }

    /* Uploaded Files */
    .uploaded-file {
        padding: 0.625rem 0.875rem;
    }

    .uploaded-file__icon {
        font-size: 1.25rem;
    }

    .uploaded-file__name {
        font-size: 0.875rem;
    }

    .uploaded-file__size {
        font-size: 0.75rem;
    }
}

/* ============================================
   SUCCESS OVERLAY & ANIMATIONS
   ============================================ */

/* Success Overlay Container */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
    /* Allow clicks through when hidden */
}

.success-overlay--active {
    opacity: 1;
    pointer-events: all;
    /* Block clicks when visible */
}

/* Success Content Container */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Animation removed here to control via JS class or separate rule if needed */
}

/* Add explicit class for content animation trigger */
.success-overlay--active .success-content {
    animation: scaleIn 400ms ease forwards;
}

/* Success Checkmark SVG */
.success-checkmark {
    width: 100px;
    height: 100px;
}

/* Circle Animation */
.success-checkmark__circle {
    stroke-dasharray: 310;
    stroke-dashoffset: 310;
    /* Animation triggered when overlay becomes active */
}

.success-overlay--active .success-checkmark__circle {
    animation: drawCircle 300ms ease forwards;
}

/* Checkmark Animation (delayed) */
.success-checkmark__check {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    /* Animation triggered when overlay becomes active */
}

.success-overlay--active .success-checkmark__check {
    animation: drawCheck 300ms ease 300ms forwards;
}

/* Success Text */
.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
    opacity: 0;
}

.success-overlay--active .success-title {
    animation: fadeInUp 400ms ease 400ms forwards;
}

.success-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    opacity: 0;
}

.success-overlay--active .success-subtitle {
    animation: fadeInUp 400ms ease 500ms forwards;
}

/* Loading Button State */
.modal-btn--loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-btn--loading .btn-arrow {
    display: none;
}

.btn-spinner {
    display: inline-flex;
    margin-left: 0.5rem;
}

/* Spinning Animation */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* SVG Draw Animations */
@keyframes drawCircle {
    from {
        stroke-dashoffset: 310;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    from {
        stroke-dashoffset: 80;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   AGENTS SIDEBAR
   ============================================ */

.agents-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 280px;
    height: calc(100vh - 60px);
    background: #0f0f0f;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    overflow-y: auto;
    padding: 1.5rem 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.btn-create-agent {
    background: transparent;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--accent-cyan);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.btn-create-agent .material-symbols-outlined {
    font-size: 1.25rem;
}

.btn-create-agent:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent-cyan);
}

.btn-create-agent:active {
    transform: scale(0.95);
}

/* Agents List */
.agents-list {
    padding: 1rem 0;
}

/* Individual Agent Item */
.agent-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.agent-item:hover {
    background: #1E1E1E;
}

.agent-item--selected {
    background: #1E1E1E;
    border-left-color: var(--accent-cyan);
}

.agent-item--newly-added {
    animation: highlightAgent 2s ease;
}

/* Agent Icon */
.agent-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(0, 217, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.agent-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Agent Info */
.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-company {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Agent Status Indicator */
.agent-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
    animation: pulse 2s ease infinite;
}

/* Highlight New Agent Animation */
@keyframes highlightAgent {

    0%,
    100% {
        background: #1E1E1E;
        box-shadow: none;
    }

    10%,
    90% {
        background: rgba(0, 217, 255, 0.1);
        box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.2);
    }
}

/* Pulse Animation for Status */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Empty State */
.agents-list-empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .agents-sidebar {
        width: 240px;
    }

    .agent-item {
        padding: 0.625rem 1rem;
    }

    .agent-icon {
        width: 32px;
        height: 32px;
    }
}

/* Success Overlay Mobile */
@media (max-width: 640px) {
    .success-checkmark {
        width: 80px;
        height: 80px;
    }

    .success-title {
        font-size: 1.25rem;
    }

    .success-subtitle {
        font-size: 0.8125rem;
    }
}

/* Agent items in sidebar */
.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 200ms ease;
    border-left: 3px solid transparent;
    position: relative;
}

.agent-item:hover {
    background: #1E1E1E;
}

.agent-item.selected {
    background: #1E1E1E;
    border-left-color: #00D9FF;
}

.agent-item.newly-added {
    animation: highlight 2s ease;
}

@keyframes highlight {

    0%,
    100% {
        background: #1E1E1E;
    }

    50% {
        background: rgba(0, 217, 255, 0.1);
    }
}

.agent-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-company {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-status.active {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.agent-status.inactive {
    background: #6b7280;
}

/* Agent dashboard main content */
.agent-dashboard {
    padding: 32px;
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.agent-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.agent-meta {
    color: #a0a0a0;
    font-size: 14px;
}

.agent-status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.agent-status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.agent-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.detail-card h3 {
    font-size: 12px;
    font-weight: 600;
    color: #a0a0a0;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.detail-card p {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
}

.agent-knowledge h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.faq-item-view {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.faq-question {
    color: #ffffff;
    margin-bottom: 8px;
}

.faq-answer {
    color: #a0a0a0;
    font-size: 14px;
}

.file-item-view {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-size {
    color: #6b7280;
    font-size: 14px;
}