/* =========================================================
   CUSTOM DASHBOARD
   E-LEARNING SMK NUSATAMA PADANG
   ========================================================= */

:root {
    --primary: #2556d6;
    --accent: #2D9CDB;
    --muted: #6c757d;
    --bg: #f4f7fb;
    --card: #ffffff;
    --sidebar: #0f1b2b;
}

/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Public Sans", Arial, sans-serif;
    background:
        radial-gradient(circle at 80% 4%, rgba(45, 156, 219, 0.10), transparent 20%),
        linear-gradient(135deg, #eef6ff 0%, #eef2f8 100%);
    color: #2b3a4a;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: transparent;
}

/* =========================================================
   SIDEBAR UTAMA
   ========================================================= */

.sidebar {
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;

    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;

    height: 100vh !important;

    background:
        radial-gradient(
            circle at top left,
            rgba(45, 156, 219, 0.15),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #081828 0%,
            #0d1b30 100%
        ) !important;

    color: #e9f2ff;

    border-right: 1px solid rgba(255, 255, 255, 0.07);

    overflow: hidden !important;

    z-index: 1050 !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 0 !important;
    margin: 0 !important;
}

/* =========================================================
   BAGIAN JUDUL SIDEBAR
   ========================================================= */

.sidebar .sidebar-logo {
    position: relative !important;

    flex: 0 0 125px !important;

    width: 100% !important;
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    z-index: 20 !important;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    background: linear-gradient(180deg, rgba(30,54,91,0.62) 0%, rgba(10,41,72,0.96) 100%);
}

/* Header tempat judul */
.sidebar .logo-header {
    position: relative !important;

    width: 100% !important;
    height: 125px !important;
    min-height: 125px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;

    overflow: hidden !important;

    z-index: 20 !important;
}

/* Link logo/judul */
.sidebar .logo-header .logo {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-decoration: none !important;

    z-index: 30 !important;
}

/* =========================================================
   JUDUL E-LEARNING
   ========================================================= */

.sidebar .logo-title {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;

    color: #ffffff !important;

    line-height: 1.15 !important;

    letter-spacing: 0.2px !important;

    white-space: normal !important;

    overflow: visible !important;

    z-index: 50 !important;
}

.sidebar .logo-title-main {
    display: block;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.06em !important;
    color: #ffffff !important;
}

.sidebar .logo-title-sub {
    display: block;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.12em !important;
    color: #ffffff !important;
    text-transform: uppercase;
}

/* =========================================================
   AREA MENU
   ========================================================= */

.sidebar .sidebar-wrapper {
    position: relative !important;

    flex: 1 1 auto !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;

    padding: 15px 15px 30px 15px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    z-index: 10 !important;
}

/* Scrollbar sidebar */
.sidebar .sidebar-wrapper::-webkit-scrollbar {
    width: 5px;
}

.sidebar .sidebar-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}

