/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --content-bg: #fff;
    --nav-width: 250px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    min-height: 100vh;
}

/* Layout */
.sidebar {
    width: var(--nav-width);
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
}

.main-content {
    margin-left: var(--nav-width);
    flex: 1;
    padding: 40px;
    background-color: var(--content-bg);
    min-height: 100vh;
    max-width: 1200px;
}

/* Navigation */
.site-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-title a {
    color: white;
    text-decoration: none;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 10px;
}

.nav-menu a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-color);
}

/* Content */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 15px;
    margin-top: 25px;
    color: var(--primary-color);
}

h1 {
    font-size: 2.2em;
    margin-top: 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}
