:root {
    /* Primary Colors */
    --primary: #14532d;
    --primary-dark: #0d3620;
    --primary-light: #1d6f3e;

    /* Accent Colors */
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --accent-light: #22d3ee;

    /* Gold/Warning Colors */
    --gold: #fbbf24;
    --gold-dark: #f59e0b;
    --gold-darker: #d97706;

    /* Legacy Colors */
    --purple: #7c3aed;
    --success: #15803d;
    --hover-success: #077523;
    --danger: #dc2626;
    --hover-danger: #b11313;

    /* Text & Background */
    --text-dark: #1e293b;
    --text-light: #f9fafb;
    --text-muted: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;

    /* Neutral Colors */
    --gray: #d1d5db;
    --gray-light: #e2e8f0;
    --gray-lighter: #f1f5f9;
    --semi-gray: #6b7280;
    --hover-gray: #575757;
}

::selection {
    background: #14532d;
    color: #facc15;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

html,
body {
    height: 100%;
}

/* ================= Button ================= */
.btn-warning {
    background-color: var(--gold);
}

.btn-warning:hover {
    background-color: var(--gold-dark);
}

.btn-cta {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-cta:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ================= BUTTON SUBMIT ================= */
.submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--gold-dark);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.submit:hover {
    background: var(--gold-darker);
}

/* ================= FOOTER ================= */
.sikasmi-footer {
    background-color: var(--primary);
    font-size: 14px;
}

/* ================= NAVBAR ================= */
.main-navbar {
    background: var(--primary);
    transition: 0.3s ease;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    left: 50%;
    bottom: 0;
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--gold) !important;
}

/* ================= Nav Tabs ================= */
.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    border-bottom: 2px solid #eee;
}

/* Scrollbar Chrome */
.nav-tabs::-webkit-scrollbar {
    height: 7px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: var(--hover-gray);
    border-radius: 10px;
}

/* Item biar tidak turun ke bawah */
.nav-tabs .nav-item {
    flex: 0 0 auto;
}

.nav-tabs .nav-tab-link {
    border: none;
    color: var(--text-dark);
    background-color: var(--surface);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-tabs .nav-tab-link:hover {
    color: var(--gold);
}

.nav-tabs .nav-tab-link.active {
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
    background: transparent;
}

.menu-icon {
    font-size: 30px;
    color: white;
}

/* ================= SCROLL ANIMATION ================= */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}

section {
    padding: 80px 0;
}

.public-section {
    padding: 80px 0;
    background: var(--background);
}

/* ================= HERO SECTION ================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 100px 0 80px;
    position: relative;
    color: var(--text-light);
}

.public-hero-container {
    max-width: 1200px;
}

/* ================= HERO CONTENT ================= */
.hero-content {
    text-align: center;
}

.logo-wrapper img {
    width: 120px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-school {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 650px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.7;
}

/* ================= FEATURE CARD ================= */
.feature-card {
    background: var(--surface);
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ================= ABOUT PAGE ================= */
.about-hero-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.about-hero-subtitle {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.85;
}

.about-us-container {
    background-color: var(--surface);
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.about-section-title {
    font-weight: 600;
    margin-bottom: 20px;
}

.about-text {
    line-height: 1.8;
    color: var(--hover-gray);
}

.about-image {
    width: 100%;
    max-width: 400px;
}

.about-card {
    background: var(--surface);
    height: 100%;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card-icon {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 15px;
}

/* ================= STATS ================= */
.about-stats {
    background: var(--primary-light);
    padding: 60px 0;
    border-radius: 20px;
    color: var(--surface);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    opacity: 0.9;
}

/* ================= PANDUAN ================= */
.panduan-section {
    padding: 100px 0;
    background: var(--background);
}

.panduan-section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.panduan-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
}

.panduan-card:hover {
    transform: translateY(-6px);
}

.panduan-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.step-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.accordion-item {
    border: 1px solid var(--gray-light);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--background);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--surface);
}

/* ================= SIGNIN PAGE ================= */
.signin-page {
    position: relative;
    overflow: hidden;
    background: #0d3620;
}

/* container background */
.signin-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* svg image */
.bg-svg {
    position: absolute;
    width: 120%;
    height: auto;
    top: -10%;
    left: -10%;
    opacity: 0.7;
    animation: floatBlob 18s ease-in-out infinite;
}

/* floating animation */
@keyframes floatBlob {

    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-40px, 20px) scale(1.05);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }

    75% {
        transform: translate(-20px, 30px) scale(1.05);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.signin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.signin-container {
    width: 100%;
    max-width: 500px;
}

.signin-logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.signin-logo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.signin-logo {
    width: 75px;
}

.signin-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.signin-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 5px;
}

.signin-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Alert */
.signin-alert {
    background: #ffc8c8;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

/* Form */
.signin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Input wrapper */
.signin-form label:not(.signin-checkbox) {
    position: relative;
    display: block;
}

/* Input */
.signin-form input[type="text"],
.signin-form input[type="password"] {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-light);
    font-size: 14px;
    background: var(--background);
    transition: 0.3s ease;
    outline: none;
}

/* Focus effect */
.signin-form input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.1);
}

/* Floating label */
.signin-form label span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    transition: 0.25s ease;
    pointer-events: none;
    padding: 0 6px;
}

/* Floating active */
.signin-form input:focus+span,
.signin-form input:not(:placeholder-shown)+span {
    top: -9px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* Icon */
.signin-form .icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
}

/*  TOGGLE PASSWORD  */
.toggle-password {
    cursor: pointer;
}

/* Checkbox (tidak kena floating style) */
.signin-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -5px;
}

.signin-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Button */
.signin-button {
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--surface);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
}