/* Isi sidebar */
.sidebar .sidebar-content {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.sidebar .nav {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.sidebar .nav-item {
    position: relative !important;

    width: 100% !important;

    margin: 0 0 5px 0 !important;
    padding: 0 !important;

    z-index: 1 !important;
}

/* Link menu */
.sidebar .sidebar-link,
.sidebar .nav-item > a {
    position: relative !important;

    display: flex !important;

    align-items: center !important;

    width: 100% !important;

    min-height: 48px !important;

    box-sizing: border-box !important;

    color: #b8d6ff !important;

    padding: 0.75rem 1rem !important;

    margin: 0 !important;

    border-radius: 12px !important;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease !important;

    z-index: 2 !important;
}

/* Icon menu */
.sidebar .sidebar-link i,
.sidebar .nav-item > a i {
    min-width: 28px !important;

    width: 28px !important;

    margin-right: 8px !important;

    text-align: center !important;

    color: #72b7ff !important;

    font-size: 16px !important;
}

/* Tulisan menu */
.sidebar .sidebar-link span,
.sidebar .nav-item > a p {
    display: block !important;

    margin: 0 !important;

    color: #eff6ff !important;

    font-size: 14px !important;

    line-height: 1.4 !important;

    white-space: nowrap !important;
}

/* Hover */
.sidebar .sidebar-link:hover,
.sidebar .nav-item > a:hover {
    background: linear-gradient(135deg, rgba(38, 135, 189, 0.34), rgba(255,255,255,0.12)) !important;

    color: #ffffff !important;

    transform: translateX(2px);
}

/* Active */
.sidebar .nav-item.active > a,
.sidebar .sidebar-link.active {
    background: linear-gradient(135deg, #1b6fc8, #2b9fe0) !important;

    color: #ffffff !important;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.38),
        inset 4px 0 0 #89d7ff !important;
}

.sidebar .nav-item.active > a i,
.sidebar .sidebar-link.active i {
    color: #ffffff !important;
}

.sidebar .nav-item.active > a span,
.sidebar .sidebar-link.active span {
    color: #ffffff !important;
    font-weight: 700;
}

.sidebar .nav-item.active {
    position: relative;
}

.sidebar .nav-item.active:before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 6px;
    background: linear-gradient(180deg, #92d7ff, #ffffff);
}

/* =========================================================
   JUDUL / SECTION MENU
   ========================================================= */

.sidebar .sidebar-title,
.sidebar .nav-section {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    margin-top: 18px !important;
    margin-bottom: 8px !important;

    padding: 0 5px !important;

    color: #91b4d4 !important;

    font-size: 11px !important;

    font-weight: 700 !important;

    line-height: 1.5 !important;

    text-transform: uppercase !important;

    letter-spacing: 0.12em !important;

    white-space: nowrap !important;

    z-index: 2 !important;
}

.sidebar .nav-section:first-child {
    margin-top: 0 !important;
}

/* =========================================================
   FOOTER SIDEBAR
   ========================================================= */

.sidebar .sidebar-footer {
    position: relative !important;

    width: 100% !important;

    margin-top: auto !important;

    padding: 1.25rem 0 !important;

    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sidebar .sidebar-footer small {
    display: block;

    margin-top: 0.9rem;

    color: #7e9bb8;
}

.sidebar .btn-danger {
    width: 100%;

    border: 0;

    border-radius: 12px;

    background: #ff6b6b;
}

.sidebar .btn-danger:hover {
    background: #f04f61;
}

.sidebar .text-muted {
    color: #a9b7c7 !important;
}

/* =========================================================
   MAIN PANEL
   ========================================================= */

.main-panel {
    position: relative !important;

    width: calc(100% - 280px) !important;

    min-width: 0 !important;

    min-height: 100vh !important;

    margin-left: 280px !important;

    background: transparent !important;

    transition:
        margin-left 0.25s ease,
        width 0.25s ease !important;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
    width: 100%;

    box-sizing: border-box;

    padding: 0.45rem 2.5rem 2.7rem;

    margin: 0;

    background: transparent;
}

.page-inner {
    padding: 0rem 1.0rem 1rem;
    max-width: 1500px;
    margin: 0 auto;
}

.page-inner > .row:first-child {
    margin-top: 0;
}

.page-inner .card.card-round {
    border: 1px solid rgba(88, 160, 213, 0.16);
}

.page-inner .row.mb-4:first-of-type {
    margin-bottom: 2rem !important;
}

.page-inner .card.card-round .card-body {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(240,250,255,0.88) 100%);
}

.page-inner .welcome-announce {
    background: linear-gradient(135deg, #eefaff 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid rgba(37, 86, 214, 0.12);
    padding: 1.5rem 1.75rem;
}

.page-inner .welcome-announce h5 {
    color: #1c4968;
    font-weight: 800;
}

.page-inner .welcome-announce p {
    color: #587184;
    margin-bottom: 0;
}

/* =========================================================
   SIDEBAR COLLAPSED
   ========================================================= */

.sidebar.collapsed {
    width: 80px !important;

    min-width: 80px !important;

    max-width: 80px !important;
}

/* Main panel saat collapsed */
.sidebar.collapsed + .main-panel,
.main-panel.sidebar-collapsed {
    width: calc(100% - 80px) !important;

    margin-left: 80px !important;
}

/* Judul saat sidebar mengecil */
.sidebar.collapsed .sidebar-logo {
    flex-basis: 80px !important;

    height: 80px !important;
    min-height: 80px !important;
}

.sidebar.collapsed .logo-header {
    height: 80px !important;
    min-height: 80px !important;

    padding: 0 5px !important;
}

.sidebar.collapsed .logo-title {
    font-size: 0 !important;
}

.sidebar.collapsed .logo-title::before {
    content: "E";

    display: block;

    font-size: 24px;

    font-weight: 700;

    color: #ffffff;
}

/* Sembunyikan tulisan menu ketika collapsed */
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .nav-item > a p,
.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .nav-section {
    display: none !important;
}

.sidebar.collapsed .sidebar-wrapper {
    padding: 10px 8px !important;
}

.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .nav-item > a {
    justify-content: center !important;

    padding: 12px 5px !important;
}

.sidebar.collapsed .sidebar-link i,
.sidebar.collapsed .nav-item > a i {
    margin: 0 !important;
}

/* =========================================================
   HEADER / TOPBAR
   ========================================================= */

.topbar {
    background: transparent;
}

.navbar-brand {
    color: #ffffff;
}

/* Tombol toggle */
.btn-toggle,
.topbar-toggler.more {
    width: 44px;

    height: 44px;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.12);

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);

    transition: all 0.2s ease;
}

.btn-toggle:hover,
.topbar-toggler.more:hover {
    background: rgba(255, 255, 255, 0.16);

    transform: translateY(-1px);
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: var(--card);

    border-radius: 10px;

    box-shadow: 0 6px 18px rgba(35, 47, 63, 0.06);

    border: 0;
}

.card .card-body {
    padding: 1.25rem;
}

.card.card-round {
    border-radius: 20px;

    box-shadow: 0 16px 38px rgba(15, 23, 44, 0.08);
}

.card.card-round .card-body {
    padding: 1.85rem;
}

.card .card-header {
    background: transparent;

    border-bottom: 0;

    padding: 0.85rem 1.25rem;
}

/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.summary-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(210px, 1fr));

    gap: 0.85rem;

    margin-top: 0.72rem;

    align-items: stretch;
}

