/* ===== PAGE LAYOUT ===== */
.page {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    background-color: #fff;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-row {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1rem;
}

/* ===== NAV STYLES ===== */
.nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #57b846;
    border-left-color: #57b846;
}

.nav-link.active {
    background-color: #e8f5e9;
    color: #57b846;
    border-left-color: #57b846;
    font-weight: 500;
}

/* ===== NAV GROUPS ===== */
.nav-group {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.nav-group-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.05em;
}

.nav-group .nav-link {
    padding-left: 2.5rem;
}

/* ===== EMOJI STYLES ===== */
.emoji {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    min-width: 1.2rem;
    text-align: center;
}

.text {
    flex: 1;
}

/* ===== LOGOUT BUTTON ===== */
.logout {
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-logout:hover {
    background-color: #fdd;
    border-color: #faa;
}

.btn-logout .emoji {
    margin-right: 0.5rem;
}

/* ===== DESKTOP ONLY ===== */
@media (min-width: 768px) {
    .sidebar {
        width: 280px;
        display: flex;
    }

    .content {
        padding: 2rem 1.5rem;
    }
}

/* ===== SCROLLBAR OVERRIDE FOR SIDEBAR ===== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
