/* ===========================
   AI Chat Studio v2.0 Enhanced Styles
   =========================== */

/* Enhanced CSS Variables - Theme System */
:root {
    /* Base Theme Variables - will be overridden by theme.js */
    --primary-color: #007acc;
    --secondary-color: #569cd6;
    --background: #1e1e1e;
    --surface: #ffffff;
    --text: #cccccc;
    --text-secondary: #9d9d9d;
    --text-muted: #6c6c6c;
    --success-color: #4ec9b0;
    --error-color: #f44747;
    --warning-color: #cca700;
    --info-color: #75beff;
    
    /* Derived variables for backwards compatibility */
    --dark-bg: var(--background);
    --light-bg: var(--surface);
    --card-bg: var(--surface);
    --border-color: rgba(255, 255, 255, 0.1);
    --overlay-background: rgba(0, 0, 0, 0.8);
    --hover: rgba(255, 255, 255, 0.05);
    
    /* Visual Studio style derived variables */
    --vs-dark-bg: var(--background);
    --vs-panel-bg: var(--surface);
    --vs-toolbar-bg: var(--surface);
    --vs-border: rgba(255, 255, 255, 0.1);
    --vs-border-light: rgba(255, 255, 255, 0.05);
    --vs-text-primary: var(--text);
    --vs-text-secondary: var(--text-secondary);
    --vs-text-muted: var(--text-muted);
    --vs-accent: var(--primary-color);
    --vs-selection: rgba(102, 126, 234, 0.3);
    
    /* Enhanced Shadows */
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    
    /* Animation Variables */
    --transition-fast: 0.1s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Spacing - Compact for more chat space */
    --spacing-xs: 0.125rem;
    --spacing-sm: 0.25rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 0.75rem;
    --spacing-xl: 1rem;
    --spacing-2xl: 1.5rem;
    
    /* Border Radius */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 6px;
}

/* Dark Theme (Default) - Visual Studio Code Modern Dark */
[data-theme="dark"] {
    --background: #1e1e1e;
    --surface: #252526;
    --text: #cccccc;
    --text-secondary: #9d9d9d;
    --text-muted: #6c6c6c;
    --primary-color: #007acc;
    --secondary-color: #569cd6;
    --success-color: #4ec9b0;
    --error-color: #f44747;
    --warning-color: #cca700;
    --info-color: #75beff;
    --border-color: #3c3c3c;
    --overlay-background: rgba(0, 0, 0, 0.8);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 0 3px rgba(0, 122, 204, 0.3);
    --hover: rgba(255, 255, 255, 0.05);
}

/* Light Theme */
[data-theme="light"] {
    --background: #ffffff;
    --surface: #ffffff;
    --text: #1e1e1e;
    --text-secondary: #333333;
    --text-muted: #666666;
    --primary-color: #0078d4;
    --secondary-color: #106ebe;
    --success-color: #107c10;
    --error-color: #d13438;
    --warning-color: #ff8c00;
    --info-color: #0078d4;
    --border-color: #f8f8f8;
    --overlay-background: rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 0 3px rgba(0, 120, 212, 0.3);
    --hover: rgba(0, 0, 0, 0.05);
}

/* Midnight Blue Theme */
[data-theme="midnight"] {
    --background: #1a202c;
    --surface: #2d3748;
    --text: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;
    --primary-color: #4c51bf;
    --secondary-color: #553c9a;
    --success-color: #38b2ac;
    --error-color: #fc8181;
    --warning-color: #f6e05e;
    --info-color: #63b3ed;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(76, 81, 191, 0.3);
}

/* Forest Green Theme */
[data-theme="forest"] {
    --background: #0f2017;
    --surface: #1a2e1f;
    --text: #f0fff4;
    --text-secondary: #c6f6d5;
    --text-muted: #9ae6b4;
    --primary-color: #38a169;
    --secondary-color: #2f855a;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --border-color: rgba(56, 161, 105, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(56, 161, 105, 0.3);
}