.summary-card {
    position: relative;

    overflow: hidden;

    padding: 0.9rem 0.9rem 1rem;

    border-radius: 20px;

    text-align: center;

    background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);

    border: 1px solid rgba(45, 156, 219, 0.12);

    min-height: 150px;

    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 6px 18px rgba(13, 48, 86, 0.06);
}

.summary-card:after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 4px;
    height: 3px;
    border-radius: 10px;
    transform: translateX(-50%);
    width: 88%;
    background: linear-gradient(90deg, transparent, rgba(49, 111, 212, 0.24), transparent);
}

.summary-card::before {
    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 78px;

    height: 7px;

    border-radius: 0 0 12px 0;

    background:
        linear-gradient(
            90deg,
            #2556d6,
            #2d9cdb
        );
}

.summary-card::after {
    content: "";

    position: absolute;

    top: -18px;

    right: -28px;

    width: 110px;

    height: 110px;

    background: rgba(45, 156, 219, 0.12);

    border-radius: 50%;
}

.summary-card-icon {
    width: 44px;

    height: 44px;

    margin: 0 auto 0.65rem;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: rgba(45, 156, 219, 0.12);

    color: var(--primary);

    font-size: 0.95rem;
}

.summary-card h4 {
    margin: 0;

    font-weight: 700;

    color: #223152;

    letter-spacing: 0.01em;

    font-size: 0.9rem;
}

.summary-card .value {
    font-size: 1.78rem;

    font-weight: 700;

    color: var(--primary);

    margin-top: 0.30rem;
}

