/* ================================================
   SKILLTECH NAVIGATOR - ENTERPRISE AI ASSISTANT
   Microsoft Azure-Grade Floating Chat Interface
   ================================================ */

/* ================================================
   DESIGN RATIONALE
   ================================================
   
   VISUAL HIERARCHY:
   1. User messages (primary focus)
   2. Bot responses (secondary focus)
   3. UI chrome (minimal, supportive)
   
   DEPTH STRATEGY:
   - Light mode: Subtle shadows, clear borders
   - Dark mode: Elevated surfaces, depth through layers
   
   COLOR PHILOSOPHY:
   - Use site's primary blue as accent
   - Bot messages: neutral, calm backgrounds
   - User messages: primary brand color
   - Never compete with main content
   
   SPACING SCALE:
   - Compact: 4px, 8px (micro elements)
   - Comfortable: 12px, 16px (standard spacing)
   - Generous: 20px, 24px (major sections)
   
   BORDER RADIUS SYSTEM:
   - Small UI: 8px (buttons, pills)
   - Medium: 12px (message bubbles)
   - Large: 16px (container, cards)
   - Circle: 50% (launcher, avatars)
   
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ================================================
       LIGHT MODE - Clean, Professional, High Contrast
       ================================================ */
    
    /* Primary Accent - Dark Navy Blue (matching workspace buttons) */
    --chat-primary: #001f3f;
    --chat-primary-hover: #003366;
    --chat-primary-active: #001a33;
    --chat-primary-light: rgba(0, 31, 63, 0.08);
    
    /* Surface Colors - Layered Depth */
    --chat-surface-base: #ffffff;
    --chat-surface-elevated: #ffffff;
    --chat-surface-overlay: #fafafa;
    
    /* Message Backgrounds */
    --chat-msg-bot: #f3f4f6;
    --chat-msg-user: #001f3f;
    --chat-msg-system: #f9fafb;
    
    /* Text Hierarchy */
    --chat-text-primary: #1f2937;
    --chat-text-secondary: #6b7280;
    --chat-text-tertiary: #9ca3af;
    --chat-text-inverse: #ffffff;
    
    /* Borders - Subtle Separation */
    --chat-border: #e5e7eb;
    --chat-border-hover: #d1d5db;
    --chat-border-focus: #001f3f;
    
    /* Shadows - Microsoft Design Language */
    --chat-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --chat-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --chat-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --chat-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Status Colors */
    --chat-success: #10b981;
    --chat-warning: #f59e0b;
    --chat-error: #ef4444;
    
    /* Input States */
    --chat-input-bg: #ffffff;
    --chat-input-border: #d1d5db;
    --chat-input-focus-ring: rgba(0, 31, 63, 0.12);
    
    /* Scrollbar */
    --chat-scrollbar-thumb: #d1d5db;
    --chat-scrollbar-hover: #9ca3af;
}

/* ================================================
   DARK MODE - Depth, Elevation, Subtle AI Gradients
   ================================================ */

.dark-theme,
.dark-mode,
body.dark-theme,
body.dark-mode {
    /* Primary Accent - Lighter Dark Blue for Dark Backgrounds */
    --chat-primary: #2563eb;
    --chat-primary-hover: #3b82f6;
    --chat-primary-active: #1d4ed8;
    --chat-primary-light: rgba(37, 99, 235, 0.12);
    
    /* Surface Colors - Layered Depth (NOT Pure Black) */
    --chat-surface-base: #0f172a;
    --chat-surface-elevated: #1e293b;
    --chat-surface-overlay: #0f172a;
    
    /* Message Backgrounds */
    --chat-msg-bot: #1e293b;
    --chat-msg-user: #3b82f6;
    --chat-msg-system: #1e293b;
    
    /* Text Hierarchy - High Contrast */
    --chat-text-primary: #f1f5f9;
    --chat-text-secondary: #cbd5e1;
    --chat-text-tertiary: #94a3b8;
    --chat-text-inverse: #0f172a;
    
    /* Borders - Visible Separation */
    --chat-border: rgba(148, 163, 184, 0.2);
    --chat-border-hover: rgba(148, 163, 184, 0.3);
    --chat-border-focus: #2563eb;
    
    /* Shadows - Depth in Dark Mode */
    --chat-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --chat-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --chat-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --chat-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    
    /* Status Colors - Adjusted for Dark */
    --chat-success: #34d399;
    --chat-warning: #fbbf24;
    --chat-error: #f87171;
    
    /* Input States */
    --chat-input-bg: #1e293b;
    --chat-input-border: rgba(148, 163, 184, 0.2);
    --chat-input-focus-ring: rgba(37, 99, 235, 0.15);
    
    /* Scrollbar */
    --chat-scrollbar-thumb: #475569;
    --chat-scrollbar-hover: #64748b;
}

