/* Theme CSS Variables for LuxFlow */

/* Light Theme (Default) */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --secondary-hover: #545b62;
    
    --success-color: #155724;
    --success-bg: #d4edda;
    --success-border: #c3e6cb;
    
    --danger-color: #721c24;
    --danger-bg: #f8d7da;
    --danger-border: #f1b0b7;
    
    --warning-color: #856404;
    --warning-bg: #fff3cd;
    --warning-border: #ffeaa7;
    
    --info-color: #0c5460;
    --info-bg: #d1ecf1;
    --info-border: #bee5eb;
    
    /* Background colors */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --card-header-bg: #f8f9fa;
    --navbar-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --stats-bg: #f8f9fa;
    --hover-bg: #f8f9fa;
    
    /* Input colors */
    --input-bg: #ffffff;
    --input-disabled-bg: #f8f9fa;
    
    /* Text colors */
    --text-color: #212529;
    --text-muted: #6c757d;
    --heading-color: #212529;
    --label-color: #495057;
    
    /* Border colors */
    --border-color: #dee2e6;
    
    /* Link colors */
    --link-color: #007bff;
    --link-hover: #0056b3;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #4dabf7;
    --primary-hover: #339af0;
    --secondary-color: #868e96;
    --secondary-hover: #adb5bd;
    
    --success-color: #51cf66;
    --success-bg: #2b8a3e;
    --success-border: #37b24d;
    
    --danger-color: #ff6b6b;
    --danger-bg: #c92a2a;
    --danger-border: #e03131;
    
    --warning-color: #ffd43b;
    --warning-bg: #e67700;
    --warning-border: #fd7e14;
    
    --info-color: #74c0fc;
    --info-bg: #1864ab;
    --info-border: #1971c2;
    
    /* Background colors */
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --card-header-bg: #3a3a3a;
    --navbar-bg: #2d2d2d;
    --footer-bg: #2d2d2d;
    --stats-bg: #3a3a3a;
    --hover-bg: #3a3a3a;
    
    /* Input colors */
    --input-bg: #3a3a3a;
    --input-disabled-bg: #2d2d2d;
    
    /* Text colors */
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --heading-color: #ffffff;
    --label-color: #dee2e6;
    
    /* Border colors */
    --border-color: #495057;
    
    /* Link colors */
    --link-color: #4dabf7;
    --link-hover: #339af0;
}

/* Theme transition animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Ensure proper contrast for interactive elements in dark theme */
[data-theme="dark"] .btn-primary {
    background-color: var(--primary-color);
    color: #000000;
}

[data-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-hover);
    color: #000000;
}

[data-theme="dark"] .navbar-item.active {
    background-color: var(--primary-color);
    color: #000000;
}

/* Dark theme specific adjustments */
[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.25);
}

[data-theme="dark"] .alert-success {
    background-color: rgba(81, 207, 102, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(81, 207, 102, 0.3);
}

[data-theme="dark"] .alert-error, 
[data-theme="dark"] .alert-danger {
    background-color: rgba(255, 107, 107, 0.2);
    color: var(--danger-color);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(255, 212, 59, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 212, 59, 0.3);
}

[data-theme="dark"] .alert-info {
    background-color: rgba(116, 192, 252, 0.2);
    color: var(--info-color);
    border: 1px solid rgba(116, 192, 252, 0.3);
}

/* Shadow adjustments for dark theme */
[data-theme="dark"] .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .dropdown-menu {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .alert {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Logo adjustments for dark theme */
[data-theme="dark"] .logo {
    filter: brightness(1.2) contrast(1.1);
}

/* Ensure readability of placeholder text */
[data-theme="dark"] .form-control::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

[data-theme="dark"] .form-control::-webkit-input-placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

[data-theme="dark"] .form-control::-moz-placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

[data-theme="dark"] .form-control:-ms-input-placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

/* Scrollbar styling for dark theme */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-color);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Light theme scrollbar */
[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