.summary-card .text-muted {
    font-size: 0.75rem;

    color: #6d7b96;
}

.summary-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.summary-card:nth-child(1) .summary-card-icon {
    background: linear-gradient(135deg, #33b9fa, #275ee7);
}

.summary-card:nth-child(2) .summary-card-icon {
    background: linear-gradient(135deg, #30d6ba, #15a476);
}

.summary-card:nth-child(3) .summary-card-icon {
    background: linear-gradient(135deg, #ffce59, #ef9f00);
}

.summary-card:nth-child(4) .summary-card-icon {
    background: linear-gradient(135deg, #52d9c5, #21a3a3);
}

/* =========================================================
   FEATURE
   ========================================================= */

.feature-section {
    padding: 0.78rem 1.05rem 1rem;

    background: linear-gradient(180deg, #ffffff 0%, #effaff 100%);

    border: 1px solid rgba(45, 156, 219, 0.1);

    border-radius: 24px;

    box-shadow: 0 22px 45px rgba(15, 23, 44, 0.06);

    margin-top: 0;

    position: relative;

    z-index: 1;
}

.feature-section .section-subtitle {
    position: relative;
    padding-left: 10px;
}

.feature-section .section-subtitle:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    height: 18px;
    width: 3px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.feature-section .section-subtitle {
    font-size: 1rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    color: #1f2a3a;
}

.feature-section p {
    color: #6d7b96;
}

.feature-cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(210px, 1fr));

    gap: 0.75rem;
}

.feature-section .feature-cards a.feature-card:nth-child(odd) {
    background: linear-gradient(180deg, #fbfdff 0%, #effaff 100%);
}

.feature-section .feature-cards a.feature-card:nth-child(even) {
    background: linear-gradient(180deg, #ffffff 0%, #eef9fb 100%);
}

.feature-card {
    display: flex;

    align-items: center;

    gap: 0.84rem;

    padding: 0.75rem 0.78rem;

    background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);

    border: 1px solid rgba(45, 156, 219, 0.16);

    border-radius: 18px;

    text-decoration: none;

    box-shadow: 0 12px 24px rgba(15, 23, 44, 0.05);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;

    min-height: 94px;
}

.feature-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 20px 40px rgba(37, 86, 214, 0.14);

    background: #ffffff;
    border-color: rgba(37, 86, 214, 0.38);
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.10s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.20s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.30s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.40s; }

.feature-icon {
    width: 56px;

    height: 56px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    font-size: 1.25rem;

    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26), 0 8px 20px rgba(0,0,0,0.12);
}

.feature-card h6 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.34rem;
    color: #24364b;
}

.feature-card p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.46;
    color: #6d7b96;
}

