/* ============================================
   DevPanel - Premium Dark Design System
   Complete Design Overhaul - Modern & Animated
   ============================================ */

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

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   Custom Cursor (Landing & 404 Pages Only)
   ============================================ */
body.landing-page *,
body.error-page * {
    cursor: none !important;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    display: none;
    /* Hidden by default */
}

body.landing-page .cursor-dot,
body.error-page .cursor-dot {
    display: block;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
    display: none;
    /* Hidden by default */
}

body.landing-page .cursor-ring,
body.error-page .cursor-ring {
    display: block;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.cursor-ring.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* ============================================
   CSS Variables - Dark Premium Theme (Default)
   ============================================ */
:root {
    /* Primary Colors - Vibrant Purple/Blue */
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;

    /* Accent Colors */
    --accent-cyan: #22d3ee;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;

    /* Dark Mode Colors (Default) */
    --bg-color: #030712;
    --bg-secondary: #0a0f1a;
    --bg-tertiary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-glass: rgba(17, 24, 39, 0.6);
    --bg-glass-hover: rgba(31, 41, 55, 0.8);
    --border-color: rgba(75, 85, 99, 0.4);
    --border-light: rgba(75, 85, 99, 0.2);
    --text-color: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Status Colors */
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --danger-color: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --info-color: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(139, 92, 246, 0.4);
    --shadow-glow-cyan: 0 0 40px rgba(34, 211, 238, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-dark: linear-gradient(180deg, #030712 0%, #0a0f1a 50%, #111827 100%);
    --gradient-card: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(31, 41, 55, 0.6) 100%);
    --gradient-border: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 50%, #a855f7 100%);
    --gradient-text: linear-gradient(135deg, #f9fafb 0%, #a78bfa 50%, #22d3ee 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   Light Mode Variables
   ============================================ */
.light-mode {
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(148, 163, 184, 0.3);
    --border-light: rgba(148, 163, 184, 0.15);
    --text-color: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.2);

    --gradient-dark: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
    --gradient-text: linear-gradient(135deg, #0f172a 0%, #7c3aed 50%, #0891b2 100%);
}

.light-mode .cursor-dot {
    background: #0f172a;
}

.light-mode .cursor-ring {
    border-color: rgba(124, 58, 237, 0.6);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: var(--shadow-lg), 0 0 20px rgba(139, 92, 246, 0.3);
    }

    50% {
        box-shadow: var(--shadow-xl), 0 0 50px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes morphBlob {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }

    75% {
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(139, 92, 246, 0.5);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    }

    50% {
        border-color: rgba(34, 211, 238, 0.5);
        box-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(34, 211, 238, 0.5);
    }
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Theme Toggle Animation */
@keyframes sunRise {
    0% {
        transform: translateY(20px) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes moonRise {
    0% {
        transform: translateY(-20px) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s ease;
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.light-mode body::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

/* Selection */
::selection {
    background: var(--primary-500);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

a {
    color: var(--primary-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-300);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        padding: var(--space-4);
    }
}

/* ============================================
   Theme Toggle - Animated SVG
   ============================================ */
.theme-toggle-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
}

.theme-toggle {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--transition);
}

.theme-toggle:hover::before {
    opacity: 0.1;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all var(--transition);
}

.theme-toggle:hover svg {
    stroke: var(--primary-400);
    filter: drop-shadow(0 0 10px var(--primary-500));
}

/* Sun icon (shown in dark mode) */
.theme-toggle .sun-icon {
    display: block;
    animation: sunRise 0.5s ease-out;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Moon icon (shown in light mode) */
.light-mode .theme-toggle .sun-icon {
    display: none;
}

.light-mode .theme-toggle .moon-icon {
    display: block;
    animation: moonRise 0.5s ease-out;
}

/* ============================================
   Glassmorphism Card
   ============================================ */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-border);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-500);
}

.card:hover::before {
    opacity: 1;
}

.card h2,
.card h3 {
    margin-bottom: var(--space-4);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Form Styles
   ============================================ */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-400);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    transition: all var(--transition);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), var(--shadow-glow);
}

/* ============================================
   Button Styles
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-main);
    background-size: 200% 200%;
    color: white;
    box-shadow: var(--shadow-md), 0 0 30px rgba(139, 92, 246, 0.3);
    animation: gradientFlow 5s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(139, 92, 246, 0.4);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-500);
    color: var(--primary-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-color);
    border: 2px dashed var(--border-color);
}

.btn-ghost:hover {
    border-style: solid;
    border-color: var(--primary-500);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-400);
}

.btn-block {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(3px);
}

/* ============================================
   Status Badges
   ============================================ */
.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.status.active {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.inactive {
    background: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   Messages
   ============================================ */
.message {
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    display: none;
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: slideIn 0.4s ease-out;
}

.message.show {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.message.success {
    background: var(--success-light);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.message.error {
    background: var(--danger-light);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   Dashboard Grid
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* ============================================
   Welcome Section
   ============================================ */
.welcome-section {
    margin-bottom: var(--space-10);
    animation: fadeInUp 0.8s ease-out;
}

.welcome-section h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
    animation: textGlow 3s ease-in-out infinite;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .theme-toggle-container {
        top: var(--space-4);
        right: var(--space-4);
    }

    .theme-toggle {
        width: 48px;
        height: 48px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}