/* =========================
   GLOBAL LAYOUT
========================= */

body {
    background-color: #f8f9fa;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Scrollbar lebih halus (optional) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 10px;
}

/* =========================
   SIDEBAR MENU
========================= */

.sidebar a {
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    color: #fff;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Active menu */
.sidebar .active {
    background-color: rgba(255,255,255,0.2);
}

/* =========================
   CARD IMPROVEMENT
========================= */

.card {
    border-radius: 10px;
}

/* =========================
   TABLE
========================= */

.table thead th {
    background-color: #1a2421 !important;
		color: #fff;
}

/* =========================
   BUTTON
========================= */

.btn {
    border-radius: 6px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
    }
}


/* =========================
   HEADER (GLOBAL)
========================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

/* agar sidebar tidak menimpa header */
.sidebar {
    margin-top: 0;
}

/* optional: shadow halus */
.app-header {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.whatsapp-btn:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
}

.whatsapp-btn i {
    font-size: 1.4rem;
}

/* versi mobile: hanya icon */
@media (max-width: 576px) {
    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        padding: 12px;
        border-radius: 50%;
    }
}

.soal-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.soal-content a {
    color: #0d6efd;
    text-decoration: underline;
}