.bg-gradient-primary {
    background: linear-gradient(150deg, #2556d6, #2d9cdb);
}

.bg-gradient-success {
    background: linear-gradient(150deg, #1cc88a, #17a673);
}

.bg-gradient-warning {
    background: linear-gradient(150deg, #f6c23e, #f5a703);
}

.bg-gradient-info {
    background: linear-gradient(150deg, #36b9cc, #2c9fad);
}

.bg-gradient-tertiary {
    background: linear-gradient(150deg, #7b61ff, #5b4bde);
}

.bg-gradient-danger {
    background: linear-gradient(150deg, #f67280, #eb4d6d);
}

.feature-card h6 {
    margin: 0;

    font-size: 1rem;

    font-weight: 700;

    color: #1f2a3a;
}

.feature-card p {
    margin: 0;

    color: #6d7b96;

    font-size: 0.93rem;
}

.feature-card .feature-icon i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.16));
}

.summary-cards {
    margin-top: 0.72rem;
}

.summary-card .card-body {
    position: relative;
    z-index: 1;
}

/* =========================================================
   TABLE
   ========================================================= */

.table {
    border-collapse: separate;

    border-spacing: 0 0.55rem;
}

.table thead th {
    border-bottom: 0;

    color: #5d6b88;

    font-weight: 700;

    padding: 1rem 1.35rem;

    background: rgba(45, 156, 219, 0.08);

    border-top-left-radius: 14px;

    border-top-right-radius: 14px;
}

.table tbody td {
    vertical-align: middle;

    border-top: 0;

    padding: 1rem 1.35rem;

    background: rgba(255, 255, 255, 0.98);

    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 44, 0.04);
}

.table.table-hover tbody tr:hover td {
    background: rgba(45, 156, 219, 0.08);
}

.table-responsive {
    border-radius: 20px;

    overflow: hidden;

    border: 1px solid rgba(45, 156, 219, 0.14);

    background: #ffffff;
}

/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    border-radius: 12px;

    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 0.95rem;

    font-size: 0.88rem;
}

.btn-primary {
    background: var(--primary);

    border-color: var(--primary);

    border-radius: 12px;

    padding: 0.92rem 1.4rem;

    box-shadow: 0 12px 26px rgba(37, 86, 214, 0.12);
}

.btn-primary:hover {
    background: #1249b4;

    border-color: #1249b4;
}

.btn-outline-secondary {
    color: #3f4d6b;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(63, 77, 107, 0.18);

    border-radius: 12px;

    padding: 0.88rem 1.3rem;

    min-width: 110px;
}

.btn-outline-danger {
    color: #d9534f;

    border-color: rgba(217, 83, 79, 0.22);

    background: rgba(217, 83, 79, 0.06);

    border-radius: 12px;

    padding: 0.88rem 1.3rem;

    min-width: 110px;
}

/* =========================================================
   FORM
   ========================================================= */

.form-control {
    border: 1px solid rgba(15, 23, 44, 0.12);

    box-shadow: none;

    border-radius: 12px;

    padding: 0.9rem 1rem;
}

.form-control:focus {
    border-color: rgba(37, 156, 219, 0.96);

    box-shadow:
        0 0 0 0.22rem rgba(45, 156, 219, 0.12);
}

input.form-control,
select.form-control,
textarea.form-control {
    border-radius: 8px;
}

/* =========================================================
   ALERT
   ========================================================= */

.alert {
    border-radius: 16px;

    box-shadow: 0 14px 26px rgba(15, 23, 44, 0.07);

    border: 1px solid rgba(15, 23, 44, 0.06);
}

/* =========================================================
   MODAL
   ========================================================= */

.modal-content {
    border-radius: 18px;

    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(15, 23, 44, 0.08);
}

.modal-title {
    font-weight: 700;
}

.modal-footer {
    background: rgba(248, 250, 255, 0.95);

    border-top: 1px solid rgba(15, 23, 44, 0.07);

    padding: 1rem 1.25rem;
}

/* =========================================================
   BADGES
   ========================================================= */

.badge-custom {
    padding: 0.4rem 0.6rem;

    border-radius: 999px;

    font-weight: 600;
}

.badge-success {
    background: #1cc88a;

    color: #ffffff;
}

.badge-warning {
    background: #f6c23e;

    color: #ffffff;
}

.badge-danger {
    background: #e74a3b;

    color: #ffffff;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination .page-link {
    border-radius: 8px;

    margin: 0 0.15rem;

    color: var(--primary);

    border: 1px solid rgba(45, 156, 219, 0.12);
}

.pagination .page-item.active .page-link {
    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--accent)
        );

    border-color: transparent;

    color: #ffffff;
}

/* =========================================================
   SEARCH
   ========================================================= */

.topbar .form-control {
    border-radius: 12px;

    padding: 10px 14px;

    border: 1px solid #e6eef8;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);

    box-shadow:
        0 20px 45px rgba(15, 27, 43, 0.09);

    border-radius: 18px;

    border: 1px solid rgba(45, 156, 219, 0.16);
}

.page-header .page-title {
    font-size: 1.55rem;

    font-weight: 700;

    color: #1f2a3a;

    margin: 0;
}

