:root {
    --green-light: #ffb347;
    --green-main: #ff8c00;
    --green-dark: #cc7000;
    --green-emerald: #ff9933;
    --gold-soft: #e8cfa3;
    --bg-premium: #fff8f2;
    --border-premium: rgba(255,140,0,0.12);
}

/* Global */
html, body {
    background: var(--bg-premium);
    font-family: "Poppins", sans-serif;
    color: #1d2d2d;
    scroll-behavior: smooth;
    font-size: 13px;
}

/* ───────────────────── NAVBAR PREMIUM SUPER MODERN ───────────────────── */
.navbar {
    background: linear-gradient(180deg, #ff8c00, #ff8c00);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.65rem 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: 0.3s ease;
}

/* BRAND */
.brand-title {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

/* NAVLINK STYLE */
.navbar .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    transition: 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

/* Hover glow */
.navbar .nav-link:hover {
    background: rgba(255,255,255,0.22);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,255,255,0.25);
}

/* Active */
.navbar .nav-link.active {
    background: #fff3e0;
    color: var(--green-main) !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Underline animation */
.navbar .nav-link::after {
    content: "";
    width: 0;
    height: 2.5px;
    background: #ffffffb7;
    border-radius: 10px;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transition: 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-link:hover::after { width: 70%; }
.navbar .nav-link.active::after {
    width: 80%;
    background: var(--green-main);
}

/* ───────────────────── DROPDOWN - ANIMASI PREMIUM ───────────────────── */

/* Dropdown base */
.navbar .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: 0.25s ease;
    border-radius: 14px;
    padding: 0.4rem;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Dropdown item */
.navbar .dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 1rem;
    transition: 0.25s ease;
    margin-bottom: 2px;
}

.navbar .dropdown-item:hover {
    background: rgba(255,140,0,0.18);
    color: var(--green-main);
}

.navbar .dropdown-item.active {
    background: rgba(255,140,0,0.18);
    color: var(--green-main);
}

/* ──────────────── SHOW DROPDOWN ON HOVER (DESKTOP ONLY) ─────────────── */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(6px);
    }
}

/* MOBILE FIX: dropdown tetap klik, bukan hover */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ───────────────────── BUTTON PREMIUM (User Dropdown) ───────────────────── */
.btn-premium {
    background: linear-gradient(180deg, #ff9933, #ff8c00);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.20);
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(255,140,0,0.25);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background: linear-gradient(180deg, #ffb347, #ff8c00);
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(255,140,0,0.35);
}


/* ───────────────────────────────────────────
   SIDEBAR + SUBMENU (OFFCANVAS) PREMIUM
─────────────────────────────────────────── */

/* Sidebar container */
.offcanvas {
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.2rem;
    border-radius: 0 16px 16px 0;
}

/* Logo */
.offcanvas-header .brand-mobile {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-main);
}

/* Menu list */
.offcanvas .nav {
    padding: 0 1rem;
}

/* Menu item */
.offcanvas .nav-link {
    font-weight: 600;
    border-radius: 14px;
    padding: 0.78rem 1rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    transition: 0.25s ease;
}

/* Left text + icon */
.offcanvas .nav-link .menu-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon style */
.offcanvas .nav-link i {
    font-size: 1.1rem;
    color: var(--green-main);
    opacity: 0.8;
    transition: 0.25s;
}

/* Hover */
.offcanvas .nav-link:hover {
    background: rgba(255,140,0,0.12);
    color: var(--green-main);
    transform: translateX(4px);
}

/* Active */
.offcanvas .nav-link.active {
    background: rgba(255,140,0,0.18);
    color: var(--green-main);
    font-weight: 700;
}

/* Dropdown arrow */
.menu-arrow {
    transition: 0.25s;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Rotate arrow when expanded */
.nav-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(90deg);
    opacity: 1;
}

/* SUBMENU container */
.submenu {
    padding-left: 1.7rem;
    margin-bottom: 6px;
}

/* Submenu link */
.submenu .sub-link {
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    display: block;
    color: #555;
    font-weight: 500;
    transition: 0.25s ease;
}

.submenu .sub-link:hover {
    background: rgba(255,140,0,0.12);
    color: var(--green-main);
}

/* Active submenu */
.submenu .sub-link.active {
    background: rgba(255,140,0,0.18);
    color: var(--green-main);
    font-weight: 600;
}

/* Divider */
.sidebar-divider {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: 1rem 0;
}

/* Logout button */
.btn-logout {
    margin-top: 10px;
    width: 100%;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(220,53,69,0.12);
    color: #dc3545;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-logout:hover {
    background: rgba(220,53,69,0.18);
    color: #c82333;
}



/* ───────────────────── SUMMARY CARDS ───────────────────── */
.summary-card {
    background: #ffffff;
    border: 1px solid var(--border-premium);
    border-radius: 16px;
    padding: 1.35rem;
    transition: 0.28s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
    border-color: var(--green-main);
}

.summary-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,140,0,0.10), rgba(255,140,0,0.05));
    font-size: 1.6rem;
    color: var(--green-main);
}