body {
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   FLOATING CONTAINER - Bottom Right Persistent
   ================================================ */

.chat-widget-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

/* ================================================
   LAUNCHER BUTTON - Professional, Calm, Trustworthy
   ================================================ */

.chat-launcher {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--chat-primary) !important;
    border: none;
    color: var(--chat-text-inverse) !important;
    font-size: 26px;
    cursor: pointer;
    box-shadow: var(--chat-shadow-lg);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow: var(--chat-shadow-xl);
    background: var(--chat-primary-hover) !important;
}

.chat-launcher:active {
    transform: translateY(0);
    box-shadow: var(--chat-shadow-md);
}

.launcher-icon {
    position: absolute;
    transition: opacity 200ms ease, transform 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.launcher-icon.open-icon {
    opacity: 1;
}

.launcher-icon.close-icon {
    opacity: 0;
    color: var(--chat-text-inverse) !important;
    font-size: 28px;
    font-weight: 600;
}

.chat-launcher.active .open-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.chat-launcher.active .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* ================================================
   POPUP CONTAINER - Elevated Card with Depth
   ================================================
   
   Design Notes:
   - Uses layered approach: outer container + inner surface
   - Border in dark mode for clear separation
   - Shadow creates floating effect without being aggressive
   - Border radius matches site's card system
   
   ================================================ */

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    max-width: calc(100vw - 48px);
    height: 600px;
    max-height: calc(100vh - 140px);
    background: var(--chat-surface-elevated);
    border-radius: 16px;
    border: 1px solid var(--chat-border);
    box-shadow: var(--chat-shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    /* Animation */
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-popup.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

/* ================================================
   HEADER - Subtle AI Gradient, Restrained, Professional
   ================================================
   
   Design Rationale:
   - Gradient is ONLY in header, subtle, never loud
   - Light mode: Clean azure blue
   - Dark mode: Deep indigo with slight purple hint
   - Height: 72px for comfortable tap targets
   - Close button: Minimal, professional
   
   ================================================ */

.chat-header {
    /* Light Mode: Dark Navy Blue Gradient (matching workspace) */
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    
    /* Dark Mode Override (via body class) */
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.dark-theme .chat-header,
.dark-mode .chat-header,
body.dark-theme .chat-header,
body.dark-mode .chat-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.bot-avatar-small {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.bot-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.header-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    line-height: 1.4;
    -webkit-text-fill-color: #ffffff;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.85) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.85);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--chat-success);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    line-height: 1;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* ================================================
   CHAT MESSAGES AREA - Primary Focus, Maximum Readability
   ================================================
   
   Design Principles:
   - Generous padding for comfortable reading
   - Overlay background slightly different from base
   - Scrollbar minimal but functional
   - Proper spacing between messages (16px)
   
   ================================================ */

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--chat-surface-overlay);
    min-height: 0;
}

/* ================================================
   SCROLLBAR - Minimal, Modern, Microsoft-Style
   ================================================ */

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--chat-scrollbar-thumb);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--chat-scrollbar-hover);
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--chat-scrollbar-thumb) transparent;
}

/* ================================================
   WELCOME SCREEN - First Impression, Calm, Helpful
   ================================================ */

.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    background: var(--chat-surface-base);
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    gap: 16px;
}

.welcome-logo {
    width: 80px;
    height: 80px;
    margin: 0;
    padding: 0;
    object-fit: contain;
    display: none;
}

.welcome-screen h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--chat-text-primary) !important;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.welcome-screen p {
    color: var(--chat-text-secondary) !important;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    max-width: 320px;
}

