/**
 * Custom CSS for INDUKMADAM
 * Sistem Buku Induk MA
 * Spotify-inspired Dark Theme
 */

:root {
    --sidebar-width: 240px;

    /* Hijau NU (Primary) & Hijau Daun Muda (Secondary) Theme */
    --primary-color: #007749;
    /* NU Green - Strong & Professional */
    --primary-hover: #006341;

    --secondary-color: #84CC16;
    /* Young Leaf Green (Lime) - Fresh Accent */
    --tertiary-color: #dcfce7;
    --quaternary-color: #f0fdf4;

    --accent-purple: #8B5CF6;
    --accent-blue: #0284c7;
    --accent-teal: #14b8a6;
    --accent-pink: #EC4899;
    --accent-orange: #F97316;

    --bg-dark: #111827;
    --bg-light: #f0fdf4;
    /* Very Light Green Tint for Main Background */
    --bg-lighter: #ffffff;

    --text-primary: #000000 !important;
    --text-secondary: #000000 !important;
    --text-muted: #666666;

    --topbar-height: 72px;
    --border-color: #e5e7eb;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 119, 73, 0.1);
    /* Subtle Green Border */

    --shadow-sm: 0 1px 2px 0 rgba(0, 119, 73, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 119, 73, 0.1), 0 2px 4px -1px rgba(0, 119, 73, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 119, 73, 0.1), 0 4px 6px -2px rgba(0, 119, 73, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    /* Background now matches sidebar for "Floating Card" effect */
    background: linear-gradient(170deg, #007749 0%, #00995e 55%, #65a30d 100%);
    background-attachment: fixed;
    /* Fix gradient */
    color: #000000 !important;
    font-size: 0.925rem;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(59, 130, 246, 0.03), transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(59, 130, 246, 0.02), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.02) 100px,
            rgba(255, 255, 255, 0.02) 200px);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatingBubbles {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    25% {
        transform: translate(20px, -30px) scale(1.1);
        opacity: 0.9;
    }

    50% {
        transform: translate(-20px, -60px) scale(0.9);
        opacity: 0.8;
    }

    75% {
        transform: translate(10px, -30px) scale(1.05);
        opacity: 0.9;
    }
}

body.sidebar-open {
    overflow: hidden;
}

/* Touch-friendly tap targets */
a,
button,
.btn,
input[type="checkbox"],
input[type="radio"] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Improve touch scrolling */
.sidebar,
.table-responsive,
.modal-body {
    -webkit-overflow-scrolling: touch;
}

/* Typography - Inter Font for Modern SaaS */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    /* semibold */
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p,
span,
div {
    font-weight: 500;
    /* medium */
}

.fw-bold,
.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

/* Sidebar Styles - NU & SCTV Theme */
/* Sidebar Styles - NU & SCTV Theme */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    /* Gradient Combination: Hijau NU (Top) to Hijau Daun Muda (Bottom) */
    background: linear-gradient(170deg, #007749 0%, #00995e 55%, #65a30d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 119, 73, 0.15);
    border-radius: 0 30px 30px 0;
    /* Rounded visual tweak */
}

/* Sidebar Pseudo-element removed for cleaner look */




@keyframes glowRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes nuGreenShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
    background-clip: padding-box;
}

.sidebar .brand {
    color: #ffffff !important;
    text-align: center;
    padding: 2rem 1rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: none;
}

.sidebar .brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA000 100%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

@keyframes brandGlowNu {

    0%,
    100% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(0.8);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

.sidebar .brand h4 {
    margin: 10px 0 5px 0;
    font-size: 20px;
    font-weight: 600;
    font-family: 'Poppins', 'Inter', sans-serif;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sidebar .brand p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sidebar .nav-link {
    /* font-family inherited from body (Inter) */
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 20px;
    margin: 4px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    border: none;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    transform: translateX(4px);
    border: none !important;
}

.sidebar .nav-link.active {
    background: #ffffff !important;
    /* White Active Background */
    color: #007749 !important;
    /* Hijau NU Text */
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none !important;
    padding-left: 20px;
    position: relative;
    border-radius: 8px;
    margin: 5px 12px;
}

/* Active indicator bar - The "Tanda" requested by user */
.sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: #ffffff;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 8px rgba(255, 255, 255, 0.5);
}

.sidebar .nav-link.active i {
    color: #007749 !important;
    /* Hijau NU Icon */
}

.sidebar .nav-link.active::after {
    display: none;
}

.sidebar .px-3 small {
    color: rgba(255, 255, 255, 0.6);
    /* Light gray */
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1.5px;
    display: block;
    padding: 16px 0 8px;
    text-transform: uppercase;
}

/* Sidebar Dropdowns */
.sidebar .nav-dropdown-toggle {
    justify-content: space-between;
    cursor: pointer;
    font-size: 1rem !important;
}

.sidebar .nav-dropdown-toggle span,
.sidebar .nav-dropdown-toggle i {
    font-size: 1rem !important;
}

.sidebar .nav-dropdown-toggle::after {
    display: none;
    /* Hide default bootstrap arrow if any */
}

.sidebar .nav-dropdown {
    background: rgba(0, 0, 0, 0.2);
    /* Slightly darker background for dropdown items */
    margin: 0 16px;
    border-radius: 8px;
}

.sidebar .nav-link.sub-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 16px 8px 48px;
    margin: 2px 0;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 6px;
    background: transparent !important;
}


.sidebar .nav-link.sub-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

