/* ============================================================
   E-LEARNING GURU - SOFT PASTEL THEME
   ============================================================ */

:root {
    --soft-blue:    #E3F2FD;
    --soft-green:   #E8F5E9;
    --soft-yellow:  #FFF8E1;
    --soft-red:     #FFEBEE;
    --soft-purple:  #F3E5F5;
    --soft-teal:    #E0F2F1;
    --soft-orange:  #FFF3E0;
    --soft-pink:    #FCE4EC;
    --soft-indigo:  #E8EAF6;
    --soft-cyan:    #E0F7FA;

    --accent-blue:   #4A90E2;
    --accent-green:  #66BB6A;
    --accent-yellow: #FFB74D;
    --accent-red:    #EF5350;
    --accent-purple: #AB47BC;

    --text-dark:  #2C3E50;
    --text-muted: #7F8C8D;

    --shadow-soft:  0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.10);
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F7 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

#wrapper { min-height: 100vh; }

/* ============ SIDEBAR ============ */
.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #FFFFFF;
    box-shadow: 2px 0 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    overflow-y: auto;
}
.sidebar.collapsed { margin-left: -250px; }

.sidebar-header {
    background: linear-gradient(135deg, #4A90E2, #66BB6A);
    color: white;
}
.sidebar-header h5 { font-weight: 700; margin: 0; }
.sidebar-header small { opacity: 0.9; }

.sidebar .nav-link {
    color: #5A6C7D;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}
.sidebar .nav-link i { margin-right: 10px; width: 20px; display: inline-block; }
.sidebar .nav-link:hover {
    background: var(--soft-blue);
    color: var(--accent-blue);
    transform: translateX(4px);
}
.sidebar .nav-link.active {
    background: linear-gradient(135deg, #4A90E2, #5BA3F5);
    color: white;
    box-shadow: 0 4px 12px rgba(74,144,226,0.3);
}

/* ============ CONTENT ============ */
#page-content-wrapper {
    margin-left: 250px;
    transition: all 0.3s ease;
    width: calc(100% - 250px);
    min-height: 100vh;
}
.sidebar.collapsed ~ #page-content-wrapper {
    margin-left: 0;
    width: 100%;
}

/* ============ NAVBAR ============ */
.navbar {
    background: white !important;
    box-shadow: var(--shadow-soft);
    padding: 12px 20px;
}

/* ============ STAT CARDS ============ */
.stat-card {
    border-radius: 16px;
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.stat-card .card-body { padding: 20px; position: relative; z-index: 2; }
.stat-card i { opacity: 0.9; }
.stat-card h3 { font-weight: 700; margin: 8px 0 4px; font-size: 28px; }
.stat-card small { font-size: 13px; opacity: 0.95; }

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    z-index: 1;
}

.stat-card.bg-primary  { background: linear-gradient(135deg, #5B9CF6, #7BB3FF) !important; }
.stat-card.bg-success  { background: linear-gradient(135deg, #6BCB77, #8FDD99) !important; }
.stat-card.bg-warning  { background: linear-gradient(135deg, #FFC371, #FFD89B) !important; }
.stat-card.bg-danger   { background: linear-gradient(135deg, #FF8A80, #FFB3AB) !important; }

/* ============ MENU CARDS ============ */
.menu-card {
    border-radius: 14px;
    border: none;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
    box-shadow: var(--shadow-soft);
    display: block;
}
.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.menu-card .card-body {
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}
.menu-card p {
    color: var(--text-dark);
    font-size: 12.5px;
    line-height: 1.3;
    margin: 0;
}

.menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.icon-blue   { background: var(--soft-blue);   color: var(--accent-blue); }
.icon-green  { background: var(--soft-green);  color: var(--accent-green); }
.icon-yellow { background: var(--soft-yellow); color: #F5A623; }
.icon-red    { background: var(--soft-red);    color: var(--accent-red); }
.icon-purple { background: var(--soft-purple); color: var(--accent-purple); }
.icon-teal   { background: var(--soft-teal);   color: #26A69A; }
.icon-orange { background: var(--soft-orange); color: #FB8C00; }
.icon-pink   { background: var(--soft-pink);   color: #EC407A; }
.icon-indigo { background: var(--soft-indigo); color: #5C6BC0; }
.icon-cyan   { background: var(--soft-cyan);   color: #00ACC1; }

/* ============ CARD UMUM ============ */
.card {
    border-radius: 14px;
    border: none;
    background: white;
    box-shadow: var(--shadow-soft);
}
.card-header {
    background: white;
    border-bottom: 1px solid #EEF2F7;
    font-weight: 600;
    padding: 14px 18px;
    border-radius: 14px 14px 0 0 !important;
}
.list-group-item {
    border-color: #EEF2F7;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
}

/* ============ BACKDROP (mobile) ============ */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1040;
    transition: opacity 0.3s;
}
.sidebar-backdrop.show { display: block; }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
    .sidebar { margin-left: -250px; }
    .sidebar.show { margin-left: 0; }

    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .container-fluid { padding: 12px !important; }

    .stat-card h3 { font-size: 22px; }
    .stat-card .card-body { padding: 14px; }
    .stat-card i { font-size: 22px !important; }
    .stat-card small { font-size: 11px; }

    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
    h5 { font-size: 15px; }

    .menu-card .card-body {
        padding: 12px 6px;
        min-height: 95px;
    }
    .menu-icon {
        width: 44px;
        height: 44px;
        font-size: 19px;
        border-radius: 12px;
        margin-bottom: 6px;
    }
    .menu-card p { font-size: 11px; }

    .navbar { padding: 8px 12px !important; }
    .navbar .fw-semibold { font-size: 13px; }

    .card-header { padding: 12px 14px; font-size: 14px; }
    .list-group-item { padding: 12px 14px; font-size: 13px; }
}