/* =================================================================
 * CHAT-SPECIFIC THEME & COLOR VARIABLES
 * ================================================================= */

/*
 * This module defines all CSS custom properties used throughout the chat interface.
 * It serves as the foundation for the entire chat styling system.
 * 
 * Dependencies: None (foundation module)
 * Used by: All other chat modules
 * 
 * Key Features:
 * - Light and dark theme definitions
 * - Animation timing and easing functions
 * - Layout dimensions and constraints
 * - Z-index management for proper layering
 */

:root {
    /* Window & Background Colors */
    --window-bg: rgba(255, 255, 255, 0.85);
    --taskbar-bg: rgba(255, 255, 255, 0.8);
    --elevated-bg: rgba(255, 255, 255, 0.7);
    --input-bg: rgba(255, 255, 255, 0.85);
    --hover-bg: rgba(15, 23, 42, 0.05);

    /* Text Colors */
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --file-name-color: #1a1a1a;

    /* Border & Divider Colors */
    --border-color: #e2e8f0;

    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Accent & Interactive Colors */
    --accent-color: #374151;
    --accent-hover: #1f2937;
    --accent-color-rgb: 55, 65, 81;
    --accent-muted: rgba(55, 65, 81, 0.1);
    --icon-color: #64748b;

    /* Link Colors */
    --link-color: #374151;
    --link-hover: #1f2937;

    /* Code & Syntax Colors */
    --code-bg: #f8fafc;
    --code-header-bg: #f1f5f9;
    --code-border: #e2e8f0;
    --code-language-color: #64748b;

    /* Table Colors */
    --table-border: #e2e8f0;
    --table-header-bg: #f8fafc;
    --table-stripe-bg: #f9fafb;

    /* Message Colors */
    --message-user-bg: #0f172a;
    --message-bot-bg: rgba(255, 255, 255, 0.8);

    /* Animation Variables */
    --anim-fast: 0.2s;
    --anim-normal: 0.3s;
    --anim-slow: 0.4s;
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);

    /* Chat-Specific Layout Variables */
    --chat-container-width: 55%;
    --chat-container-left: 52.5%;
    --chat-max-width: 800px;
    --input-container-max-width: 800px;
    --input-bottom-offset: 15px;
    --message-max-width: 85%;
    --input-min-height: 70px;
    --input-max-height: 200px;

    /* Z-Index Management */
    --z-chat-container: 999;
    --z-input-container: 999;
    --z-context-window: 1001;
    --z-dropdown-menu: 1000;
    --z-selected-context-viewer: 1000;
    --z-welcome-message: 1002;
}

/* Dark Mode Theme Overrides - Pure Black with Glassmorphism */
.dark-mode {
    /* Window & Background Colors */
    --window-bg: rgba(255, 255, 255, 0.03);
    --taskbar-bg: rgba(255, 255, 255, 0.05);
    --elevated-bg: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.06);
    --hover-bg: rgba(255, 255, 255, 0.12);

    /* Text Colors */
    --text-color: #ffffff;
    --text-secondary: #a1a1aa;
    --file-name-color: #ffffff;

    /* Border & Divider Colors */
    --border-color: rgba(255, 255, 255, 0.15);

    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 1px 3px rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 8px rgba(255, 255, 255, 0.08), 0 2px 4px rgba(0, 0, 0, 0.8);
    --shadow-xl: 0 20px 30px rgba(255, 255, 255, 0.12), 0 10px 15px rgba(0, 0, 0, 0.95);

    /* Accent & Interactive Colors */
    --accent-color: #ffffff;
    --accent-hover: #f5f5f5;
    --accent-color-rgb: 255, 255, 255;
    --accent-muted: rgba(255, 255, 255, 0.1);
    --icon-color: #d4d4d8;

    /* Link Colors */
    --link-color: #ffffff;
    --link-hover: #f5f5f5;

    /* Code & Syntax Colors */
    --code-bg: rgba(255, 255, 255, 0.04);
    --code-header-bg: rgba(255, 255, 255, 0.06);
    --code-border: rgba(255, 255, 255, 0.12);
    --code-language-color: #a1a1aa;

    /* Table Colors */
    --table-border: rgba(255, 255, 255, 0.12);
    --table-header-bg: rgba(255, 255, 255, 0.04);
    --table-stripe-bg: rgba(255, 255, 255, 0.02);

    /* Message Colors */
    --message-user-bg: rgba(255, 255, 255, 0.95);
    --message-bot-bg: rgba(255, 255, 255, 0.05);

    /* Animation Variables (same for both themes) */
    --anim-fast: 0.2s;
    --anim-normal: 0.3s;
    --anim-slow: 0.4s;
    --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
}
