/* Modern DevOps Interview Simulator Styles - Dark Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Dark theme colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #151520;
    --bg-card: rgba(15, 15, 26, 0.9);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(99, 102, 241, 0.2);
    --accent: #6366f1;
    --accent-hover: #7c3aed;
}

[data-theme="light"] {
    /* Light theme colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --border-color: rgba(99, 102, 241, 0.3);
    --accent: #6366f1;
    --accent-hover: #7c3aed;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

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

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #8b5cf6);
    border-radius: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark theme background - solid color */
body:not([data-theme="light"]) {
    background: #0a0a0f;
}

/* Light theme background - solid color */
body[data-theme="light"] {
    background: #f8fafc;
}

/* Background particles removed - clean solid background */

/* Glass morphism effect */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .glass-card {
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Modern card with glow */
.modern-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .modern-card {
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 70px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

/* Gradient buttons */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-gradient:active {
    transform: translateY(0);
}

/* Success button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

/* Animated progress bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 100%;
    animation: progressFlow 2s linear infinite;
    border-radius: 2px;
}

@keyframes progressFlow {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Score badge with glow */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 9999px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    font-weight: 700;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.8); }
}

/* Session card */
.session-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-primary);
}

.session-card:hover {
    background: var(--bg-tertiary);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Input styling */
.modern-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modern-input:focus {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Select styling */
.modern-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.modern-select:focus {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Feedback card */
.feedback-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(30, 64, 175, 0.3));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .feedback-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Success feedback card */
.success-card {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .success-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(34, 197, 94, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide in animation */
.slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Navbar styling */
.navbar-glass {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .navbar-glass {
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

/* Sidebar styling */
.sidebar-glass {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .sidebar-glass {
    background: rgba(248, 250, 252, 0.95);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.glow-green {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

/* Text colors */
.text-gray-100 { color: var(--text-primary) !important; }
.text-gray-200 { color: var(--text-secondary) !important; }
.text-gray-300 { color: var(--text-secondary) !important; }
.text-gray-400 { color: var(--text-muted) !important; }
.text-gray-500 { color: var(--text-muted) !important; }

/* Background colors */
.bg-gray-700 { background-color: var(--bg-tertiary) !important; }
.bg-gray-800 { background-color: var(--bg-secondary) !important; }
.bg-gray-900 { background-color: var(--bg-primary) !important; }

/* Border colors */
.border-gray-600 { border-color: var(--border-color) !important; }
.border-gray-700 { border-color: var(--border-color) !important; }
.border-gray-800 { border-color: var(--border-color) !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-card {
        padding: 1rem;
    }
}
