
/* ============================================================
   GLOBAL
   ============================================================ */
body {
    background: #f8f9fc;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #4a4a4a;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: 240px;
    background: #198754;
    color: #fff;
    padding-top: 15px;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: .3s;
}

.sidebar-brand {
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item {
    color: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    margin: 3px 10px;
    transition: .2s;
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.15);
}

.sidebar-item.active {
    background: rgba(255,255,255,0.28);
    font-weight: 600;
}

/* --- Sidebar Group --- */
.sidebar-group {
    margin-bottom: 5px;
}

.sidebar-parent {
    padding: 12px 18px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .2s;
}

.sidebar-parent:hover {
    background: rgba(255,255,255,0.15);
}

.sidebar-parent .arrow {
    margin-left: auto;
    transition: transform .2s;
}

.sidebar-parent.open .arrow {
    transform: rotate(90deg);
}

.sidebar-child {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.08);
}

.sidebar-child.show {
    display: flex;
}

.sidebar-child a {
    padding: 10px 40px;
    color: #fff;
    font-size: 14px;
    display: block;
}

.sidebar-child a:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
    flex: 1;
    background: #f8f9fc;
    padding: 25px;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
    background: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid #e3e6f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Running text */
.running-type {
    font-size: 13px;
    font-weight: 600;
    color: #198754;
    white-space: nowrap;
    overflow: hidden;
}

/* ============================================================
   USER DROPDOWN
   ============================================================ */
.topbar-user {
    position: relative;
}

.user-trigger {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-weight: 600;
    color: #198754;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-user {
    position: absolute;
    top: 45px;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    width: 160px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

.dropdown-user.show {
    display: flex;
    animation: fadeIn .2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-user a {
    padding: 10px 14px;
    font-size: 14px;
    color: #198754;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-user a:hover {
    background: #f0f0f0;
}

/* ============================================================
   CARD MODERN
   ============================================================ */
.card-modern {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: none;
    background: #fff;
    padding: 18px;
    transition: .15s;
}

.card-modern:hover {
    transform: translateY(-2px);
}

/* Summary card */
.summary-card {
    padding: 18px 20px;
}

.summary-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
}

.summary-icon {
    font-size: 26px;
    opacity: .8;
}

/* ============================================================
   MENU CARD
   ============================================================ */
.menu-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    border: none;
    background: #fff;
    transition: .2s;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.menu-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #198754;
    margin: 20px 0 25px;
    padding-left: 10px;
    border-left: 6px solid #198754;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 28px;
    color: #198754;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
.mobile-toggle {
    display: none !important;
}

@media (max-width: 768px) {

    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        width: 240px;
        transition: .3s;
        z-index: 9999;
        overflow-y: auto;
    }

    .sidebar.show {
        left: 0;
    }

    .mobile-toggle {
        display: inline-block !important;
        font-size: 22px;
        cursor: pointer;
        color: #198754;
        margin-bottom: 10px;
    }

    .topbar {
        padding: 10px 14px;
    }

    .summary-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
    }
}
