:root {
    --primary-color: #ea9cb2;
    --bg-color: #202020;
    --sidebar-color: #292929;
    --hover-color: #404040;
    --content-width: 900px;
    --code-bg: #2d2d2d;
}

body {
    background-color: var(--bg-color);
    font-family: 'Roboto', sans-serif;
    color: white;
    margin: 0;
    min-height: 100vh;
    display: flex;
    line-height: 1.6;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-color);
    padding: 30px 0;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    padding: 0 25px 20px;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
}

.sidebar-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.4em;
}

.sidebar a {
    display: block;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1em;
    text-align: left;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 3px 0;
}

.sidebar a:hover {
    background: var(--hover-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar a.active {
    background: var(--hover-color);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
    min-height: 100vh;
    max-width: var(--content-width);
}

h1 {
    font-size: 2.2em;
    color: white;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 8px;
}

h2 {
    color: var(--primary-color);
    margin-top: 35px;
    font-size: 1.6em;
    font-weight: 500;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

h3 {
    color: #ddd;
    margin-top: 25px;
    font-size: 1.3em;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    font-size: 1.05em;
    font-weight: 300;
}

ul, ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

li {
    margin-bottom: 10px;
    position: relative;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

a:hover {
    color: #d18a9e;
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #444;
}

iframe {
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid #444;
}

.warning-box {
    background-color: #464646;
    padding: 15px;
    border-left: 4px solid #ff6b6b;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.note-box {
    background-color: #464646;
    padding: 15px;
    border-left: 4px solid #4dabf7;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.code-block {
    background-color: var(--code-bg);
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    margin: 15px 0;
    overflow-x: auto;
}

@media (max-width: 1080px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 15px 0;
    }
    
    .sidebar-header {
        width: 100%;
    }
    
    .sidebar a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar a:hover {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 25px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}