.page-header .breadcrumb {
    background: transparent;

    padding: 0;

    margin: 0;
}

.page-header .breadcrumb .breadcrumb-item a {
    color: #7a8baa;
}

.page-header .breadcrumb .breadcrumb-item.active {
    color: #23314a;
    font-weight: 700;
}

.main-header .navbar-header {
    background: linear-gradient(180deg, #eefaff 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(39, 95, 146, 0.14) !important;
}

.main-header .navbar-header .container-fluid {
    min-height: 70px;
}

.main-header .navbar-header .nav-search .input-group {
    min-width: 240px;
}

.main-header .navbar-header .nav-search .input-group .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
    background: #eef8fd;
    color: #536879;
}

.main-header .navbar-header .nav-search .btn-search {
    border-radius: 12px 0 0 12px;
    border: 1px solid rgba(63, 77, 107, 0.12);
    background: #eef8fd;
    color: #235f9a;
}

.main-header .topbar-nav .nav-item.topbar-icon > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #466176;
    border-radius: 999px;
    background: transparent;
}

.main-header .topbar-nav .nav-item.topbar-icon > a:hover {
    color: #2556d6;
    background: rgba(45, 156, 219, 0.10);
}

.main-header .topbar-nav .nav-item.topbar-icon .notification {
    position: absolute;
    top: -2px;
    right: -1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ee4d6b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.main-header .topbar-user .profile-pic {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #233854;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #eefaff);
    border: 1px solid rgba(36, 98, 158, 0.15);
}

.main-header .topbar-user .profile-pic .avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #d9effc;
}

.main-header .topbar-user .profile-pic .avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-header .topbar-user .profile-username .op-7 {
    color: #7f8ea5;
    font-size: 12px;
}

.main-header .topbar-user .profile-username .fw-bold {
    color: #1b4b79;
}

.main-header .topbar-user .dropdown-user {
    border-radius: 14px;
    border: 1px solid rgba(37, 86, 214, 0.26);
}

.main-header .topbar-user .user-box {
    padding: 1rem;
}

.app-page-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.app-page-actions__group {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-page-actions .auth-actions .btn:first-child {
    min-width: 96px;
}

.app-page-actions .auth-actions .btn:last-child {
    min-width: 96px;
    background: linear-gradient(135deg, #2d8cff, #1d66d2);
    border-color: #2d8cff;
}

.app-page-actions .role-actions .btn {
    min-width: 128px;
    background: linear-gradient(180deg, #ffffff, #f4fbff);
    border-color: rgba(49, 101, 224, 0.2);
    color: #526177;
}

.app-page-actions .role-actions .btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #2d9cdb, #2556d6);
}

/* =========================================================
   CHART
   ========================================================= */

.chart-container,
.chart-wrapper {
    background: var(--card);

    padding: 1rem;

    border-radius: 10px;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.dashboard-chart-area {
    background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);
    border: 1px solid #dbeaf4;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(39, 89, 147, 0.08);
}

.dashboard-chart-header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e4edf5;
}

.dashboard-chart-header h5 {
    color: #20354f;
    font-weight: 700;
}

.dashboard-chart-header .section-kicker {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2b7acb;
    text-transform: uppercase;
}

.dashboard-chart-wrap {
    position: relative;
    height: 280px;
    padding: 1rem 1.2rem 1.3rem;
}

.dashboard-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.badge-soft-success {
    background: #d8f5e7;
    color: #0a8a68;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
}

.badge-soft-info {
    background: #d8eefb;
    color: #1e6d9b;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ANIMATION
   ========================================================= */

.card,
.btn,
.table tbody tr {
    transition: all 0.18s ease;
}

/* =========================================================
   FOCUS
   ========================================================= */

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 6px 18px rgba(45, 156, 219, 0.12);

    border-color: var(--accent);

    outline: none;
}

/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .sidebar {
        width: 260px !important;

        min-width: 260px !important;

        max-width: 260px !important;
    }

    .main-panel {
        width: calc(100% - 260px) !important;

        margin-left: 260px !important;
    }
}

