:root {
    --aurora-primary: linear-gradient(120deg, #00c9ff, #92fe9d);
    --aurora-accent: linear-gradient(45deg, #f093fb, #f5576c);
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-glow: rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
    --navbar-height: 64px;
    --sidebar-width: 240px;
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(51, 65, 85, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.aurora-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 201, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(146, 254, 157, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(240, 147, 251, 0.08) 0%, transparent 50%);
    animation: aurora-rotate 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .aurora-bg {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 201, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(146, 254, 157, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(240, 147, 251, 0.04) 0%, transparent 50%);
}

@keyframes aurora-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: var(--navbar-height);
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    border-radius: 16px;
    z-index: 100;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 8px;
    transition: background var(--transition-speed);
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(0, 201, 255, 0.1);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

.navbar h1 {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: transform var(--transition-speed), background var(--transition-speed), border var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    display: inline-block;
    line-height: 1;
}

.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 1.5rem;
    padding: calc(var(--navbar-height) + 2rem) 1.5rem 1.5rem;
    max-width: 1440px;
    margin: 0 auto;
}

.sidebar {
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: calc(var(--navbar-height) + 2rem);
    border-radius: 16px;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.sidebar h2 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.25rem;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.625rem 0.875rem;
    display: block;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background var(--transition-speed), color var(--transition-speed);
    cursor: pointer;
}

.nav-list a:hover {
    background: rgba(0, 201, 255, 0.1);
    color: #00c9ff;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.nav-section {
    padding: 1.5rem;
    border-radius: 16px;
}

.nav-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

[data-theme="dark"] .nav-link {
    background: rgba(255, 255, 255, 0.08);
}

.nav-link:hover {
    background: rgba(0, 201, 255, 0.15);
    transform: translateY(-2px);
}

.nav-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.nav-name {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 
        0 10px 20px -5px var(--shadow-color),
        0 0 20px var(--shadow-glow);
    transition: all var(--transition-speed) ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 30px -8px var(--shadow-color),
        0 0 30px var(--shadow-glow);
}

.glass-text {
    background: var(--aurora-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 201, 255, 0.3);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin: 1.5rem;
    border-radius: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-right {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        margin: 1rem;
        padding: 1rem;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-divider {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 200px 1fr;
    }
    
    .nav-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding: calc(var(--navbar-height) + 1rem) 1rem 1rem;
    }
    
    .navbar {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0 1rem;
    }
    
    .navbar h1 {
        font-size: 1.1rem;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
        z-index: 95;
        padding-top: calc(var(--navbar-height) + 1rem);
        overflow-y: auto;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
    }
    
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    .nav-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-section {
        padding: 1rem;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-bg {
        animation: none;
    }
    
    .glass-card,
    .nav-link,
    .theme-toggle,
    .menu-toggle,
    .sidebar,
    .sidebar-overlay,
    body {
        transition: none;
    }
}