/* ================================================
   QUICK ACTION PILLS - First-Class UI Elements
   ================================================
   
   Design Strategy:
   - Look like native site buttons
   - Clear hover state with color change
   - Active state for feedback
   - 8px border radius (small UI scale)
   - Proper tap target size (44px min height)
   
   ================================================ */

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.quick-action-btn {
    background: var(--chat-surface-base);
    border: 1px solid var(--chat-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--chat-text-primary) !important;
    cursor: pointer;
    transition: all 150ms ease;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    min-height: 44px;
    display: flex;
    align-items: center;
    box-shadow: var(--chat-shadow-sm);
}

.quick-action-btn:hover {
    background: var(--chat-primary);
    color: var(--chat-text-inverse) !important;
    border-color: var(--chat-primary);
    transform: translateY(-1px);
    box-shadow: var(--chat-shadow-md);
}

.quick-action-btn:active {
    transform: translateY(0);
    box-shadow: var(--chat-shadow-sm);
}

/* ================================================
   MESSAGE BUBBLES - Calm, Distinct, Never Loud
   ================================================
   
   Visual Hierarchy:
   1. User messages: Primary brand color (most prominent)
   2. Bot messages: Neutral gray (supportive, not competing)
   3. System messages: Minimal, informational
   
   Spacing System:
   - Gap between messages: 16px
   - Padding inside bubbles: 12px 16px
   - Border radius: 12px (medium scale)
   - Max width: 80% (prevents wall-to-wall text)
   
   ================================================ */

.message {
    display: flex;
    gap: 12px;
    animation: messageSlideIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    letter-spacing: -0.01em;
    overflow: hidden;
    margin-top: 2px;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message.bot .message-avatar {
    background: var(--chat-primary-light);
    color: var(--chat-primary);
    border: 1px solid var(--chat-border);
}

.message.user .message-avatar {
    background: var(--chat-primary);
    color: var(--chat-text-inverse);
    border: none;
}

/* ================================================
   MESSAGE CONTENT - Readability is Priority #1
   ================================================ */

.message-content {
    max-width: 80%;
    border-radius: 12px;
    padding: 12px 16px;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message.bot .message-content {
    background: var(--chat-msg-bot);
    border: 1px solid var(--chat-border);
    color: var(--chat-text-primary) !important;
    border-bottom-left-radius: 4px;
}

.message.bot .message-content * {
    color: var(--chat-text-primary) !important;
}

.message.bot .message-content a {
    color: var(--chat-primary) !important;
    text-decoration: underline;
}

.message.user .message-content {
    background: var(--chat-msg-user);
    border: none;
    color: var(--chat-text-inverse) !important;
    border-bottom-right-radius: 4px;
}

.message.user .message-content * {
    color: var(--chat-text-inverse) !important;
}

/* ================================================
   MESSAGE METADATA - Timestamps, Badges
   ================================================ */

.message-time {
    font-size: 11px;
    color: var(--chat-text-tertiary) !important;
    margin-top: 6px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.goal-badge {
    display: inline-block;
    background: var(--chat-primary-light);
    border: 1px solid var(--chat-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--chat-primary) !important;
    margin-top: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ================================================
   TYPING INDICATOR - System Message
   ================================================ */

.typing-indicator {
    display: none;
    gap: 12px;
    margin-top: 8px;
}

.typing-dots {
    background: var(--chat-msg-bot);
    border: 1px solid var(--chat-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--chat-text-tertiary);
    border-radius: 50%;
    animation: typingPulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingPulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ================================================
   INPUT AREA - Sturdy, Professional, Clear States
   ================================================
   
   Design Strategy:
   - Clear visual separation from chat history
   - Input feels "enterprise-grade", not casual
   - Focus state is obvious but not aggressive
   - Send button: always visible, always ready
   - Disabled state: clearly communicated
   
   Measurements:
   - Area padding: 20px
   - Input padding: 12px 16px
   - Input height: ~44px (comfortable tap target)
   - Border radius: 24px (pill-shaped)
   - Send button: 40px circle
   
   ================================================ */

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--chat-border);
    background: var(--chat-surface-elevated);
}

.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: #ffffff !important;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 12px 16px;
    color: #1e293b !important;
    font-size: 14px;
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 150ms ease;
    -webkit-text-fill-color: #1e293b;
}

.dark-theme .chat-input,
.dark-mode .chat-input,
body.dark-theme .chat-input,
body.dark-mode .chat-input {
    background: #ffffff !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b;
    border: 3px solid #475569 !important;
}

.chat-input:focus {
    outline: none;
    border-color: var(--chat-border-focus);
    background: #ffffff !important;
    box-shadow: 0 0 0 3px var(--chat-input-focus-ring);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--chat-surface-overlay);
}

.chat-input::placeholder {
    color: var(--chat-text-tertiary) !important;
    opacity: 1;
}

.dark-theme .chat-input::placeholder,
.dark-mode .chat-input::placeholder,
body.dark-theme .chat-input::placeholder,
body.dark-mode .chat-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--chat-primary);
    border: none;
    border-radius: 50%;
    color: var(--chat-text-inverse) !important;
    font-size: 18px;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--chat-shadow-sm);
}

