/* ═══════════════════════════════════════════════════════
   GoodMood Sidebar Navigation - Vertical sidebar layout
   ═══════════════════════════════════════════════════════ */

/* ── Layout wrapper ──────────────────────────────────── */
.gm-app-layout {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0;
    display: flex;
    min-height: calc(100vh - 160px);
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gm-app-content {
    flex: 1;
    padding: 2rem 2.5rem;
    min-width: 0;
    background: #f9fafb;
}

/* ── Sidebar ─────────────────────────────────────────── */
.gm-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #EEEEEE;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
}

/* ── User Block ──────────────────────────────────────── */
.gm-sidebar-user {
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gm-sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF5EB, #ffe8d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #e8933d;
    flex-shrink: 0;
}

.gm-sidebar-user-info {
    overflow: hidden;
}

.gm-sidebar-user-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #0E0E0E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-sidebar-user-email {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Navigation Links ────────────────────────────────── */
.gm-sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.75rem;
}

.gm-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 30px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0E0E0E;
    text-decoration: none;
    transition: all 0.3s linear;
    margin-bottom: 2px;
}

.gm-sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
    transition: opacity 0.3s linear;
}

.gm-sidebar-link:hover {
    background: #EEEEEE;
    color: #0E0E0E;
    text-decoration: none;
}

.gm-sidebar-link:hover i {
    opacity: 1;
}

.gm-sidebar-link.active {
    background: #0E0E0E;
    color: #ffffff;
    font-weight: 600;
}

.gm-sidebar-link.active i {
    opacity: 1;
    color: #ffffff;
}

.gm-sidebar-link.active:hover {
    background: #0E0E0E;
    color: #ffffff;
}

/* ── Footer (Logout) ────────────────────────────────── */
.gm-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #EEEEEE;
    margin-top: auto;
}

.gm-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.gm-sidebar-footer a:hover {
    color: #dc3545;
    text-decoration: none;
}

.gm-sidebar-footer a i {
    font-size: 0.8125rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
    .gm-app-layout {
        flex-direction: column;
    }

    .gm-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #EEEEEE;
        padding: 1rem 0;
    }

    .gm-sidebar-user {
        padding: 0 1rem 1rem;
    }

    .gm-sidebar-nav {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0.5rem 0.75rem;
    }

    .gm-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .gm-sidebar-link {
        white-space: nowrap;
        border-radius: 30px;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .gm-sidebar-footer {
        display: none;
    }

    .gm-app-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .gm-sidebar-user {
        display: none;
    }

    .gm-sidebar-link {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .gm-sidebar-link i {
        font-size: 0.75rem;
    }
}