/* Theme Variables */
:root {
    /* Light Mode (fallback) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --ara-primary: #f59e0b;
    --ara-primary-hover: #d97706;
    --ara-primary-rgb: 245, 158, 11;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    --message-user-bg: #f59e0b;
    --message-assistant-bg: #ffffff;
    --message-assistant-border: #e2e8f0;
    
    --sidebar-bg: #ffffff;
    --header-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --input-focus-border: #f59e0b;
    
    --table-header-bg: #f59e0b;
    --table-row-hover: #f8f9fa;
    
    --thinking-bg: #f8fafc;
    --thinking-border: #e2e8f0;
    --thinking-header-bg: #f59e0b;
    --text-primary-light: #f2f2f2;
    --logo-filter: none;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #343539;
    --bg-secondary: #232529;
    --bg-tertiary: #161c23;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    
    --border-color: #232529;
    --border-hover: #475569;
    
    --ara-primary: #f59e0b;
    --ara-primary-hover: #fbbf24;
    --ara-primary-rgb: 245, 158, 11;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    --message-user-bg: #f59e0b;
    --message-assistant-bg: #343539;
    --message-assistant-border: #343539;
    
    --sidebar-bg: #232529;
    --header-bg: #232529;
    --input-bg: #161c23;
    --input-border: #161c23;
    --input-focus-border: #f59e0b;
    
    --table-header-bg: #343539;
    --table-row-hover: #343539;
    
    --thinking-bg: #232426;
    --thinking-border: #232426;
    --thinking-header-bg: #f59e0b;
    
    --logo-filter: brightness(1.2);
}

/* Apply theme variables globally */
body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--ara-primary);
    color: white;
    border-color: var(--ara-primary);
    transform: rotate(180deg);
}

.theme-toggle i {
    font-size: 1rem;
}

/* Logo Styles */
.ara-logo-image {
    height: auto;
    width: 200px;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}

.ara-logo-full {
    height: 60px;
    width: auto;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}