/* =========================================================
   RESPONSIVE MOBILE / TABLET
   ========================================================= */

@media (max-width: 991px) {

    .sidebar {
        left: -280px !important;

        width: 280px !important;

        min-width: 280px !important;

        max-width: 280px !important;

        transition: left 0.25s ease !important;
    }

    /* Ketika tombol sidebar ditekan */
    .sidebar.collapsed {
        left: 0 !important;

        width: 280px !important;

        min-width: 280px !important;

        max-width: 280px !important;
    }

    .main-panel {
        width: 100% !important;

        margin-left: 0 !important;
    }

    .main-panel.sidebar-collapsed {
        width: 100% !important;

        margin-left: 0 !important;
    }

    .content {
        padding: 1rem !important;
    }

    .page-inner {
        padding: 1rem !important;
    }

    /* Pada mobile judul tetap normal */
    .sidebar.collapsed .sidebar-logo {
        flex-basis: 125px !important;

        height: 125px !important;

        min-height: 125px !important;
    }

    .sidebar.collapsed .logo-header {
        height: 125px !important;

        min-height: 125px !important;
    }

    .sidebar.collapsed .logo-title {
        font-size: 19px !important;
    }

    .sidebar.collapsed .logo-title::before {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-link span,
    .sidebar.collapsed .nav-item > a p,
    .sidebar.collapsed .sidebar-title,
    .sidebar.collapsed .nav-section {
        display: block !important;
    }

    .sidebar.collapsed .sidebar-link,
    .sidebar.collapsed .nav-item > a {
        justify-content: flex-start !important;

        padding: 0.75rem 1rem !important;
    }

    .sidebar.collapsed .sidebar-link i,
    .sidebar.collapsed .nav-item > a i {
        margin-right: 8px !important;
    }

    .sidebar.collapsed .sidebar-wrapper {
        padding: 15px !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1024px) {
    .feature-cards {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .summary-cards {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .feature-section {
        margin-top: 0;
    }
}

@media (max-width: 768px) {

    .sidebar {
        width: 280px !important;

        min-width: 280px !important;

        max-width: 280px !important;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 1rem !important;
    }

    .page-inner {
        padding: 0.75rem !important;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .sidebar {
        width: 280px !important;

        min-width: 280px !important;

        max-width: 280px !important;
    }

    .sidebar .logo-title {
        font-size: 18px !important;
    }

    .content {
        padding: 0.75rem !important;
    }

    .page-inner {
        padding: 0.5rem !important;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.container {
    max-width: 420px;

    margin: 0 auto;
}

.login-box {
    background: #ffffff;

    padding: 28px;

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(18, 49, 80, 0.06);
}

.login-box .logo {
    width: 80px;

    margin: 0 auto 12px;
}

h3 {
    margin: 5px;
}

h4 {
    margin-bottom: 14px;

    font-size: 16px;
}

label {
    font-size: 13px;
}

input,
select {
    width: 100%;

    padding: 10px;

    margin-top: 6px;

    border: 1px solid #e6eef8;

    border-radius: 8px;
}

button {
    padding: 10px 14px;

    border-radius: 8px;
}
/* ==========================================================
   FIX FINAL SIDEBAR E-LEARNING
   JANGAN UBAH BAGIAN INI
   ========================================================== */

/* SIDEBAR */
body .wrapper .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;

    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;

    height: 100vh !important;

    overflow: hidden !important;

    display: block !important;

    z-index: 9999 !important;
}


/* ==========================================================
   AREA JUDUL
   ========================================================== */

body .wrapper .sidebar .logo-header {
    position: absolute !important;

    top: 0 !important;
    left: 0 !important;

    width: 280px !important;
    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;

    align-items: flex-start !important;
    justify-content: center !important;

    overflow: hidden !important;

    z-index: 10000 !important;
}


/* LINK JUDUL */
body .wrapper .sidebar .logo-header .logo {
    position: absolute !important;

    top: 12px !important;
    left: 0 !important;

    width: 280px !important;

    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    text-align: center !important;

    z-index: 10001 !important;
}

body .wrapper .sidebar .logo-header .logo .navbar-brand,
body .wrapper .sidebar .logo-header .logo .fw-semibold {
    display: block !important;
    margin: 0 auto !important;
}

body .wrapper .sidebar .logo-header .logo .fw-semibold {
    margin-top: 4px !important;
}


/* JUDUL */
body .wrapper .sidebar .logo-title {
    display: block !important;

    width: 280px !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;

    color: #ffffff !important;

    font-family: "Public Sans", Arial, sans-serif !important;

    font-size: 20px !important;

    font-weight: 700 !important;

    line-height: 1.6 !important;

    letter-spacing: 0 !important;

    white-space: normal !important;

    position: relative !important;

    z-index: 10002 !important;
}


/* ==========================================================
   AREA MENU
   ========================================================== */

body .wrapper .sidebar .sidebar-wrapper {
    position: absolute !important;

    top: 145px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 280px !important;
    height: auto !important;

    margin: 0 !important;

    padding: 12px 15px 30px 15px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    z-index: 9000 !important;
}


/* ISI MENU */
body .wrapper .sidebar .sidebar-content {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* NAV */
body .wrapper .sidebar .nav {
    position: relative !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ITEM MENU */
body .wrapper .sidebar .nav-item {
    position: relative !important;

    width: 100% !important;

    margin-top: 0 !important;
    margin-bottom: 5px !important;
}


/* DASHBOARD DAN MENU */
body .wrapper .sidebar .nav-item > a {
    position: relative !important;

    display: flex !important;

    align-items: center !important;

    width: 100% !important;

    min-height: 48px !important;

    margin: 0 !important;

    padding: 12px 15px !important;

    box-sizing: border-box !important;

    z-index: 9001 !important;
}


/* ==========================================================
   JUDUL DATA PENGGUNA
   ========================================================== */

body .wrapper .sidebar .nav-section,
body .wrapper .sidebar .sidebar-title {
    position: relative !important;

    display: block !important;

    width: 100% !important;

    margin-top: 18px !important;

    margin-bottom: 8px !important;

    padding: 0 5px !important;

    line-height: 1.5 !important;

    white-space: nowrap !important;

    z-index: 9002 !important;
}


/* ==========================================================
   MAIN PANEL
   ========================================================== */

body .wrapper .main-panel {
    position: relative !important;

    width: calc(100% - 280px) !important;

    min-height: 100vh !important;

    margin-left: 280px !important;
}


/* ==========================================================
   SIDEBAR COLLAPSED
   ========================================================== */

body .wrapper .sidebar.collapsed {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
}

body .wrapper .sidebar.collapsed .logo-header {
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
}

body .wrapper .sidebar.collapsed .logo-header .logo {
    width: 80px !important;
}

body .wrapper .sidebar.collapsed .logo-title {
    width: 80px !important;
    font-size: 0 !important;
}

body .wrapper .sidebar.collapsed .logo-title::before {
    content: "E";

    display: block;

    font-size: 25px;

    font-weight: 700;

    color: #ffffff;
}

body .wrapper .sidebar.collapsed .sidebar-wrapper {
    top: 80px !important;
    width: 80px !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 991px) {

    body .wrapper .sidebar {
        left: -280px !important;

        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    body .wrapper .sidebar.collapsed {
        left: 0 !important;

        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
    }

    body .wrapper .sidebar .logo-header {
        width: 280px !important;
    }

    body .wrapper .sidebar .logo-header .logo {
        width: 280px !important;
    }

    body .wrapper .sidebar .logo-title {
        width: 280px !important;
        font-size: 20px !important;
    }

    body .wrapper .sidebar .sidebar-wrapper {
        top: 145px !important;
        width: 280px !important;
    }

    body .wrapper .main-panel {
        width: 100% !important;
        margin-left: 0 !important;
    }
}