/* ───────────────────── CHART PLACEHOLDER ───────────────────── */
.chart-placeholder {
    height: 340px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fff8f2);
    border: 1px dashed rgba(255,140,0,0.18);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #889;
    font-size: 1.05rem;
}

/* ───────────────────────────────
    BASE WRAPPER (Responsive)
────────────────────────────────*/
.table-responsive-premium {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 8px;
}

.table-responsive-premium::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-premium::-webkit-scrollbar-thumb {
    background: #ffd8a8;
    border-radius: 10px;
}

/* ───────────────────────────────
    CARD WRAPPER
────────────────────────────────*/
.table-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.table-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* ───────────────────────────────
    MODERN TABLE
────────────────────────────────*/
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

/* HEADER */
.modern-table thead tr {
    background: linear-gradient(90deg, #ff8c00, #ffb347);
}

.modern-table thead th {
    color: #fff;
    padding: 14px;
    text-transform: uppercase;
    font-size: 0.78rem;
    border: none !important;
    letter-spacing: 0.5px;
}

/* BODY */
.modern-table tbody tr {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

.modern-table tbody tr td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.modern-table tbody tr td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.modern-table td {
    padding: 14px;
    vertical-align: middle;
    border: none;
    font-size: 0.95rem;
}

/* HOVER EFFECT */
.modern-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    background: #fff3e0;
}

/* ───────────────────────────────
    BUTTONS
────────────────────────────────*/
.btn-action {
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 500;
    transition: 0.25s;
    font-size: 0.85rem;
    margin: 2px;
}

.btn-edit {
    background: #ffcc85;
    color: #6a3c00;
}

.btn-edit:hover {
    background: #ffb963;
}

.btn-delete {
    background: #ff6b6b;
    color: #fff;
}

.btn-delete:hover {
    background: #ff3a3a;
}

.btn-add,
.btn-eximport {
    background: #ff8c00;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: 0.25s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    background: #ff9933;
}

.btn-eximport:hover {
    transform: translateY(-2px);
    background: #ff9933;
}

/* ───────────────────────────────
    RESPONSIVE TWEAK
────────────────────────────────*/
@media (max-width: 768px) {
    .modern-table thead {
        display: none;
    }

    .modern-table tbody tr {
        display: block;
        margin-bottom: 14px;
    }

    .modern-table td {
        display: flex;
        justify-content: space-between;
        padding: 12px;
        font-size: 0.9rem;
    }

    .modern-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #ff8c00;
    }
}

/* ======================================================
   CARD WRAPPER — Clean & Modern
====================================================== */
.modern-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    border: none;
}

/* ======================================================
   BUTTON TAMBAH — Minimalis
====================================================== */

.btn-add,
.btn-eximport {
    background-color: #ff8c00;
    color: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: 0.2s;
}
.btn-add:hover {
    background-color: #ff9933;
}
.btn-eximport:hover {
    background-color: #ff9933;
}

/* ======================================================
   TABLE HEADER — Modern & Elegan (Standar + Rounded)
====================================================== */
table.modern-table thead {
    background-color: #ff8c00;
}

table.modern-table thead tr {
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}

table.modern-table thead th {
    padding: 12px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    background-color: #ff8c00 !important;
    color: #ffffff !important;
}

