:root {
    --bg-color: #0f1115;
    --sidebar-bg: #161b22;
    --text-color: #c9d1d9;
    --link-color: #58a6ff;
    --border-color: #30363d;
    --active-bg: #21262d; 
    --font-main: 'Inter', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.layout {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.sidebar-header h2 {
    color: #fff;
    margin-top: 0;
    font-size: 1.2rem;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav li {
    margin-bottom: 5px;
}

.sidebar nav a {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar nav a:hover {
    background-color: var(--border-color);
}

.sidebar nav a.active {
    background-color: var(--active-bg);
    color: #fff;
    font-weight: 600;
    border-left: 3px solid var(--link-color);
}

.sidebar .section-title {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #8b949e;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Main Content */
.content {
    flex: 1;
    padding: 40px 60px;
    max-width: 900px;
}

.content h1, .content h2 {
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.alert {
    padding: 15px;
    background: rgba(56, 139, 253, 0.15);
    border: 1px solid rgba(56, 139, 253, 0.4);
    border-radius: 6px;
    margin: 20px 0;
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: var(--sidebar-bg);
    padding: 15px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

#menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-header { display: flex; }
    
    .sidebar {
        position: fixed;
        z-index: 100;
        transform: translateX(-100%);
        height: calc(100vh - 60px); /* Adjust for header */
        top: 60px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        padding: 20px;
    }
}
