/**
 * Dynamic Theme System CSS
 * Uses CSS custom properties for dynamic theme switching
 */

/* Default theme colors (purple) */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --primary-light: #7c3aed;
    --primary-dark: #5b21b6;
    --accent-color: #10b981;
    
    /* Derived gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --primary-gradient-hover: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

/* Body with dynamic gradient */
body {
    background: var(--primary-gradient);
    transition: background 1s ease;
}

/* Upload area dynamic styling */
.upload-area {
    border-color: var(--primary-color);
    transition: border-color 1s ease;
}

.upload-area:hover {
    background: linear-gradient(135deg, #eef1ff 0%, #e5e9ff 100%);
}

.upload-area.dragover {
    border-color: var(--secondary-color);
}

/* Tab styling with dynamic colors */
.tab {
    border-color: var(--primary-color);
    transition: all 1s ease;
}

.tab:hover {
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.tab.active {
    background: var(--primary-gradient);
    color: white;
}

/* Button styling */
.btn-primary, 
.privacy-btn.primary,
.sim-apply-btn {
    background: var(--primary-gradient) !important;
    border-color: var(--primary-color);
    transition: all 1s ease;
}

.btn-primary:hover,
.privacy-btn.primary:hover,
.sim-apply-btn:hover {
    background: var(--primary-gradient-hover) !important;
}

/* Statistics cards with accent color */
.positive {
    color: var(--accent-color);
}

.neutral {
    color: var(--primary-color);
}

/* Chart container and simulation table headers */
.simulation-table thead {
    background: var(--primary-gradient);
}

/* Privacy banner accent */
.privacy-banner {
    border-top-color: var(--primary-color);
}

/* Focus states */
.sim-table-input:focus,
.sim-table-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

/* Bank info styling */
.bank-info {
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    color: white;
    font-size: 0.9em;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease 0.5s both;
}

.detected-bank {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detected-bank i {
    font-size: 1.1em;
}

/* Smooth transitions for theme changes */
body,
.upload-area,
.tab,
.btn-primary,
.privacy-btn.primary,
.sim-apply-btn,
.simulation-table thead {
    transition: all 1s ease;
}

/* Theme-specific overrides */
.theme-discount {
    /* Green theme specific styles if needed */
}

.theme-hapoalim {
    /* Red theme specific styles if needed */
}

/* Simple wave transition animation */
@keyframes waveTransition {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Color palette for charts - CSS custom properties */
:root {
    --chart-income: var(--accent-color);
    --chart-expense: #ef4444;
    --chart-primary: var(--primary-color);
    --chart-secondary: var(--secondary-color);
    --chart-palette-1: var(--primary-color);
    --chart-palette-2: var(--secondary-color);
    --chart-palette-3: var(--accent-color);
    --chart-palette-4: var(--primary-light);
    --chart-palette-5: var(--primary-dark);
    --chart-palette-6: #f59e0b;
    --chart-palette-7: #8b5cf6;
    --chart-palette-8: #06b6d4;
}
