/* Premium Design System for AI Log Analyzer */

:root {
    --primary: #004aef;
    --primary-light: #3371f2;
    --accent: #ffce00;
    --accent-light: #ffd833;
    --secondary: #0dd1ff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0dd1ff;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 12px;
}

[data-theme='dark'] {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --primary: #38bdf8;
    --primary-light: #7dd3fc;
    --accent: #ffce00;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.card-premium {
    background: var(--bg-card);
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Button Upgrades */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:active::after {
    width: 300%;
    height: 300%;
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 15px rgba(0, 74, 239, 0.3);
}

.glow-accent {
    box-shadow: 0 0 15px rgba(255, 206, 0, 0.3);
}

/* Dark Mode Toggle Switch */
.theme-toggle {
    cursor: pointer;
    width: 48px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s ease;
}

.theme-toggle::before {
    content: '\f185';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--warning);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

[data-theme='dark'] .theme-toggle::after {
    transform: translateX(24px);
}

[data-theme='dark'] .theme-toggle::before {
    content: '\f186';
    color: #cbd5e1;
    left: 30px;
}

/* Drop Zone Cyber Look */
.drop-zone-cyber {
    border: 2px dashed var(--border);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-main));
    transition: all 0.4s ease;
}

.drop-zone-cyber.dragover {
    border-color: var(--accent);
    background: rgba(255, 206, 0, 0.05);
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 206, 0, 0.2);
}

/* Status Badges Premium */
.badge-premium {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* Header Glass */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(0, 74, 239, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .header-glass {
    background: rgba(15, 23, 42, 0.85);
}
