:root {
    --primary-color: #FFC857;
    --secondary-color: #E9724C;
    --bg-dark: #0A0F1F;
    --bg-darker: #070B16;
    --accent-bg: rgba(255, 200, 87, 0.1);
    --text-light: #E0E0E0;
    --text-muted: #8C8C8C;
    --sidebar-width: 300px;
    --transition-speed: 0.4s;
    --border-radius: 12px;
    --card-bg: rgba(15, 23, 42, 0.8);
    --blur-intensity: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 15, 31, 0.9) 0%,
        rgba(14, 22, 45, 0.7) 100%
    );
    z-index: 1;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    backdrop-filter: var(--blur-intensity);
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    transition: left var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 6rem 1.5rem 2rem;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 200, 87, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    padding: 0;
}

.sidebar li {
    margin: 0.8rem 0;
}

.sidebar a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.sidebar a:hover {
    background: rgba(255, 200, 87, 0.05);
    padding-left: 1.5rem;
}

.sidebar a:hover::after {
    width: 100%;
}

.toggle-sidebar {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: var(--card-bg);
    backdrop-filter: var(--blur-intensity);
    color: var(--primary-color);
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 200, 87, 0.15);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1001;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-sidebar:hover {
    background: rgba(255, 200, 87, 0.1);
    transform: translateX(4px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
        --blur-intensity: blur(8px);
    }

    .toggle-sidebar {
        left: 1rem;
        padding: 0.6rem 1rem;
    }
}

.toggle-sidebar {
    transition: transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    opacity: 0;
    transition: opacity 0.6s ease;
}