/* Border radius untuk ujung kiri & kanan */
table.modern-table thead th:first-child {
    border-top-left-radius: 8px;
}

table.modern-table thead th:last-child {
    border-top-right-radius: 8px;
}

/* ======================================================
   TABLE BODY — Modern Clean
====================================================== */
table.modern-table tbody tr {
    background-color: #ffffff;
    border-radius: 8px;
    transition: 0.2s;
}
table.modern-table tbody tr:hover {
    background-color: #fff3e0;
}
table.modern-table tbody td {
    padding: 10px;
    border-top: 1px solid #efefef;
    vertical-align: middle;
}

/* Rounded corners for first & last td */
table.modern-table tbody tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
table.modern-table tbody tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ======================================================
   ACTION BUTTONS — Modern & Subtle
====================================================== */
.btn-action {
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.2s;
    margin: 2px;
}

.btn-edit {
    background-color: #fbcf82;
    color: #5a3600;
}
.btn-edit:hover {
    background-color: #f9b75b;
}

.btn-delete {
    background-color: #ff6b6b;
    color: #fff;
}
.btn-delete:hover {
    background-color: #e03e3e;
}

.btn-detail {
    background-color: #4dabf7;
    color: #fff;
}
.btn-detail:hover {
    background-color: #339af0;
}

/* ======================================================
   DATA TABLE TOP CONTROLS — Paksa Kiri/Kanan selalu
====================================================== */
.dataTables_wrapper .dataTables_top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px;
    margin-bottom: 12px;
    box-sizing: border-box;
    height: auto;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    margin: 0;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    font-size: 0; 
    margin: 0;
    padding: 0;
}

/* Styling select & input */
.dataTables_wrapper .dataTables_length select{
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.85rem;
    outline: none;
    transition: 0.2s;
    margin: 0;
    box-sizing: border-box;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.85rem;
    outline: none;
    transition: 0.2s;
    margin: -30px 0 0 0;
    box-sizing: border-box;
    min-width: 300px;
    /*placeholder: "Search";*/
}

/* Dorong search ke kanan */
.dataTables_wrapper .dataTables_filter {
    justify-content: flex-end !important;
}

/* Fokus styling */
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 5px rgba(255,140,0,0.3);
}

/* ======================================================
   Responsive HP — tetap kiri-kanan, tidak stack
====================================================== */
@media (max-width: 1020px) {
    .dataTables_wrapper .dataTables_top {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-bottom: 0 !important;
    }
}

/* ======================================================
   DATA TABLE FOOTER (INFO + PAGINATION) — Centered
====================================================== */
.dataTables_wrapper .dataTables_bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    gap: 6px;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: #6c757d;
    width: 100%;
    text-align: center;
    float: none !important;
    margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
    width: 100%;
    text-align: center;       
    float: none !important;   
    margin: 0 !important;
    display: flex !important; 
    justify-content: center !important; 
    gap: 4px;
}

/* Pagination buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #ced4da;
    color: #ff8c00;
    border-radius: 6px;
    padding: 3px 8px;
    margin: 2px;
    transition: 0.2s;
    cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #ff8c00;
    color: #fff !important;
    border: 1px solid #ff8c00;
}

/* Remove extra borders from table */
table.modern-table,
table.modern-table th,
table.modern-table td {
    border: none;
}

/* Responsive fix tambahan untuk HP */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_bottom {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        text-align: center;
        float: none !important;
        margin: 0 !important;
    }
    .dataTables_wrapper .dataTables_paginate {
        justify-content: center !important;
        display: flex !important;
    }
}

/* ======================================================
   RESPONSIVE MOBILE FIX
====================================================== */
@media (max-width: 768px) {
    table.modern-table thead { display: none; }

    table.modern-table tbody tr {
        display: block;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border-radius: 8px;
        padding: 10px;
    }

    table.modern-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        font-size: 0.875rem;
        border-bottom: 1px solid #efefef;
    }

    table.modern-table tbody td:last-child { border-bottom: none; }

    table.modern-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #ff8c00;
        margin-right: 8px;
        flex: 1;
    }

    table.modern-table tbody td span {
        flex: 2;
        text-align: right;
    }

    .dataTables_wrapper .dataTables_top,
    .dataTables_wrapper .dataTables_bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        margin-bottom: 6px;
    }
}