.sidebar .nav-link.sub-link.active {
    color: #ffffff !important;
    /* Brighter text for active sub */
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15) !important;
    /* Subtle background for active sub */
    box-shadow: inset 0 0 10px rgba(132, 204, 22, 0.1) !important;
    padding-left: 48px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.sidebar .nav-link.sub-link::before {
    left: 24px;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.sidebar .nav-link.sub-link.active::before {
    background-color: #84CC16;
    /* Hijau Daun Muda point */
    box-shadow: 0 0 8px #84CC16;
    opacity: 1;
}

@keyframes sectionLabelShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.sidebar .mt-3 {
    margin-top: 1.5rem !important;
}

.sidebar .mb-2 {
    margin-bottom: 0.5rem !important;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
}

/* Top Bar */
/* Top Bar */
.topbar {
    background: linear-gradient(90deg, #007749 0%, #00995e 100%);
    box-shadow: var(--shadow-sm);
    padding: 16px 32px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    margin: 0;
    width: 100%;
}

.topbar .btn-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.topbar .btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.topbar .dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: none;
}

.topbar .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.topbar,
.topbar span,
.topbar i,
.topbar .text-muted {
    color: #ffffff !important;
}

/* Dropdown menu in topbar */
.topbar .dropdown-menu {
    z-index: 9999 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    min-width: 180px;
}

.topbar .dropdown-menu .dropdown-item {
    /* font-family inherited */
    padding: 10px 16px;
    font-weight: 500;
    color: #334155 !important;
    transition: all 0.2s ease;
}

.topbar .dropdown-menu .dropdown-item i {
    color: #334155 !important;
}

.topbar .dropdown-menu .dropdown-item:hover {
    background: #f1f5f9;
    color: #3b82f6 !important;
}

.topbar .dropdown-menu .dropdown-item:hover i {
    color: #3b82f6 !important;
}

.topbar .dropdown-menu .dropdown-item.text-danger {
    color: #ef4444 !important;
}

.topbar .dropdown-menu .dropdown-item.text-danger i {
    color: #ef4444 !important;
}

.topbar .dropdown-menu .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626 !important;
}

.topbar .dropdown-menu .dropdown-item.text-danger:hover i {
    color: #dc2626 !important;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 20px;
    background: transparent;
}

/* Main Content Section defined above */


.card-datatable {
    border-radius: 15px;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto !important;
    width: 100% !important;
}

/* Footer */
.footer {
    /* Background matches sidebar */
    background: linear-gradient(170deg, #007749 0%, #00995e 55%, #65a30d 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 20px 0;
    margin: 32px 20px 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 119, 73, 0.3);
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Page Header Greeting Text */
.page-header p.text-muted {
    font-size: 1.15rem !important;
    /* Larger size */
    color: #374151 !important;
    /* Darker grey for clarity */
    font-weight: 500 !important;
    opacity: 1 !important;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-primary);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 20px;
}

.card-header {
    background: #3b82f6 !important;
    border-bottom: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0 !important;
    color: white !important;
}

.card-header.bg-primary {
    background: #3b82f6 !important;
}

.card-header.bg-success {
    background: #10b981 !important;
}

.card-header.bg-info {
    background: #06b6d4 !important;
}

.card-header.bg-warning {
    background: #f59e0b !important;
}

.card-header.bg-danger {
    background: #ef4444 !important;
}

.card-header.bg-secondary {
    background: #64748b !important;
}

.card-header i,
.card-header span {
    color: white !important;
}

.card-body {
    padding: 24px;
    background: transparent;
    color: var(--text-primary);
}

.table {
    margin-bottom: 0;
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff;
    border: none !important;
    /* Removed outer border */
}

.table thead th {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none !important;
    /* Removed vertical separators */
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 12px 10px !important;
    vertical-align: middle;
}

/* Center numeric, checkbox, and action columns */
.table thead th:nth-child(1),
.table thead th:nth-child(2),
.table thead th:last-child,
.table tbody td:nth-child(1),
.table tbody td:nth-child(2),
.table tbody td:last-child {
    text-align: center !important;
}

/* Fix checkbox alignment in header */
.table thead th input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
}

/* Specific column widths and alignment for common tables */
.table th[width="40"],
.table th[width="30"],
.table th[width="50"] {
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* Hide DataTables Sorting Icons (Up/Down arrows) */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    display: none !important;
}

/* Hide Number Input Up/Down Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Clean borderless cells */
.table tbody td {
    padding: 10px 10px !important;
    vertical-align: middle;
    border: none !important;
    color: #444;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Compact - Extra compact mode for tables with many columns */
.table-compact thead th {
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.table-compact tbody td {
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
}

.table-compact .btn-group-sm .btn {
    padding: 4px 7px;
    font-size: 11px;
}

.table-compact .btn-group-sm .btn i {
    font-size: 12px;
    margin-right: 0;
}

/* Table Nilai - For input nilai siswa */
.table-nilai thead th {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    text-align: center;
}

.table-nilai tbody td {
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
    vertical-align: middle;
}

.table-nilai .nilai-input {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-weight: 500;
}

.table-nilai .nilai-input:focus {
    font-size: 1rem;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.table-nilai .nilai-akhir,
.table-nilai .predikat {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: none;
}

/* Buttons - Added fallback for btn-success */
.btn-success {
    background: #10b981 !important;
    /* Solid fallback */
    color: #ffffff !important;
}

/* Small buttons used in tables - Enlarged per user request */
.btn-sm,
.btn-action {
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    min-width: unset !important;
    min-height: unset !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Remove overlay for small buttons and action buttons to prevent visibility issues in tables */
.btn-sm::before,
.btn-action::before,
.stat-card .btn::before {
    display: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 50%, var(--secondary-color) 100%);
    border: none;
    color: #ffffff;
    box-shadow:
        0 8px 24px -4px rgba(102, 126, 234, 0.5),
        0 0 30px rgba(102, 126, 234, 0.3);
    font-weight: 700;
    position: relative;
    background-size: 200% 100%;
    animation: buttonGradient 3s ease infinite;
}

@keyframes buttonGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover), var(--secondary-color));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(12px);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-teal) 0%, #10b981 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(20, 184, 166, 0.4);
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(20, 184, 166, 0.5);
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(100, 116, 139, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, var(--secondary-color) 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #db2777 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #fb923c 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(249, 115, 22, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(249, 115, 22, 0.5);
}

