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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --nav-hover: #333333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --nav-hover: #333333;
    --border-color: #404040;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Navigation Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--nav-hover);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--nav-text);
}

.theme-toggle {
    background: var(--nav-hover);
    border: none;
    color: var(--nav-text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background: #555555;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--nav-text);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--nav-hover);
    border-left-color: #ffffff;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.content-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-section h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.content-section ul {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Mobile Styles */
.mobile-header {
    display: none;
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
}

.mobile-header>a {
    text-decoration: none;
}

.mobile-header>a:hover {
    text-decoration: none;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--nav-text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 5rem;
    }

    .sidebar-header {
        padding: 1rem;
    }

    .sidebar-header>a {
        text-decoration: none;
    }

    .sidebar-header>a:hover {
        text-decoration: none;
    }

    .site-name {
        font-size: 1.2rem;
    }

    .theme-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }
}

/* Overlay for mobile */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}