.send-btn:hover:not(:disabled) {
    background: var(--chat-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--chat-shadow-md);
}

.send-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--chat-shadow-sm);
}

.send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ================================================
   RESPONSIVE DESIGN - Mobile Optimization
   ================================================ */

@media (max-width: 480px) {
    .chat-widget-container {
        bottom: 50px;
        right: 30px;
    }
    
    .chat-launcher {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
    
    .chat-popup {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        right: 16px;
        bottom: 84px;
    }
    
    .chat-header {
        padding: 16px 20px;
        min-height: 64px;
    }
    
    .header-info h3 {
        font-size: 15px;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 14px;
    }
    
    .chat-input-area {
        padding: 16px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .chat-popup {
        width: 380px;
        height: 580px;
    }
}

/* ================================================
   ACCESSIBILITY & INTERACTION REFINEMENTS
   ================================================ */

/* Focus visible for keyboard navigation */
.chat-launcher:focus-visible,
.close-btn:focus-visible,
.quick-action-btn:focus-visible,
.send-btn:focus-visible {
    outline: 2px solid var(--chat-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .chat-popup,
    .message,
    .chat-launcher,
    .quick-action-btn,
    .send-btn {
        animation: none;
        transition: none;
    }
    
    .typing-dot {
        animation: none;
    }
    
    .status-dot {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .chat-popup {
        border-width: 2px;
    }
    
    .message.bot .message-content {
        border-width: 2px;
    }
    
    .quick-action-btn {
        border-width: 2px;
    }
}

/* ================================================
   PRODUCTION NOTES & IMPLEMENTATION CHECKLIST
   ================================================
   
   MANDATORY UPDATES IN HTML:
   1. Ensure chat container has proper ARIA labels
   2. Add role="dialog" to .chat-popup
   3. Add aria-expanded to .chat-launcher
   4. Ensure focus trap when chat is open
   5. Add aria-live="polite" to .chat-messages
   
   COLOR VARIABLE OVERRIDE:
   - Light mode uses default :root values
   - Dark mode uses body.dark-theme or body.dark-mode class
   - Test both modes thoroughly
   
   TESTING CHECKLIST:
   □ Light mode visibility (all states)
   □ Dark mode visibility (all states)
   □ Mobile responsive (320px - 480px)
   □ Tablet responsive (481px - 768px)
   □ Keyboard navigation works
   □ Focus states visible
   □ Screen reader compatibility
   □ Long message handling
   □ Scrollbar behavior
   □ Input multiline expansion
   □ Disabled button states
   □ Hover states on touch devices
   
   PERFORMANCE:
   - All transitions use transform/opacity (GPU accelerated)
   - No layout thrashing
   - Smooth 60fps animations
   - Minimal repaints
   
   ================================================ */
    .chat-popup {
        width: calc(100vw - 20px);
        max-width: 380px;
        height: 600px;
        max-height: calc(100vh - 120px);
        bottom: 90px;
        right: 10px;
        left: auto;
        top: auto;
        border-radius: 16px;
    }

    .chat-popup.open {
        transform: translateY(0) scale(1);
        position: fixed;
    }

    /* Adjust launcher button size and position */
/* End of SkillTech Navigator - Enterprise AI Assistant Styles */