.btn-info {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #60a5fa 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.4);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.5);
}

.btn-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-primary);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.2);
}

.btn-action {
    padding: 4px 10px;
    /* Reduced from 6px 12px */
    margin: 0 1px;
    /* Reduced from 0 2px */
    border-radius: 500px;
    font-size: 11px;
    /* Added smaller font */
}

.btn i {
    margin-right: 3px;
    /* Reduced from 5px */
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 500px;
    font-size: 11px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-success {
    background: linear-gradient(135deg, #10B981, #34D399) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.9), rgba(148, 163, 184, 0.9)) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #f87171) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-info {
    background: linear-gradient(135deg, #14b8a6, #22d3ee) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

/* Mobile badge adjustments */
@media (max-width: 576px) {
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .badge-lg {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select option {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 12px;
}

/* Modal */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    border-radius: 24px;
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--accent-purple) 50%,
            var(--secondary-color) 100%);
}

.modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 24px;
    background: transparent;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(159, 122, 234, 0.1));
    border-radius: 20px 20px 0 0;
}

.modal-title {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    background: var(--bg-lighter);
}

.btn-close {
    filter: invert(1);
}

/* Dropdown improvements for mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        font-size: 13px;
        background: var(--bg-lighter);
        border: 1px solid var(--border-color);
    }

    .dropdown-item {
        padding: 10px 15px;
        color: var(--text-primary);
    }

    .dropdown-item:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    .dropdown-item i {
        margin-right: 8px;
    }
}

.dropdown-menu {
    background: linear-gradient(135deg, rgba(20, 27, 61, 0.98), rgba(26, 35, 66, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 185, 84, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

.dropdown-item {
    color: #ffffff !important;
    transition: all 0.3s ease;
    padding: 10px 16px;
}

.dropdown-item i {
    color: #ffffff !important;
    margin-right: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.3), rgba(159, 122, 234, 0.2));
    color: #00FF9D !important;
    transform: translateX(5px);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #00FF9D !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    background: var(--bg-lighter);
    color: var(--text-primary);
}

.alert-success {
    background: rgba(29, 185, 84, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.alert-danger {
    background: rgba(231, 74, 59, 0.2);
    border-color: #e74a3b;
    color: #ff6b6b;
}

.alert-warning {
    background: rgba(246, 194, 62, 0.2);
    border-color: #f6c23e;
    color: #ffd43b;
}

.alert-info {
    background: rgba(54, 185, 204, 0.2);
    border-color: #36b9cc;
    color: #4dd4e8;
}

.alert-dismissible .btn-close {
    padding: 15px 20px;
    filter: invert(1);
}

/* Statistics Cards */
.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-info {
    border-left: 4px solid #36b9cc !important;
}

.border-left-warning {
    border-left: 4px solid #f6c23e !important;
}

/* Mobile Toggle Button - Hamburger Menu */
#sidebarToggle {
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-size: 20px;
    transition: all 0.2s ease;
}

#sidebarToggle:hover,
#sidebarToggle:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05);
}

#sidebarToggle:active {
    transform: scale(0.95);
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ================================
   RESPONSIVE - MOBILE FIRST
   ================================ */

/* Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .topbar .d-flex.align-items-center>span {
        display: none !important;
    }

    .topbar .dropdown-toggle span.badge {
        display: none !important;
    }

    .card-header {
        padding: 10px 15px;
        font-size: 14px;
    }

    h1.h3 {
        font-size: 1.1rem !important;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) {

    /* Sidebar - Hidden by default on mobile */
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        width: var(--sidebar-width);
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0 !important;
    }

    .sidebar.show {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    /* Main Content - Full width on mobile */
    .main-content {
        margin: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        min-height: 100vh;
    }

    /* Topbar - Mobile optimized */
    .topbar {
        padding: 10px 12px !important;
        height: auto !important;
        min-height: 60px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    /* Show hamburger menu on mobile */
    #sidebarToggle {
        display: flex !important;
    }

    /* Hide date/time on mobile to save space */
    .topbar>div:first-child>.d-flex.align-items-center.text-white>span {
        display: none !important;
    }

    /* User dropdown - compact on mobile */
    .topbar .dropdown-toggle {
        font-size: 12px !important;
        padding: 8px 12px !important;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar .dropdown-toggle .badge {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }

    /* Content Wrapper */
    .content-wrapper {
        padding: 12px !important;
    }

    /* Cards - Full width on mobile */
    .card {
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .card-body {
        padding: 12px;
    }

    /* Tables - Horizontal scroll */
    .table-responsive {
        font-size: 11px;
        border: 0;
        margin: 0 -12px;
        padding: 0 12px;
        width: calc(100% + 24px);
    }

    .table-responsive table {
        min-width: 600px;
    }

    .table thead th {
        font-size: 10px;
        padding: 8px 5px !important;
        white-space: nowrap;
    }

    .table tbody td {
        padding: 8px 5px !important;
        font-size: 11px;
    }

    /* Buttons - Compact on mobile */
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }

    .btn i {
        margin-right: 0 !important;
        font-size: 14px !important;
    }

    /* Hide button text on very small screens */
    .btn-action .btn-text {
        display: none !important;
    }

    /* Forms - Better touch targets */
    .form-control,
    .form-select {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 10px 12px;
        min-height: 44px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Filter Form - Stack on mobile */
    .bg-light.p-3.rounded.border.mb-3 .row {
        gap: 8px;
    }

    .bg-light.p-3.rounded.border.mb-3 .col-md-2,
    .bg-light.p-3.rounded.border.mb-3 .col-md-3,
    .bg-light.p-3.rounded.border.mb-3 .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0 !important;
    }

    /* Modal - Full width on mobile */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-body {
        padding: 15px;
    }

    /* Footer */
    .footer {
        margin: 15px 10px;
        padding: 15px;
        border-radius: 12px;
    }

    .footer small {
        font-size: 11px;
    }

    /* Page Headers */
    .clearfix h1.h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .clearfix .float-right,
    .clearfix .float-end {
        float: none !important;
        display: block;
        margin-top: 10px;
    }

    /* DataTables controls */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left !important;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input {
        min-height: 38px;
    }

    .dataTables_wrapper .dataTables_paginate {
        margin-top: 10px;
        text-align: center !important;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 12px !important;
    }

    /* Alerts - Full width */
    .alert {
        margin-bottom: 12px;
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Bulk Actions - Stack buttons */
    .mb-3.p-3.bg-light.border.rounded .row {
        flex-direction: column;
    }

    .mb-3.p-3.bg-light.border.rounded .btn-group {
        flex-wrap: wrap;
        gap: 5px;
    }

    .mb-3.p-3.bg-light.border.rounded .btn-group .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {

    /* Hide hamburger on desktop */
    #sidebarToggle {
        display: none !important;
    }
}

/* Forms */
.form-control,
.form-select {
    font-size: 14px;
    padding: 8px 12px;
}

.form-label {
    font-size: 13px;
    margin-bottom: 5px;
}

/* Dashboard Cards */
.card-dashboard {
    margin-bottom: 15px;
}

.card-dashboard .card-body {
    padding: 1.25rem;
}

.stat-label {
    font-size: 0.7rem;
}

.stat-value {
    font-size: 1.75rem;
}

.card-dashboard .icon-bg {
    font-size: 3.5rem;
    right: -5px;
    bottom: -5px;
}

/* Dashboard Header */
.dashboard-header {
    flex-direction: column;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.welcome-text h2 {
    font-size: 1.5rem;
}

.welcome-text p {
    font-size: 0.85rem;
}

/* Modal */
.modal-dialog {
    margin: 0.5rem;
}

/* Headings */
.h1,
h1 {
    font-size: 1.75rem;
}

.h2,
h2 {
    font-size: 1.5rem;
}

.h3,
h3 {
    font-size: 1.25rem;
}

.h4,
h4 {
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    font-size: 13px;
}

/* Action buttons container - scoped to avoid breaking header */
.btn-action-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
    align-items: stretch !important;
}

.btn-action-container>div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: stretch;
}

.btn-action-container>div .btn {
    flex: 1 1 auto;
}

/* Wali Item */
.wali-item {
    padding: 8px;
    font-size: 13px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
}

/* Filter form responsive */
.row>.col-md-2,
.row>.col-md-3,
.row>.col-md-4,
.row>.col-md-6 {
    margin-bottom: 10px;
}

/* Small mobile screens */
@media (max-width: 576px) {
    .sidebar {
        width: 80vw;
        max-width: 250px;
        left: -80vw;
    }

    .topbar {
        padding: 8px 10px;
    }

    .content-wrapper {
        padding: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .card-dashboard .icon-bg {
        font-size: 3rem;
    }

    .welcome-text h2 {
        font-size: 1.25rem;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Stack action buttons vertically */
    .d-flex.justify-content-between {
        align-items: stretch !important;
    }

    .d-flex.justify-content-between>div {
        flex-direction: column;
        width: 100%;
    }

    .d-flex.justify-content-between>div .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    /* DataTables pagination */
    .dataTables_wrapper .dataTables_paginate {
        font-size: 12px;
    }

    .dataTables_wrapper .dataTables_length select,
    .dataTables_wrapper .dataTables_filter input {
        font-size: 13px;
    }

    /* Page title responsive */
    .container-fluid.py-4>.d-flex.justify-content-between h1 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    /* Hide icon in small screens for heading */
    .container-fluid.py-4>.d-flex.justify-content-between h1 i {
        font-size: 1rem;
    }

    /* Dropdown user info */
    .topbar .dropdown-toggle {
        font-size: 12px;
        padding: 5px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    /* Card header */
    .card-header {
        font-size: 13px;
        padding: 12px 15px;
    }

    /* Badge smaller */
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Bulk action buttons */
    .gap-2 {
        gap: 5px !important;
        flex-wrap: wrap;
    }

    .gap-2 .btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media print {

    .sidebar,
    .topbar,
    .footer,
    .btn,
    .no-print,
    .sidebar-overlay,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .dataTables_info {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    .container-fluid {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
        background: white !important;
    }

    body,
    html {
        background: white !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    .card-body {
        background: white !important;
        padding: 0 !important;
    }

    .table-responsive {
        overflow: visible !important;
        display: block !important;
        width: 100% !important;
    }

    .table {
        font-size: 10pt;
        color: #000 !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .table thead th {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .table tbody td {
        color: #000 !important;
        border: 1px solid #000 !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000 !important;
    }

    .text-muted,
    .text-secondary {
        color: #666 !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 27, 61, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-purple));
    border-radius: 10px;
    border: 2px solid rgba(20, 27, 61, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--accent-pink));
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* DataTables Custom */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    color: var(--text-primary);
}

.dataTables_wrapper .dataTables_length select {
    color: #1e293b !important;
    background: #ffffff;
    border: 2px solid #3b82f6 !important;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px -2px rgba(59, 130, 246, 0.25);
}

.dataTables_wrapper .dataTables_filter input {
    color: #1e293b !important;
    background: #ffffff;
    border: 2px solid #3b82f6 !important;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px -2px rgba(59, 130, 246, 0.25);
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: #ffffff;
}

.dataTables_wrapper .dataTables_filter input:hover,
.dataTables_wrapper .dataTables_length select:hover {
    border-color: #2563eb !important;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.35);
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
    background: rgba(26, 35, 66, 0.8) !important;
    border: 1px solid rgba(29, 185, 84, 0.3) !important;
    border-radius: 4px;
    margin: 0 2px;
    backdrop-filter: blur(10px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: var(--text-primary) !important;
    background: rgba(29, 185, 84, 0.3) !important;
    border-color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    border-color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--text-secondary);
}

/* DataTables Responsive */
@media (max-width: 768px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        display: block;
        margin-bottom: 5px;
    }

    .dataTables_wrapper .dataTables_length select {
        width: 100%;
        max-width: 150px;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 100%;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center;
        margin-top: 10px;
    }
}

/* Nilai Input */
.nilai-pengetahuan:focus,
.nilai-keterampilan:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.nilai-akhir {
    background-color: #f8f9fa;
    font-weight: bold;
}

.predikat {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

/* File Upload */
input[type="file"] {
    padding: 8px;
}

/* Utilities */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-weight-bold {
    font-weight: 700;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.h-100 {
    height: 100% !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--text-primary);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover);
}

hr {
    border-color: var(--border-color);
    opacity: 1;
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-muted);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .d-md-none {
        display: block !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .mobile-sm-hide {
        display: none !important;
    }
}

/* Pagination */
.pagination {
    margin-top: 1rem;
}

.page-link {
    background: rgba(26, 35, 66, 0.8);
    border: 1px solid rgba(29, 185, 84, 0.3);
    color: var(--text-primary);
    border-radius: 4px;
    margin: 0 2px;
    backdrop-filter: blur(10px);
}

.page-link:hover {
    background: rgba(29, 185, 84, 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: #ffffff;
}

.page-item.disabled .page-link {
    background: rgba(20, 27, 61, 0.5);
    border-color: rgba(29, 185, 84, 0.1);
    color: var(--text-muted);
}

/* List Group */
.list-group-item {
    background: rgba(20, 27, 61, 0.8);
    border: 1px solid rgba(29, 185, 84, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.list-group-item:hover {
    background: rgba(26, 35, 66, 0.8);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Progress Bar */
.progress {
    background: var(--bg-lighter);
}

.progress-bar {
    background: var(--primary-color);
}

/* Toast */
.toast {
    background: var(--bg-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.toast-header {
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Navbar */
.navbar {
    background: var(--bg-light) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-secondary);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--text-primary);
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid rgba(29, 185, 84, 0.2);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    background: rgba(20, 27, 61, 0.5);
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-color: transparent;
    background: rgba(26, 35, 66, 0.7);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
    border-color: transparent transparent var(--primary-color);
}

.tab-content {
    background: rgba(20, 27, 61, 0.6);
    padding: 1.5rem;
    border: 1px solid rgba(29, 185, 84, 0.2);
    border-top: none;
    backdrop-filter: blur(10px);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.4s ease-out;
}

/* Additional unique decorative elements */
.card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s ease;
}

.card:hover::after {
    right: -50px;
    opacity: 0.5;
}

/* Floating animation for sidebar */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.sidebar .brand img {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for active elements */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

.sidebar .nav-link.active {
    animation: pulse 2s infinite;
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

button,
a,
.btn,
.card {
    transition-duration: 0.2s;
}

/* Wali Item */
.wali-item {
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    background: var(--bg-light);
}

.wali-item:hover {
    background-color: var(--bg-lighter);
    transform: translateX(5px);
    border-color: var(--primary-color);
}

/* Chart & Canvas Responsive */
canvas {
    max-width: 100%;
    height: auto !important;
}

.chart-container {
    position: relative;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

/* Dashboard Modern Styles */
/* Dashboard Modern Styles */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
    color: #0d0577 !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    border: none;
    color: #ffffff !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: 0 44px 15px rgba(2, 132, 199, 0.3);
    border: none;
    color: #ffffff !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    box-shadow: 0 4px 15px rgba(202, 138, 4, 0.3);
    border: none;
    color: #ffffff !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: none;
    color: #ffffff !important;
}

/* Clean Gradient Futuristic Card Design */
.card-dashboard,
.card-modern {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Default gradient for card-dashboard - Green */
.card-dashboard {
    background: linear-gradient(135deg,
            rgba(0, 150, 94, 0.95) 0%,
            rgba(0, 197, 120, 0.9) 50%,
            rgba(0, 255, 157, 0.85) 100%);
}

/* Dark Blue dominant gradient for card-modern */
.card-modern {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.98) 0%,
            /* Very Dark Navy */
            rgba(30, 58, 138, 0.96) 25%,
            /* Deep Blue */
            rgba(37, 99, 235, 0.94) 50%,
            /* Royal Blue */
            rgba(59, 130, 246, 0.92) 75%,
            /* Sky Blue */
            rgba(99, 102, 241, 0.90) 100%) !important;
    /* Indigo hint */
}

/* Gradient variations for each card */
/* Card 1 - Green Gradient */
.card-dashboard:nth-child(1) {
    background: linear-gradient(135deg,
            rgba(0, 119, 73, 0.95) 0%,
            rgba(0, 150, 94, 0.9) 50%,
            rgba(0, 197, 120, 0.85) 100%);
}

/* Card 2 - Blue Gradient */
.card-dashboard:nth-child(2) {
    background: linear-gradient(135deg,
            rgba(14, 116, 144, 0.95) 0%,
            rgba(6, 182, 212, 0.9) 50%,
            rgba(34, 211, 238, 0.85) 100%);
}

/* Card 3 - Orange Gradient */
.card-dashboard:nth-child(3) {
    background: linear-gradient(135deg,
            rgba(234, 88, 12, 0.95) 0%,
            rgba(249, 115, 22, 0.9) 50%,
            rgba(251, 146, 60, 0.85) 100%);
}

/* Card 4 - Purple Gradient */
.card-dashboard:nth-child(4) {
    background: linear-gradient(135deg,
            rgba(126, 34, 206, 0.95) 0%,
            rgba(147, 51, 234, 0.9) 50%,
            rgba(168, 85, 247, 0.85) 100%);
}

/* Shimmer overlay for futuristic effect */
.card-dashboard::before,
.card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 6s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Hover - Lift with enhanced glow */
.card-dashboard:hover,
.card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px 0 rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Subtle grid pattern overlay */
.card-dashboard::after,
.card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 20px);
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}


/* Hover glow variations per card */
.card-dashboard:nth-child(1):hover {
    box-shadow:
        0 24px 48px -8px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 157, 0.3),
        /* Green */
        0 4px 20px rgba(0, 197, 120, 0.2);
}

.card-dashboard:nth-child(2):hover {
    box-shadow:
        0 24px 48px -8px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 180, 216, 0.3),
        /* Blue */
        0 4px 20px rgba(0, 217, 255, 0.2);
}

.card-dashboard:nth-child(3):hover {
    box-shadow:
        0 24px 48px -8px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 149, 0, 0.3),
        /* Orange */
        0 4px 20px rgba(255, 184, 0, 0.2);
}

.card-dashboard:nth-child(4):hover {
    box-shadow:
        0 24px 48px -8px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.3),
        /* Purple */
        0 4px 20px rgba(147, 51, 234, 0.2);
}

/* Card Headers */
.card-modern .card-header,
.card-modern .bg-white {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    /* More spacing */
}

/* Card Modern - White Neon Text Styling */
.card-modern .card-header h6,
.card-modern .card-header .fw-bold,
.card-modern h2,
.card-modern h3,
.card-modern h4,
.card-modern h5,
.card-modern h6,
.card-modern .fw-bold,
.card-modern .text-dark,
.card-modern p,
.card-modern span,
.card-modern div,
.card-modern small,
.card-modern .small,
.card-modern .text-muted {
    color: #ffffff !important;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Sharp black outline */
}

/* Specific styling for badges in card-modern */
.card-modern .badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Sharp black outline */
}

/* Override any bg-primary, bg-success etc in card-modern badges */
.card-modern .badge.bg-primary,
.card-modern .badge.bg-success,
.card-modern .badge.bg-info,
.card-modern .badge.bg-warning,
.card-modern .badge.bg-danger {
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Card modern body background override */
.card-modern .card-body {
    background: transparent !important;
}

/* Make icons in card-modern white neon too */
.card-modern i,
.card-modern .bi {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    /* Sharp shadow instead of glow */
}

/* Typography Enhancements */
.stat-label {
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    /* Changed to bright white */
    text-transform: uppercase;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Sharp black outline */
}

.stat-value {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    /* Changed to bright white */
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Sharp black outline */
    font-weight: 700;
}

/* Soft Backgrounds - Refined */
.bg-soft-primary {
    background-color: rgba(59, 130, 246, 0.08) !important;
    color: var(--primary-color) !important;
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

.bg-soft-info {
    background-color: rgba(14, 165, 233, 0.1) !important;
    color: #0284c7 !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
}

/* Text Colors - High Contrast */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: #059669 !important;
}

.text-info {
    color: #0284c7 !important;
}

.text-warning {
    color: #d97706 !important;
}

.card-dashboard::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg,
            var(--primary-color),
            var(--secondary-color),
            var(--tertiary-color),
            var(--secondary-color),
            var(--primary-color));
    background-size: 200% 100%;
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 4s linear infinite;
    filter: blur(6px);
}

.card-dashboard:hover::before {
    opacity: 0.5;
    /* Animated glow border on hover */
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Pulsing inner glow aura */
.card-dashboard .card-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(59, 130, 246, 0.06) 0%,
            transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: innerGlow 3s ease-in-out infinite;
}

@keyframes innerGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

.card-dashboard:hover .card-body::before {
    animation-play-state: paused;
    opacity: 1;
    transform: scale(1.2);
}

.card-dashboard .card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}

/* All text white for visibility */
.card-dashboard .stat-label,
.card-dashboard .stat-value,
.card-dashboard .small,
.card-dashboard .text-muted,
.card-dashboard .text-success,
.card-dashboard .fw-bold {
    position: relative;
    z-index: 4;
}

.stat-label {
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
    /* Bright white */
    text-transform: uppercase;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Thin sharp black outline */
}

.stat-value {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    font-size: 2.5rem;
    color: #ffffff !important;
    /* Bright white */
    font-weight: 700;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Thin sharp black outline */
    line-height: 1.2;
}

/* Small text and muted - also white */
.card-dashboard .small,
.card-dashboard .text-muted {
    color: #ffffff !important;
    /* Pure white */
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Success text - also white */
.card-dashboard .text-success,
.card-dashboard .fw-bold {
    color: #ffffff !important;
    /* Pure white */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Icons in small text */
.card-dashboard .bi {
    color: #ffffff !important;
}

.card-dashboard .icon-bg {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.12) !important;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-dashboard:hover .icon-bg {
    transform: scale(1.15) translateY(-8px);
    color: rgba(255, 255, 255, 0.2) !important;
}

.dashboard-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(232, 245, 241, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 2rem 2.5rem;
    border-radius: 24px;
    box-shadow:
        0 10px 40px -10px rgba(0, 119, 73, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 4px 20px rgba(0, 119, 73, 0.1);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid rgba(0, 119, 73, 0.15);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--secondary-color) 25%,
            var(--tertiary-color) 50%,
            var(--secondary-color) 75%,
            var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}

.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 10px;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.welcome-text h2 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.welcome-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
    line-height: 1;
}

.card-modern {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow:
        0 10px 40px -10px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: hidden;
    position: relative;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
}

.card-modern:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px -15px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 0 40px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.card-modern .card-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 24px 24px 0 0 !important;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.card-modern .card-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.5rem;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Soft Backgrounds */
/* Soft Backgrounds */
.bg-soft-primary {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bg-soft-info {
    background-color: rgba(2, 132, 199, 0.1);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.bg-soft-warning {
    background-color: rgba(202, 138, 4, 0.1);
    color: #ca8a04;
    border: 1px solid rgba(202, 138, 4, 0.2);
}

.bg-soft-danger {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.card-vibrant {
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-vibrant:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ============================================
   CARD-MODERN ADDITIONAL STYLING  
   Tables, Badges, and Special Elements
   ============================================ */

/* Tables inside card-modern - White neon text */
.card-modern table,
.card-modern .table {
    background: transparent !important;
}


.card-modern table thead th,
.card-modern .table thead th {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Thin sharp black outline */
}

/* Ensure thead itself is transparent */
.card-modern table thead,
.card-modern .table thead {
    background: transparent !important;
    background-color: transparent !important;
}

.card-modern table tbody td,
.card-modern .table tbody td {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.7),
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.7);
    /* Thin sharp black outline */
    background: transparent !important;
    background-color: transparent !important;
}

/* Force transparent background for tbody rows */
.card-modern table tbody tr,
.card-modern .table tbody tr {
    background: transparent !important;
    background-color: transparent !important;
}

.card-modern table tbody tr:hover,
.card-modern .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Wali item inside card-modern */
.card-modern .wali-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-modern .wali-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Avatar circles in card-modern */
.card-modern .avatar-circle {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.4);
}

/* Card vibrant backgrounds inside card-modern */
.card-modern .card-vibrant {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Soft backgrounds override for card-modern */
.card-modern .bg-soft-primary,
.card-modern .bg-soft-success,
.card-modern .bg-soft-info,
.card-modern .bg-soft-warning {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Text color overrides for specific color classes */
.card-modern .text-primary,
.card-modern .text-success,
.card-modern .text-info,
.card-modern .text-warning,
.card-modern .text-danger {
    color: #ffffff !important;
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.8),
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8);
    /* Thin sharp black outline */
}

/* Background light override */
.card-modern .bg-light,
.card-modern .bg-white,
.card-modern tbody tr,
.card-modern thead tr {
    background: transparent !important;
}

/* Ensure all table elements are transparent */
.card-modern table,
.card-modern .table,
.card-modern table tbody,
.card-modern table thead,
.card-modern .table tbody,
.card-modern .table thead {
    background: transparent !important;
}

/* Override table-responsive and any wrapper divs */
.card-modern .table-responsive,
.card-modern .table-responsive table,
.card-modern .table-responsive .table {
    background: transparent !important;
}

/* Force all divs and containers inside card-modern to be transparent */
.card-modern div:not(.card-header):not(.card-body):not(.badge):not(.wali-item):not(.card-vibrant) {
    background-color: transparent !important;
}

/* Border overrides */
.card-modern .border,
.card-modern .border-end,
.card-modern .border-bottom {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Rounded pill badges in card-modern */
.card-modern .rounded-pill {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* DataTables Search & Length Styling - Blue Border */
div.dataTables_wrapper div.dataTables_filter input,
div.dataTables_wrapper div.dataTables_length select {
    color: #1e293b !important;
    background: #ffffff;
    border: 2px solid #3b82f6 !important;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px -2px rgba(59, 130, 246, 0.25);
}

div.dataTables_wrapper div.dataTables_filter input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

div.dataTables_wrapper div.dataTables_filter input:hover,
div.dataTables_wrapper div.dataTables_length select:hover {
    border-color: #2563eb !important;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.35);
}

div.dataTables_wrapper div.dataTables_filter input:focus,
div.dataTables_wrapper div.dataTables_length select:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: #ffffff;
}

/* Animated glow effect for filter container */
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length {
    position: relative;
}

div.dataTables_wrapper div.dataTables_filter label,
div.dataTables_wrapper div.dataTables_length label {
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ============================================
   ELEGANT BLUE-GOLD FILTER CARD STYLING
   ============================================ */

/* Card Filter - Elegant Blue-Gold Border */
.card-filter,
.card.card-filter {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: none !important;
    border-radius: 16px;
    overflow: visible;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.4),
        0 0 0 6px rgba(212, 175, 55, 0.25),
        0 10px 40px -10px rgba(59, 130, 246, 0.25),
        0 6px 20px -5px rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-filter::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.8) 0%,
            rgba(212, 175, 55, 0.6) 25%,
            rgba(59, 130, 246, 0.7) 50%,
            rgba(212, 175, 55, 0.6) 75%,
            rgba(59, 130, 246, 0.8) 100%);
    background-size: 300% 300%;
    border-radius: 18px;
    z-index: -1;
    animation: shimmerGold 4s ease infinite;
    opacity: 0.6;
    filter: blur(2px);
}

@keyframes shimmerGold {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.card-filter:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.5),
        0 0 0 7px rgba(212, 175, 55, 0.35),
        0 15px 50px -10px rgba(59, 130, 246, 0.35),
        0 10px 30px -5px rgba(212, 175, 55, 0.25);
}

.card-filter:hover::before {
    opacity: 0.8;
}

.card-filter .card-header {
    background: linear-gradient(135deg,
            #3b82f6 0%,
            #2563eb 50%,
            #1d4ed8 100%) !important;
    border-radius: 13px 13px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.card-filter .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(212, 175, 55, 0.3) 50%,
            transparent 100%);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Form Elements inside Filter Card - Blue-Gold Theme */
.card-filter .form-select,
.card-filter .form-control {
    color: #1e293b !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent !important;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.35),
        0 0 0 4px rgba(212, 175, 55, 0.25),
        0 3px 10px -2px rgba(59, 130, 246, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card-filter .form-select:hover,
.card-filter .form-control:hover {
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.5),
        0 0 0 5px rgba(212, 175, 55, 0.35),
        0 5px 15px -2px rgba(59, 130, 246, 0.3),
        0 3px 10px -2px rgba(212, 175, 55, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.card-filter .form-select:focus,
.card-filter .form-control:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.6),
        0 0 0 6px rgba(212, 175, 55, 0.45),
        0 0 20px -5px rgba(59, 130, 246, 0.4),
        0 0 15px -5px rgba(212, 175, 55, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
}

.card-filter .form-label {
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

/* Filter buttons styling */
.card-filter .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.4),
        0 4px 15px -3px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.card-filter .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 2px rgba(59, 130, 246, 0.6),
        0 0 0 4px rgba(212, 175, 55, 0.3),
        0 6px 20px -3px rgba(59, 130, 246, 0.5);
}

.card-filter .btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    box-shadow:
        0 0 0 2px rgba(100, 116, 139, 0.3),
        0 4px 15px -3px rgba(100, 116, 139, 0.3);
    transition: all 0.3s ease;
}

.card-filter .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 2px rgba(100, 116, 139, 0.5),
        0 0 0 4px rgba(212, 175, 55, 0.2),
        0 6px 20px -3px rgba(100, 116, 139, 0.4);
}

/* =========================================
   DASHBOARD SPECIFIC STYLES (Hijau NU Theme)
   ========================================= */

.dashboard-header {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #84CC16 0%, #059669 100%) !important;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 119, 73, 0.15);
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}



/* Stats Cards & General Cards with Gradient */
/* Stats Cards & General Cards with Gradient */
/* Stats Cards & General Cards with Gradient */
.dashboard-green-card {
    /* "Terang & Kombinasi" - Match Sidebar Gradient */
    background: linear-gradient(135deg, #84CC16 0%, #059669 100%) !important;
    border-radius: 12px;
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 119, 73, 0.15);
    padding: 1.5rem;
    /* Increased padding */
    min-height: 140px;
    /* Ensured minimum height */
}

.card {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.dashboard-green-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 119, 73, 0.2);
}

/* Card Headers within Dashboard Green Card */
.dashboard-green-card .card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dashboard-green-card .card-header h6,
.dashboard-green-card .card-header small,
.dashboard-green-card .card-header .text-dark,
.dashboard-green-card .card-header .text-secondary,
.dashboard-green-card .card-header .text-muted {
    color: #ffffff !important;
}

/* Explicitly increase font size for Headers as requested */
.dashboard-green-card .card-header h6 {
    font-size: 1.25rem !important;
    /* Larger Header */
}

.dashboard-green-card .card-header small {
    font-size: 0.95rem !important;
    /* Larger Subtitle */
}

/* Icons Wrapper */
.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
}

