/* RESET */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ===== LAYOUT ===== */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 360px;
    min-width: 360px;
    background: #0f0f0f;
    border-right: 1px solid #2a2a2a;
    overflow-y: auto;
}

/* ===== TOP TABS ===== */
.section-tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #050505;
    border-bottom: 1px solid #222;
}

.section-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #181818;
    color: #bbb;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}

.section-tab:hover {
    background: #252525;
    color: #fff;
}

.section-tab.active {
    background: #d10000;
    color: #fff;
}

/* ===== SIDEBAR TITLE ===== */
.sidebar-title {
    padding: 18px 22px;
    font-size: 22px;
    font-weight: bold;
}

/* ===== MENU ===== */
.menu-item {
    display: block;
    padding: 18px 22px;
    border-top: 1px solid #242424;
    color: #d0d0d0;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.3;
}

.menu-item:hover {
    background: #1c1c1c;
    color: #fff;
}

.menu-item.active {
    background: #3a3a3a;
    color: #fff;
}

/* ===== CONTENT ===== */
.content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

/* ===== TITLE ===== */
.title {
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* ===== ROW ===== */
.row {
    padding: 14px 16px;
    font-size: 22px;
    line-height: 1.4;
    border-bottom: 1px solid #222;
    cursor: pointer;
}

/* DONE STATE */
.row.done {
    background: #12351c;
    color: #888;
    text-decoration: line-through;
}

/* ===== LEVELS ===== */
.level-0 {
    padding-left: 16px;
}

.level-1 {
    padding-left: 40px;
    font-size: 21px;
    color: #ddd;
}

.level-2 {
    padding-left: 65px;
    font-size: 20px;
    color: #bbb;
}

.level-3 {
    padding-left: 90px;
    font-size: 19px;
    color: #999;
}

/* OPTIONAL BULLETS */
.level-1::before {
    content: "— ";
    color: #666;
}

.level-2::before {
    content: "• ";
    color: #666;
}

/* ===== BOLD / CONDITION ===== */
.row.bold {
    font-weight: bold;
    background: #151515;
    border: 1px solid #444;
    border-radius: 8px;
    margin: 12px 0;
}

/* ===== MEMO BOX ===== */
.memo-box {
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 18px 0;
    background: #050505;
}

.memo-box .row {
    border: none;
    font-weight: bold;
    padding: 10px 12px;
}

/* ===== NOTE ===== */
.row.note {
    font-style: italic;
    background: #101010;
    border-left: 4px solid #888;
    margin: 10px 0;
}

.note-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

/* ===== MOBILE ===== */
@media (max-width: 850px) {

    .container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 45vh;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .content {
        padding: 20px;
    }

    .menu-item {
        font-size: 18px;
        padding: 16px;
    }

    .row {
        font-size: 19px;
    }

    .title {
        font-size: 22px;
    }
}