/* ============================================================
   ★★★ GLOBAL CARD STYLE (POTRET & LANDSCAPE) ★★★
============================================================ */
.id-card-potret, 
.id-card-lemscape {
    background: var(--bg) center/cover no-repeat;
    border-radius: 18px;
    overflow: hidden;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.25);
}

/* Ukuran */
.id-card-potret {
    width: 300px;
    height: 480px;
}
.id-card-lemscape {
    width: 480px;
    height: 300px;
}

/* Inner */
.card-inner {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================================
   POTRET
============================================================ */
.id-card-potret .card-inner {
    justify-content: flex-start;
}

/* Logo */
.card-logo {
    width: 230px;
    margin-bottom: 8px;
}
.card-logo img {
    width: 100%;
    object-fit: contain;
}

/* Title */
.card-title {
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    margin-bottom: 12px;
    text-align: center;
}

/* Foto */
.id-card-potret .photo-wrapper {
    width: 90px;
    height: 170px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    background: #fff;
}
.id-card-potret .photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.id-card-potret .card-info {
    text-align: center;
    margin-bottom: 14px;
}
.card-info .nama {
    font-size: 15px;
    font-weight: 700;
}
.card-info .nis,
.card-info .kelas,
.card-info .alamat {
    font-size: 12px;
    margin-top: 2px;
}

/* QR */
.id-card-potret .qr-wrapper {
    width: 140px;
    height: 140px;
}
.qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================================
   LANDSCAPE
============================================================ */
.id-card-lemscape .card-inner {
    align-items: center;
}

/* Logo */
.id-card-lemscape .card-logo {
    width: 230px;
    margin-bottom: 6px;
}

/* Title */
.id-card-lemscape .card-title {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

/* Content */
.landscape-content {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 12px;
}

/* Foto kiri */
.id-card-lemscape .photo-wrapper {
    width: 80px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    margin-right: 10px;
    background: #fff;
}
.id-card-lemscape .photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.id-card-lemscape .card-info {
    margin: 0 10px;
    font-size: 12px;
}

/* QR kanan */
.id-card-lemscape .qr-wrapper {
    width: 140px;
    height: 140px;
    margin-left: auto;
}

/* Center helper */
.items-card-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ============================================================
   FOTO SANTRI
============================================================ */
.card-foto-santri {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.foto-santri {
    width: 160px;
    height: 160px;
    background: #f3f5f9;
    border-radius: 50%;
    border: 2px solid #ced4da;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.08), -4px -4px 12px rgba(255,255,255,0.9);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
}

.foto-santri:hover {
    transform: scale(1.05);
}

/* icon kamera */
.foto-santri::after {
    content: '📷';
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 22px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    padding: 4px;
}

/* input */
.card-foto-santri input[type="file"] {
    width: 100%;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #ced4da;
}

/* list kecil */
.foto-santri-list {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #ced4da;
}

/* ============================================================
   SCAN MENU
============================================================ */
.scan-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.scan-card {
    background: linear-gradient(180deg, #db9a00, #c48700);
    border-radius: 18px;
    padding: 22px 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: 0.25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.scan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* efek glow */
.scan-card::before {
    content: "";
    position: absolute;
    top: -70px;
    left: -70px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transition: 0.4s;
}
.scan-card:hover::before {
    top: -20px;
    left: -20px;
}

.scan-card img {
    width: 80px;
    margin-bottom: 10px;
}

.scan-card h6 {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================================
   BADGE TABLE
============================================================ */
table.dataTable tbody tr td span.badge {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 6px;
}

/* ============================================================
   DATERANGEPICKER
============================================================ */
.daterangepicker .applyBtn {
    background: var(--green-main);
}
.daterangepicker td.active {
    background: var(--green-main);
}

/* single calendar */
.daterangepicker .drp-calendar.right {
    display: none !important;
}
.daterangepicker .cancelBtn {
    display: none !important;
}

.bg-warning {
    background: var(--green-main) !important;
}

.btn-warning {
    background: var(--green-main) !important;
    color: #ffffff !important;
}