/* Typography overrides for Dashboard Green Card */
.dashboard-green-card .stat-value,
.dashboard-green-card .stat-label,
.dashboard-green-card .small,
.dashboard-green-card .text-muted,
.dashboard-green-card .text-secondary,
.dashboard-green-card .text-dark,
.dashboard-green-card h6,
.dashboard-green-card h5,
.dashboard-green-card h4,
.dashboard-green-card h2 {
    color: #ffffff !important;
}

.dashboard-green-card .stat-label {
    opacity: 0.9;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* School Stats & Inner Items - Green Theme per user request */
.school-stat-item,
.dashboard-green-card .bg-light,
.wali-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: #059669 !important;
    /* Hijau NU Solid */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.school-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
}

.school-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Tables inside Dashboard Green Card */
.dashboard-green-card .table-custom,
.dashboard-green-card .table-custom th,
.dashboard-green-card .table-custom td {
    background-color: transparent !important;
    background: transparent !important;
    color: #ffffff !important;
}

.dashboard-green-card .table-custom tbody tr {
    transition: all 0.2s ease-in-out;
}

.dashboard-green-card .table-custom tbody tr:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
    border-radius: 8px;
}

.dashboard-green-card .table-custom tbody tr:hover td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.dashboard-green-card .table-custom tbody tr:hover td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}


