:root {
    --main-color: #4868FF;
    --code-bg: #1e1e1e;
    --code-color: #d4d4d4;
    --callout-bg: #2a2a2a;
    --divider-color: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0f0f0f;
    color: #e5e5e5;
    font-size: 1em;
    line-height: 1.5;
    transition: all 0.3s ease;
}

body.light-mode {
    background-color: #f8f8f8;
    color: #2a2a2a;
}

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

.image-cover {
    text-align: left;
    margin-bottom: 1rem;
}

.image-cover img {
    max-height: 512px;
    height: auto;
}

.image-container {
    text-align: left;
    margin-bottom: 1rem;
    width: 164px;
}

.image-container img {
    max-width: 50%;
    height: auto;
}

.sidebar {
    width: 280px;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    background: transparent;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.light-mode .sidebar {
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--main-color);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    color: #e5e5e5;
    transition: transform 0.2s ease;
}

#theme-toggle:hover {
    transform: scale(1.2);
}

.light-mode #theme-toggle {
    color: #2a2a2a;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 12px 0;
}

.sidebar a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 1em;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.light-mode .sidebar a {
    color: #4a4a4a;
}

.sidebar a:hover {
    color: var(--main-color);
    background: rgba(98, 0, 234, 0.1);
}

main {
    margin-left: 400px;
    padding: 60px 20px;
}

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

section {
    margin-bottom: 60px;
}

h1 {
    color: var(--main-color);
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
}

.subtitle {
    font-weight: 300;
    font-size: 1.3em;
    color: #b8b8b8;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.light-mode .subtitle {
    color: #4a4a4a;
}

h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: #e5e5e5;
    margin-top: 30px;
    margin-bottom: 15px;
}

.light-mode h2 {
    color: #2a2a2a;
}

p {
    margin-bottom: 20px;
}



.callout {
    background: linear-gradient(145deg, var(--callout-bg), #222222);
    padding: 20px;
    border-left: 5px solid var(--main-color);
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.light-mode .callout {
    background: linear-gradient(145deg, #e8e8e8, #f0f0f0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--divider-color), transparent);
    margin: 40px 0;
}

.light-mode .section-divider {
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #b8b8b8;
    font-size: 0.9em;
    border-top: 1px solid var(--divider-color);
}

.light-mode footer {
    color: #4a4a4a;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sidebar {
        width: 220px;
        padding: 20px 15px;
    }
    main {
        margin-left: 250px;
        padding: 40px 15px;
    }
    .content-wrapper {
        max-width: 100%;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
}