/* Sunset Orange Theme */
[data-theme="sunset"] {
    --background: #1c1917;
    --surface: #292524;
    --text: #fef7ed;
    --text-secondary: #fed7aa;
    --text-muted: #fdba74;
    --primary-color: #ed8936;
    --secondary-color: #dd6b20;
    --success-color: #38b2ac;
    --error-color: #fc8181;
    --warning-color: #f6e05e;
    --info-color: #4299e1;
    --border-color: rgba(237, 137, 54, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(237, 137, 54, 0.3);
}

/* Purple Dream Theme */
[data-theme="purple"] {
    --background: #1a1120;
    --surface: #2d1b3d;
    --text: #faf5ff;
    --text-secondary: #e9d8fd;
    --text-muted: #d6bcfa;
    --primary-color: #805ad5;
    --secondary-color: #6b46c1;
    --success-color: #38b2ac;
    --error-color: #fc8181;
    --warning-color: #f6e05e;
    --info-color: #63b3ed;
    --border-color: rgba(128, 90, 213, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(128, 90, 213, 0.3);
}

/* Ocean Blue Theme */
[data-theme="ocean"] {
    --background: #0a0e1a;
    --surface: #1e293b;
    --text: #e6fffa;
    --text-secondary: #b2f5ea;
    --text-muted: #81e6d9;
    --primary-color: #3182ce;
    --secondary-color: #2c5282;
    --success-color: #38b2ac;
    --error-color: #fc8181;
    --warning-color: #f6e05e;
    --info-color: #4299e1;
    --border-color: rgba(49, 130, 206, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}

/* Rose Pink Theme */
[data-theme="rose"] {
    --background: #1a0a0a;
    --surface: #2d1b1b;
    --text: #fff5f5;
    --text-secondary: #fed7d7;
    --text-muted: #feb2b2;
    --primary-color: #e53e3e;
    --secondary-color: #c53030;
    --success-color: #38b2ac;
    --error-color: #fc8181;
    --warning-color: #f6e05e;
    --info-color: #4299e1;
    --border-color: rgba(229, 62, 62, 0.2);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 0 3px rgba(229, 62, 62, 0.3);
}

/* Matrix Green Theme */
[data-theme="matrix"] {
    --background: #000000;
    --surface: #001100;
    --text: #00ff41;
    --text-secondary: #00cc33;
    --text-muted: #009900;
    --primary-color: #00ff41;
    --secondary-color: #00cc33;
    --success-color: #00ff41;
    --error-color: #ff0040;
    --warning-color: #ffff00;
    --info-color: #00ffff;
    --border-color: rgba(0, 255, 65, 0.2);
    --shadow: 0 4px 16px rgba(0, 255, 65, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 255, 65, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 255, 65, 0.25);
    --shadow-glow: 0 0 0 3px rgba(0, 255, 65, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    overflow: hidden;
    transition: all var(--transition-normal);
    font-size: 13px;
}

/* Enhanced App Container - Optimized for chat space */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: var(--background);
}

/* Enhanced Navigation - Visual Studio Style */
.navbar {
    background: var(--surface);
    padding: 6px 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    min-height: 35px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-right: 12px;
    border-radius: 3px;
    transition: background-color 0.15s ease;
}

.hamburger-menu:hover {
    background-color: var(--primary-color);
}

.hamburger-menu span {
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-brand h1 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.version-badge {
    background: var(--primary-color);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text);
    border: 1px solid var(--primary-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
    padding: 6px 12px;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Enhanced Main Content Layout */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Enhanced Sidebar - Compact VS Style */
.sidebar {
    width: 280px;
    background: var(--surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.sidebar-header {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
}

.sidebar-header {
    min-height: auto;
    padding-bottom: 8px;
}

.sidebar-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.sidebar-actions button {
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: 12px;
}

.sidebar-actions button:hover {
    background: var(--hover);
    color: var(--text);
    border-color: var(--primary-color);
}

.sidebar-actions button:active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-new-chat {
    flex: 1;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-new-chat:hover {
    background: #1177bb;
    border-color: #1177bb;
    transform: translateY(-1px);
}

.btn-new-chat:active {
    background: #005a9e;
    border-color: #005a9e;
    transform: translateY(0);
}

/* Sidebar Filters */
.sidebar-filters {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-input {
    padding: 4px 8px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11px;
    transition: all var(--transition-fast);
    height: 24px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select {
    padding: 4px 8px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: 24px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Conversations List */
.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
}

/* VS Code style scrollbar for conversations list */
.conversations-list::-webkit-scrollbar {
    width: 10px;
}

.conversations-list::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 0;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 0;
    border: 2px solid var(--surface);
    min-height: 20px;
}

.conversations-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    border: 2px solid var(--surface);
}

.conversations-list::-webkit-scrollbar-thumb:active {
    background: var(--text-secondary);
    border: 2px solid var(--surface);
}

.conversations-list::-webkit-scrollbar-corner {
    background: var(--surface);
}

/* Firefox scrollbar styling for conversations list */
.conversations-list {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--surface);
}

.conversation-item {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--surface);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.conversation-content {
    flex: 1;
    cursor: pointer;
}

.conversation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.conversation-item:hover::before {
    left: 100%;
}

.conversation-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.conversation-item.active {
    background: rgba(102, 126, 234, 0.2);
    border-left-color: var(--primary-color);
    color: var(--text);
    box-shadow: var(--shadow-glow);
}

.conversation-item.pinned::before {
    content: '📌';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 0.8rem;
}

.conversation-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: var(--spacing-xs);
    margin-left: var(--spacing-sm);
    transition: all var(--transition-fast);
    opacity: 0;
}

.conversation-item:hover .conversation-delete {
    opacity: 1;
}

.conversation-delete:hover {
    color: var(--error-color);
    transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.btn-clear-history {
    width: 100%;
    padding: 6px 12px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
    transition: all var(--transition-fast);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-clear-history:hover {
    background: var(--hover);
    color: var(--text);
    border-color: var(--primary-color);
}

.btn-clear-history:active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(0);
}

/* Enhanced Chat Container - Visual Studio Style */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--background);
}

/* Chat Header - Compact VS Style */
.chat-header {
    padding: 6px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.model-selector-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 300px;
}

.model-select {
    padding: 4px 8px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 180px;
    height: 28px;
}

.model-select:hover,
.model-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.model-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chat-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-chat-action {
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-chat-action i {
    font-size: 12px;
}

.btn-chat-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-chat-action.active {
    background: var(--primary-color);
    color: white;
}

/* Chat Messages Area - Optimized for space */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 0;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 0;
    border: 2px solid var(--surface);
    min-height: 20px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    border: 2px solid var(--surface);
}

.chat-messages::-webkit-scrollbar-thumb:active {
    background: var(--text-secondary);
    border: 2px solid var(--surface);
}

.chat-messages::-webkit-scrollbar-corner {
    background: var(--surface);
}

/* Firefox scrollbar styling for chat messages */
.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--surface);
}

/* Enhanced Welcome Message - Visual Studio Style */
.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--spacing-xl);
    margin: auto;
    max-width: 900px;
    padding: var(--spacing-2xl);
}

.welcome-header {
    margin-bottom: var(--spacing-xl);
}

.welcome-header h2 {
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.welcome-header h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.welcome-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 1200px;
    margin: var(--spacing-xl) 0;
}

.feature-card {
    background: var(--surface);
    padding: var(--spacing-xl);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    text-align: left;
    position: relative;
}

.feature-card:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.feature-card .feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.setup-hint {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.setup-hint p {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0;
}

.setup-hint i {
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
}

.setup-hint .vs-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.setup-hint .vs-link:hover {
    text-decoration: underline;
}

/* Enhanced Messages */
.message {
    display: flex;
    gap: var(--spacing-md);
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progress {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
}

.message.user .message-avatar {
    background: var(--primary-color);
    border: none;
    order: 2;
    box-shadow: var(--shadow-glow);
}


.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
}

.message.user .message-content {
    align-items: flex-end;
}

.message-bubble {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-normal);
}

.message-bubble.user {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.message-bubble.ai {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: var(--radius-sm);
}


.message-action {
    width: 24px;
    height: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all var(--transition-fast);
}


.message-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.message.user .message-meta {
    justify-content: flex-end;
}

/* File Attachments */
.file-attachment {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.file-attachment i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.file-info h4 {
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.file-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.file-download {
    margin-left: auto;
    padding: var(--spacing-sm);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.file-download:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Enhanced Chat Input Area - Compact VS Style */
.chat-input-area {
    padding: 8px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.input-tools {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.tool-btn {
    padding: var(--spacing-sm);
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tool-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

a.tool-btn {
    text-decoration: none;
    color: inherit;
}

.tool-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    transition: all var(--transition-fast);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.message-input {
    flex: 1;
    padding: 6px 8px;
    background: transparent;
    color: var(--text);
    border: none;
    font-family: inherit;
    font-size: 12px;
    resize: none;
    transition: all var(--transition-fast);
    min-height: 64px;
    max-height: 200px;
    line-height: 1.4;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.message-input::-webkit-scrollbar {
    width: 10px;
}

.message-input::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 0;
}

.message-input::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 0;
    border: 2px solid var(--surface);
    min-height: 20px;
}

.message-input::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    border: 2px solid var(--surface);
}

.message-input::-webkit-scrollbar-thumb:active {
    background: var(--text-secondary);
    border: 2px solid var(--surface);
}

.message-input::-webkit-scrollbar-corner {
    background: var(--surface);
}

/* Firefox scrollbar styling */
.message-input {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--surface);
}

.message-input:focus {
    outline: none;
}

.message-input::placeholder {
    color: var(--text-muted);
}

.input-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn-voice {
    padding: 4px;
    background: rgba(102, 126, 234, 0.3);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-voice i {
    font-size: 10px;
}

.btn-voice:hover,
.btn-voice.recording {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
    animation: pulse 1s infinite;
}

.btn-send {
    padding: 8px 12px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    min-width: 40px;
    height: 32px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-right: 8px;
}

.btn-send:hover {
    background: var(--hover);
    color: var(--text);
    border-color: var(--primary-color);
}

.btn-send:active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(0);
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: var(--text-muted);
    border-color: var(--text-muted);
}

.btn-send i {
    font-size: 11px;
    margin: 0;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Enhanced Loading Spinner */
.loading-spinner {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--overlay-background);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.loading-spinner.active {
    display: flex;
}

.spinner-container {
    background: var(--card-bg);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 300px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Enhanced Toast Notifications */
.toast-container {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    z-index: 10000;
    pointer-events: none;
}

.toast {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--card-bg);
    color: var(--text);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
}

.toast.success::before {
    background: var(--success-color);
}

.toast.error::before {
    background: var(--error-color);
}

.toast.warning::before {
    background: var(--warning-color);
}

.toast.info::before {
    background: var(--info-color);
}

.toast.exit {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chat-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .model-selector-container {
        min-width: auto;
    }
}

/* Sidebar close button - hidden on large screens */
.btn-close-sidebar {
    display: none !important;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.btn-close-sidebar:hover {
    background-color: var(--error-color);
    color: white;
}

@media (max-width: 1024px) {
    .btn-close-sidebar {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .btn-close-sidebar {
        display: block !important;
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: none;
        position: fixed;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-brand h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: var(--spacing-md);
    }
    
    .welcome-message h2 {
        font-size: 1.8rem;
    }

    .hide-on-mobile {
        display: none;
    }
    
    /* Show input tools with chat actions */
    .input-tools {
        display: flex;
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    /* Input wrapper layout for mobile - keep send button on right */
    .input-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    /* Smaller send button on mobile */
    .btn-send {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
        min-width: 50px;
        border-radius: var(--radius-md);
    }
    
    .btn-send span {
        display: none;
    }
    
    .btn-send i {
        margin: 0;
    }
    
    /* Input actions stay on right */
    .input-actions {
        flex-shrink: 0;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-background);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.show, .modal.active {
    display: flex !important;
    opacity: 1 !important;
}

.modal.active,
.modal.show {
    opacity: 1;
    display: flex !important;
}

.modal-content {
    background: var(--surface);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--error-color);
    color: #ffffff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    background: var(--surface);
    color: var(--text);
}

/* VS Code style scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 0;
    border: 2px solid var(--surface);
    min-height: 20px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
    border: 2px solid var(--surface);
}

.modal-body::-webkit-scrollbar-thumb:active {
    background: var(--text-secondary);
    border: 2px solid var(--surface);
}

.modal-body::-webkit-scrollbar-corner {
    background: var(--surface);
}

/* Firefox scrollbar styling for modal body */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--surface);
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--surface);
}

/* Edit Message Modal Styles */
.edit-textarea {
    width: 100%;
    padding: 12px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: all var(--transition-fast);
}

.edit-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 0;
}





.message-actions {
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    position: absolute;
    top: -10px;
    right: 10px;
    display: flex;
    gap: var(--spacing-xs);
    z-index: 10;
}

.message-actions.visible {
    opacity: 1;
    visibility: visible;
}

/* Button Styles for Modals - VS Code Style */
.btn-secondary {
    padding: 8px 16px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--background);
    color: var(--text);
    border-color: var(--primary-color);
}

.btn-primary {
    padding: 8px 16px;
    background: #0078d4;
    color: #ffffff;
    border: 1px solid #0078d4;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: #1177bb;
    border-color: #1177bb;
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .navbar {
        padding: 8px 16px;
    }
    
    .message-content {
        max-width: 95%;
    }
    
    .chat-input-area {
        padding: var(--spacing-md);
    }
    
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    
    .input-actions {
        justify-content: space-between;
    }
    
    .toast-container {
        left: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .toast {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }
}

/* ============================================
   VISUAL STUDIO STYLE IMPORT/EXPORT MODAL
   ============================================ */

/* Enhanced Modal Styling */
.enhanced-upload-modal .modal-content,
.import-export-modal .modal-content {
    max-width: 900px;
    width: 90%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.enhanced-modal-body {
    padding: 0;
    background: var(--surface);
}

.enhanced-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Enhanced File Upload Modal Styles */
.upload-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 32px;
}

.upload-section {
    margin-bottom: 32px;
}

.upload-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.upload-header h4 {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.enhanced-upload-area {
    background: var(--background);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 24px;
}

.enhanced-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.enhanced-upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.08);
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 122, 204, 0.15);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-icon-wrapper {
    margin-bottom: 8px;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.enhanced-upload-area:hover .upload-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.upload-text h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.upload-text p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.upload-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-btn {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

.upload-btn:hover {
    background: #1177bb;
    border-color: #1177bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 204, 0.3);
}

.upload-hint {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
    max-width: 400px;
}

.file-list-section {
    margin-bottom: 24px;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.file-list-header h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-clear-files {
    padding: 6px 12px;
    background: rgba(245, 101, 101, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-clear-files:hover {
    background: rgba(245, 101, 101, 0.2);
    transform: translateY(-1px);
}

.file-list-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background);
}

/* VS Code style scrollbar for file list container */
.file-list-container::-webkit-scrollbar {
    width: 12px;
}

.file-list-container::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 0;
    border: 1px solid var(--border-color);
}

.file-list-container::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 0;
    border: 1px solid var(--border-color);
    min-height: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.file-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--hover);
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.file-list-container::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.2);
}

.file-list-container::-webkit-scrollbar-corner {
    background: var(--background);
    border: 1px solid var(--border-color);
}

/* Firefox scrollbar styling for file list container */
.file-list-container {
    scrollbar-width: thin;
    scrollbar-color: var(--surface) var(--background);
}

.file-list {
    padding: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.file-item i {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-details strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    word-break: break-word;
}

.file-details small {
    color: var(--text-secondary);
    font-size: 12px;
}

.file-item span {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.file-item button {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-item button:hover {
    background: rgba(245, 101, 101, 0.1);
    transform: scale(1.1);
}

.upload-options {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.upload-options h5 {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-item span {
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

.btn-process-upload {
    padding: 14px 28px;
    background: var(--success-color);
    color: white;
    border: 2px solid var(--success-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(78, 201, 176, 0.2);
}

.btn-process-upload:hover:not(:disabled) {
    background: #45b7aa;
    border-color: #45b7aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(78, 201, 176, 0.3);
}

.btn-process-upload:disabled {
    background: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-process-upload i {
    font-size: 16px;
}

/* Import/Export Modal Specific Styles */
.import-export-modal .modal-content {
    max-width: 900px;
    width: 90%;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.import-export-modal .modal-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.import-export-modal .modal-header h3 {
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.import-export-modal .modal-body {
    padding: 0;
    background: var(--surface);
}

/* Import Tabs - VS Code Style */
.import-tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-btn:hover {
    background: var(--hover);
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.tab-btn i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* Tab Content Panels */
.tab-content {
    padding: 0;
}

.tab-panel {
    display: none;
    padding: 32px;
    background: var(--surface);
}

.tab-panel.active {
    display: block;
}

/* Enhanced Tab Panel Containers */
.tab-panel-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.tab-panel-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-panel-header h3 {
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.tab-panel-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* File Upload Section - VS Code Style */
.file-upload-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 32px;
}

.file-upload-container {
    background: var(--background);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 64px 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 24px;
}

.file-upload-container:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.file-upload-container.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.08);
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 122, 204, 0.15);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-icon {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.file-upload-container:hover .upload-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.file-upload-area h3 {
    color: var(--text);
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.file-upload-area p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.upload-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-btn {
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

.upload-btn:hover {
    background: #1177bb;
    border-color: #1177bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 204, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
}

.upload-hint {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    max-width: 400px;
}

/* Process Upload Button - New Addition */
.process-upload-btn {
    padding: 14px 28px;
    background: var(--success-color);
    color: white;
    border: 2px solid var(--success-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(78, 201, 176, 0.2);
    margin-top: 16px;
}

.process-upload-btn:hover {
    background: #45b7aa;
    border-color: #45b7aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(78, 201, 176, 0.3);
}

.process-upload-btn:disabled {
    background: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.process-upload-btn i {
    font-size: 16px;
}

/* File Info Display - VS Code Style */
.file-info {
    background: var(--background);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-details {
    flex: 1;
}

.file-text strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.file-text small {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

/* Format Grid - VS Code Style */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.format-item {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.format-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.format-item i {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.format-item strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.format-item p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* Paste Section - VS Code Style */
.paste-section {
    max-width: 750px;
    margin: 0 auto;
    padding: 32px;
}

.paste-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.paste-header h4 {
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.paste-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.paste-area {
    margin-bottom: 32px;
}

#pasteData {
    width: 100%;
    padding: 20px;
    background: var(--background);
    color: var(--text);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 250px;
    transition: all 0.3s ease;
}

#pasteData:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
    transform: translateY(-1px);
}

.paste-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.paste-actions button {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paste-actions .btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.paste-actions .btn-secondary:hover {
    background: var(--background);
    color: var(--text);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* URL Section - VS Code Style */
.url-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 32px;
}

.url-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.url-header h4 {
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.url-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

.url-input-group {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.url-input-group > div {
    flex: 1;
}

.url-input-group label {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

#importUrl {
    width: 100%;
    padding: 14px 18px;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

#importUrl:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
    transform: translateY(-1px);
}

#importUrl::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.url-import button {
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 122, 204, 0.2);
    white-space: nowrap;
    height: fit-content;
}

.url-import button:hover {
    background: #1177bb;
    border-color: #1177bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 122, 204, 0.3);
}

.url-help {
    background: var(--background);
    border: 2px solid var(--info-color);
    border-left: 4px solid var(--info-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.url-help h6 {
    color: var(--info-color);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.url-help ul {
    margin: 0;
    padding-left: 28px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.url-help li {
    margin-bottom: 6px;
}

/* Import Options Section */
.import-options-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.import-options-section h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 16px 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-option span {
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

/* Enhanced Import Options Styles */
.import-options {
    padding: 0;
}

.enhanced-import-content {
    background: var(--surface);
}

.import-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 32px;
}

.import-method {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.import-tabs {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 16px;
}

.enhanced-import-dropzone {
    background: var(--background);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 24px;
}

.enhanced-import-dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.enhanced-import-dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.08);
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 122, 204, 0.15);
}

.selected-file-display {
    margin-bottom: 24px;
}

.selected-file-display .file-info {
    background: var(--background);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-selected-display {
    margin: 20px 0;
    animation: slideInUp 0.3s ease;
}

.selected-file-display .file-info-enhanced {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    background: var(--background);
    overflow: hidden;
    position: relative;
}

.selected-file-display .file-info-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.selected-file-display .file-details {
    flex: 1;
    padding: 16px;
}

.selected-file-display .file-text strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.selected-file-display .file-text small {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.file-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-change-file {
    padding: 10px 16px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-change-file:hover {
    background: var(--background);
    color: var(--text);
    border-color: var(--primary-color);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progress {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.url-input-group {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.url-input-container {
    flex: 1;
}

.url-input-container label {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.url-input-container input {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.url-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
    transform: translateY(-1px);
}

.url-help {
    background: var(--background);
    border: 2px solid var(--info-color);
    border-left: 4px solid var(--info-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.url-help h6 {
    color: var(--info-color);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-help ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.url-help li {
    margin-bottom: 6px;
}

.import-options-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* Import Actions Footer */
.import-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Export Actions Enhanced */
.export-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Enhanced Export Options Styles */
.export-options {
    padding: 0;
}

.enhanced-export-content {
    background: var(--surface);
}

.export-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 32px;
}

.export-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.export-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    margin-bottom: 20px;
    text-align: left;
}

.section-header h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h4 i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.export-type-selection {
    padding: 0;
    border: none;
}

.export-type-selection h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 16px 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    margin-top: 2px;
    cursor: pointer;
}

.radio-label {
    flex: 1;
}

.radio-label strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.radio-label small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.format-selection {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.format-selection h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 16px 0;
}

.format-selection .format-grid {
    margin-top: 0;
}

.format-option {
    display: block;
    cursor: pointer;
}

.format-option input[type="radio"] {
    display: none;
}

.format-option .format-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.format-option input[type="radio"]:checked + .format-card {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.format-option:hover .format-card {
    border-color: var(--primary-color);
}

.export-options-section {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.export-actions {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================
   VISUAL STUDIO CODE STYLE IMPLEMENTATION
   ============================================ */

/* VS Panel System */
.vs-panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* VS Tab Bar */
.vs-tab-bar {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.vs-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    border-right: 1px solid var(--border-color);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
    user-select: none;
}

.vs-tab:hover {
    background: var(--hover);
    color: var(--text);
}

.vs-tab.active {
    color: var(--primary-color);
    background: var(--background);
}

.vs-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.vs-tab i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

/* VS Panel Content */
.vs-panel-content {
    padding: 0;
    background: var(--surface);
    min-height: 300px;
}

.vs-panel-item {
    display: none;
    padding: 24px;
    background: var(--surface);
}

.vs-panel-item.active {
    display: block;
}

/* VS Drop Zone */
.vs-drop-zone {
    background: var(--background);
    border: 2px dashed var(--border-color);
    border-radius: 4px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 16px;
}

.vs-drop-zone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.vs-drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.1);
    transform: scale(1.02);
}

.vs-drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.vs-drop-zone-content * {
    pointer-events: none;
}

.vs-icon {
    font-size: 48px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.vs-drop-zone:hover .vs-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.vs-drop-zone h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.vs-drop-zone p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* VS File Info */
.vs-file-info {
    background: var(--background);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
    animation: vs-fadeIn 0.3s ease-out;
}

@keyframes vs-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vs-fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.vs-file-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vs-file-icon {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vs-file-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.vs-file-text {
    flex: 1;
    min-width: 0;
}

.vs-file-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    word-break: break-word;
}

.vs-file-size {
    color: var(--text-secondary);
    font-size: 12px;
}

.vs-file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* VS Button System */
.vs-btn {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    user-select: none;
}

.vs-btn:hover {
    background: var(--hover);
    border-color: var(--primary-color);
}

.vs-btn:active {
    transform: translateY(1px);
}

.vs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vs-btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vs-btn-primary:hover {
    background: #1177bb;
    border-color: #1177bb;
}

.vs-btn-secondary {
    background: var(--surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.vs-btn-secondary:hover {
    background: var(--hover);
    border-color: var(--primary-color);
    color: var(--text);
}

/* VS Form Elements */
.vs-form-group {
    margin-bottom: 20px;
}

.vs-label {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.vs-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
    transition: all 0.15s ease;
}

.vs-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

.vs-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.vs-input-group .vs-input {
    flex: 1;
}

.vs-textarea {
    width: 100%;
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
    transition: all 0.15s ease;
}

.vs-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

/* VS Panel Footer */
.vs-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.vs-form-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* VS Checkbox */
.vs-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
}

.vs-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.vs-checkbox-mark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

/* Hide native radio and checkbox inputs for VS style elements */
.vs-radio-option input[type="radio"],
.vs-format-option input[type="radio"],
.vs-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.vs-checkbox input[type="checkbox"]:checked ~ .vs-checkbox-mark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vs-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* VS Form Actions */
.vs-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* VS Label Description */
.vs-label-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 4px 0 16px 0;
    line-height: 1.4;
}

/* VS Radio Group */
.vs-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vs-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vs-radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.vs-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0;
    position: absolute;
}

.vs-radio-mark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.vs-radio-option input[type="radio"]:checked ~ .vs-radio-mark {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.vs-radio-option input[type="radio"]:checked ~ .vs-radio-mark::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.vs-radio-content {
    flex: 1;
}

.vs-radio-content strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.vs-radio-content small {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* VS Format Grid */
.vs-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.vs-format-option {
    display: block;
    cursor: pointer;
}

.vs-format-option input[type="radio"] {
    opacity: 0;
    position: absolute;
}

.vs-format-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.vs-format-option input[type="radio"]:checked ~ .vs-format-card {
    border-color: var(--primary-color);
    background: rgba(0, 122, 204, 0.05);
}

.vs-format-option:hover .vs-format-card {
    border-color: var(--primary-color);
}

.vs-format-card i {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
    color: var(--primary-color);
}

.vs-format-card strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.vs-format-card p {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.vs-format-card small {
    color: var(--text-muted);
    font-size: 11px;
}

/* VS Checkbox Group */
.vs-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vs-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.vs-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.vs-checkbox-content {
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

/* VS Export Preview */
.vs-export-preview {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-top: 16px;
}

.vs-preview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.vs-stat-item {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.vs-stat-number {
    display: block;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.vs-stat-label {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vs-format-info {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.vs-info-item {
    color: var(--text);
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vs-info-item:last-child {
    margin-bottom: 0;
}

.vs-info-item strong {
    color: var(--text);
    font-weight: 500;

/* ============================================
   VS CODE STYLE TAB SYSTEM
   ============================================ */

/* Tab styles moved to separate tabs.css file */

/* Tab overflow handling */
.tab-list {
    position: relative;
}

.tab-list::before,
.tab-list::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.tab-list::before {
    left: 0;
    background: linear-gradient(to right, var(--surface), transparent);
}

.tab-list::after {
    right: 0;
    background: linear-gradient(to left, var(--surface), transparent);
}

/* Mobile responsive tab bar */
@media (max-width: 768px) {
    .tab-bar {
        height: 40px;
    }
    
    .tab {
        min-width: 100px;
        max-width: 150px;
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .tab-icon {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
    
    .tab-close {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}

/* Animation for tab changes */
.tab {
    animation: tabSlideIn 0.2s ease-out;
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab.removing {
    animation: tabSlideOut 0.2s ease-in forwards;
}

@keyframes tabSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-width: 200px;
    }
    to {
        opacity: 0;
        transform: translateY(-5px);
        max-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Tab group styling for pinned tabs */
.tab.pinned {
    border-left: 3px solid var(--primary-color);
}

.tab.pinned .tab-title {
    font-weight: 500;
}
}