.dashboard-green-card .table-custom th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dashboard-green-card .table-custom td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dashboard-green-card .table-custom thead.bg-light {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Badges within Dark Dashboard Cards - Restrict to green cards to avoid white-on-white in regular tables */
.dashboard-green-card .badge,
.stat-card.dashboard-green-card .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Inner utilities */
.border-end {
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Text Colors Override in Dashboard Context */
.dashboard-green-card .text-primary,
.dashboard-green-card .text-success,
.dashboard-green-card .text-info,
.dashboard-green-card .text-warning,
.dashboard-green-card .text-danger {
    color: #ffffff !important;
}

/* Main Content Styling for "Lekukan" (Rounded Floating Panel) */
.main-content {
    margin: 15px 15px 15px 255px;
    /* Floating with gap from Sidebar (240px) */
    background: #f3f4f6;
    /* The distinct gray panel background */
    border-radius: 30px;
    /* The requested "Lekukan" */
    min-height: calc(100vh - 30px);
    position: relative;
    overflow: hidden;
    /* Clips the topbar to the rounded corners */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.sidebar {
    /* "Terang & Kombinasi" - Bright Lime to Emerald Gradient */
    background: linear-gradient(135deg, #84CC16 0%, #059669 100%) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom Status Badge for 'Lulus' */
/* Custom Status Badge for 'Lulus' */
.bg-lulus {
    background-color: #84CC16 !important;
    /* Hijau */
    color: #000000 !important;
    /* Hitam */
    font-weight: 700 !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}