.signin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Divider */
.signin-divider {
    text-align: center;
    margin: 20px 0;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Home Link */
.signin-link-home {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

.signin-link-home:hover {
    background: var(--gray-lighter);
}

/* Footer */
.signin-footer {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ================= SIDEBAR ================= */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: left 0.3s ease;
}

/* TOGGLE SIDEBAR */
.sidebar.active {
    left: -270px;
}

.sidebar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    margin-bottom: 15px;
}

.sidebar-brand img {
    height: 100px;
}

/* Side Nav */
.side-nav {
    overflow-y: auto;
    max-height: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

/* Scrolling Side Nav */
.side-nav::-webkit-scrollbar {
    width: 8px;
}

.side-nav::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Menu Side Nav */
.sidebar .item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: var(--surface);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: 0.3s;
}

.sidebar .item:hover {
    background: var(--primary-light);
}

.sidebar .item.active {
    background: var(--primary-light);
    color: var(--gold-dark);
    font-weight: 600;
    border-left: 7px solid var(--gold);
}

/* Profile */
.side-profile {
    margin-top: auto;
    padding: 10px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.profile-card img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card .name {
    color: var(--surface);
    font-weight: 600;
    font-size: 14px;
}

.profile-card small {
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: var(--gold);
    font-weight: 600;
    transition: 0.3s;
}

.logout-btn:hover {
    background: var(--gold-dark);
}

/* ================= TOPBAR ================= */
.topbar {
    background: var(--text-light);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.topbar i.bx-menu {
    cursor: pointer;
}

.top-search {
    position: relative;
    width: 300px;
}

.top-search input {
    width: 100%;
    padding: 8px 15px 8px 40px;
    border-radius: 30px;
    border: 1px solid var(--gray);
    outline: none;
    background: var(--background);
    transition: 0.3s ease;
    font-size: 14px;
}

.top-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.15);
}

.top-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--semi-gray);
}

.profile-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* ================= CONTENT ================= */
.content-private {
    margin-left: 270px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-private.active {
    margin-left: 0;
}

/* ================= DASHBOARD ================= */
.content-private-container,
.dashboard-wrapper {
    background: var(--background);
}

/* HEADER */
.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-date {
    background: var(--surface);
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}

/* PREMIUM STAT CARD */
.premium-stat-card {
    background: var(--surface);
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.premium-stat-card:hover {
    transform: translateY(-6px);
}

.premium-stat-card h3 {
    margin: 0;
    font-weight: 700;
}

.premium-stat-card p {
    margin: 0;
    color: var(--text-muted);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--surface);
}

/* COLOR VARIANTS */
.stat-green .stat-icon {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.stat-gold .stat-icon {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}

.stat-red .stat-icon {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
}

/* PREMIUM CARD */
.premium-card {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none;
    transition: 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
}

/* SUMMARY */
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 13px;
    font-size: 14px;
}

.summary-item.total {
    border-top: 2px solid var(--gray-light);
    padding-top: 10px;
    font-weight: 600;
}

.table-responsive {
    overflow: visible !important;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.table th,
.table td {
    border: 1px solid var(--gray-light);
}

.table-hover tbody tr:hover {
    background-color: var(--gray-lighter);
    transition: background-color 0.2s ease-in-out;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--text-light);
}

.table td.text-muted i {
    font-size: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.table td.text-muted {
    font-style: italic;
}

.table thead th {
    background-color: var(--gold);
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    padding: 12px 10px;
    font-size: 14px;
    border: none;
}

.table thead th:first-child {
    border-top-left-radius: 12px;
}

.table thead th:last-child {
    border-top-right-radius: 12px;
}

.table td {
    vertical-align: middle;
    padding: 12px 10px;
    font-size: 14px;
}

.btn-group {
    width: 40px;
    height: 35px;
    justify-content: center;
    align-items: center;
}

.btn-group .dropdown-menu {
    min-width: auto;
    width: 110px;
}

.btn-group .dropdown-item {
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.dropdown-item {
    font-size: 15px;
    font-weight: 500;
    padding: 8px;
}

.dropdown-item i {
    margin-right: 8px;
}

.dropdown-item:hover {
    background-color: var(--primary-light);
}

.dropdown-divider {
    margin: 0.25rem 0;
}

/* ================= MODALS ================= */
.modal-content {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-backdrop.show {
    opacity: 0.3 !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

.filter-box {
    position: relative;
    min-width: 220px;
}

.filter-header {
    background: var(--gray-light);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 99;
}

.scroll-limit {
    max-height: 220px;
    overflow-y: auto;
}

.scroll-limit::-webkit-scrollbar {
    width: 6px;
}

.scroll-limit::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.filter-content.active {
    display: block;
}

.filter-item {
    padding: 8px 15px;
    cursor: pointer;
}

.filter-item:hover {
    background: #f1f1f1;
}

.arrow.rotate {
    transform: rotate(180deg);
}

.nama-last-login {
    background-color: var(--gold);
}

/* Paksa semua text ApexCharts pakai Poppins */
.apexcharts-canvas,
.apexcharts-canvas text,
.apexcharts-xaxis text,
.apexcharts-yaxis text,
.apexcharts-legend text,
.apexcharts-title-text {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}

.content-laporan {
    min-height: auto;
}

/* CARD MENU LAPORAN */
.laporan-card {
    padding: 35px 25px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.laporan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.laporan-card h5 {
    font-weight: 600;
}

.laporan-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* tombol */
.laporan-btn {
    border-radius: 10px;
    padding: 10px 30px;
    font-weight: 500;
}

.alert-info {
    font-size: 14px;
    color: var(--text-dark);
}

.alert-heading {
    font-size: 15px;
    font-weight: 700;
}