/* ========================================
   SISCA V2 - MAIN STYLESHEET
   ========================================
   Table of Contents:
   1. CSS Variables & Root Settings
   2. Base Styles & Typography
   3. Login Page Styling
   4. Sidebar Components
   5. Main Content Layout
   6. Navigation & Navbar
   7. Dashboard Cards & Components
   8. Form Controls & Inputs
   9. Tables & Data Display
   10. Buttons & Interactive Elements
   11. Alerts & Badges
   12. Pagination Styling
   13. Scroll To Top Button
   14. Responsive Design (Mobile)
   15. Animations & Transitions
   16. Footer Styling
   17. Print Styles
   18. Dark Mode Support
   ======================================== */

/* ========================================
   1. CSS VARIABLES & ROOT SETTINGS
   ======================================== */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #007bff;
    --background-color: #f8f9fa;
    --sidebar-bg: #0f172a;
    --sidebar-active: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    --text-color: #333;
    --text-light: #ffffff;
    --button-color: #0e54de;
    --button-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.05)
    );
    --footer-bg: #f8f8f8;
    --navbar-bg: #ffffff;
    --card-bg: #ffffff;
    --card-header-bg: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ========================================
   2. BASE STYLES & TYPOGRAPHY
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ========================================
   3. LOGIN PAGE STYLING
   ======================================== */
.login {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1a45 0%, #1e3c72 50%, #2a5298 100%);

    background-size: 400% 400%;
    animation: gradientFlow 20s ease infinite;
}

/* Modern floating bubbles effect */
.login::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(40px);
    animation: float1 15s infinite ease-in-out;
    z-index: 0;
}

.login::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 20%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 80%
    );
    border-radius: 50%;
    filter: blur(60px);
    animation: float2 18s infinite ease-in-out reverse;
    z-index: 0;
}

/* Gradient animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating animations */
@keyframes float1 {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
    }
    50% {
        transform: translateY(-20px) translateX(-15px) scale(0.9);
    }
    75% {
        transform: translateY(25px) translateX(10px) scale(1.05);
    }
}

@keyframes float2 {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    30% {
        transform: translateY(25px) translateX(-20px) scale(1.15);
    }
    60% {
        transform: translateY(-15px) translateX(25px) scale(0.85);
    }
    90% {
        transform: translateY(10px) translateX(-10px) scale(1.1);
    }
}

/* Konten login agar di atas efek */
.login > * {
    position: relative;
    z-index: 2;
}

.login .container {
    position: relative;
    z-index: 1;
}

/* Additional floating elements */
.login .container::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 60%;
    left: 5%;
    background: radial-gradient(
        circle,
        rgba(102, 126, 234, 0.4) 0%,
        rgba(102, 126, 234, 0.1) 60%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(35px);
    animation: float3 12s infinite ease-in-out;
    z-index: 0;
}

.login .container::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: 5%;
    right: 10%;
    background: radial-gradient(
        circle,
        rgba(245, 87, 108, 0.3) 0%,
        rgba(245, 87, 108, 0.08) 50%,
        transparent 80%
    );
    border-radius: 50%;
    filter: blur(50px);
    animation: float4 14s infinite ease-in-out;
    z-index: 0;
}

/* Additional floating animations */
@keyframes float3 {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    33% {
        transform: translateY(-25px) translateX(15px) scale(1.2);
    }
    66% {
        transform: translateY(20px) translateX(-20px) scale(0.8);
    }
}

@keyframes float4 {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    40% {
        transform: translateY(20px) translateX(-25px) scale(1.1);
    }
    80% {
        transform: translateY(-30px) translateX(15px) scale(0.9);
    }
}

/* Modern glassmorphism effect for login card */
.login .card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.2);
}

.login-card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
}

.login-logo-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin: 10px;
}

/* Enhanced form styling for glassmorphism */
.login .form-label {
    color: #000;
    font-weight: 500;
}

.login .form-control {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: black;
}

.login .form-control:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 60, 114, 0.5);
    box-shadow: 0 0 20px rgba(30, 60, 114, 0.2);
    color: black;
}

.login .btn-primary {
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 0.9),
        rgba(42, 82, 152, 0.9)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.login .btn-primary:hover {
    background: linear-gradient(
        135deg,
        rgba(30, 60, 114, 1),
        rgba(42, 82, 152, 1)
    );
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.3);
}

/* Floating particles effect */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    filter: blur(1px);
    animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: -5s;
    animation-duration: 20s;
    width: 5px;
    height: 5px;
    background: rgba(102, 126, 234, 0.4);
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: -10s;
    animation-duration: 18s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: -15s;
    animation-duration: 22s;
    width: 4px;
    height: 4px;
    background: rgba(245, 87, 108, 0.4);
}

.particle:nth-child(5) {
    left: 85%;
    animation-delay: -8s;
    animation-duration: 16s;
    width: 3px;
    height: 3px;
    background: rgba(79, 172, 254, 0.4);
}

.particle:nth-child(6) {
    left: 90%;
    animation-delay: -12s;
    animation-duration: 24s;
    width: 6px;
    height: 6px;
    background: rgba(240, 147, 251, 0.3);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   4. SIDEBAR COMPONENTS
   ======================================== */

/* Main Sidebar Container */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: var(--sidebar-bg);
    color: white;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2d3748;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Sidebar minimized state - like SISCA V1 (show icons only) */
body.sidebar-collapsed .sidebar,
body[data-kt-app-sidebar-minimize="on"] .sidebar {
    width: 70px !important;
    transform: translateX(0) !important;
}

/* Content adjustment when sidebar is minimized */
body.sidebar-collapsed #content,
body[data-kt-app-sidebar-minimize="on"] #content {
    margin-left: 100px !important;
}

/* Hide text and arrows in minimized state */
body.sidebar-collapsed .sidebar .menu-title,
body.sidebar-collapsed .sidebar .menu-arrow,
body.sidebar-collapsed .sidebar .user-info,
body.sidebar-collapsed .sidebar .logo-full,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-title,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-arrow,
body[data-kt-app-sidebar-minimize="on"] .sidebar .user-info,
body[data-kt-app-sidebar-minimize="on"] .sidebar .logo-full {
    display: none !important;
}

/* Show mini logo in minimized state */
body.sidebar-collapsed .sidebar .logo-mini,
body[data-kt-app-sidebar-minimize="on"] .sidebar .logo-mini {
    display: block !important;
}

/* Adjust menu items in minimized state */
body.sidebar-collapsed .sidebar .menu-link,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-link {
    justify-content: center;
    padding: 12px;
    text-align: center;
}

/* Center icons in minimized state */
body.sidebar-collapsed .sidebar .menu-icon,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-icon {
    margin: 0;
    font-size: 20px;
}

/* Hide submenu in minimized state */
body.sidebar-collapsed .sidebar .menu-sub,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-sub {
    display: none !important;
}

/* Tooltip effect for minimized sidebar */
body.sidebar-collapsed .sidebar .menu-link,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-link {
    position: relative;
}

body.sidebar-collapsed .sidebar .menu-link:hover::after,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 75px;
    transform: translateY(-50%);
    background: var(--tooltip-bg, #333);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.sidebar-collapsed .sidebar .menu-link:hover::before,
body[data-kt-app-sidebar-minimize="on"] .sidebar .menu-link:hover::before {
    content: "";
    position: absolute;
    left: 70px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--tooltip-bg, #333);
    z-index: 1001;
}

/* Adjust user section in minimized state */
body.sidebar-collapsed .sidebar .app-sidebar-user .user-profile-link,
body[data-kt-app-sidebar-minimize="on"]
    .sidebar
    .app-sidebar-user
    .user-profile-link {
    justify-content: center;
    padding: 12px;
    text-align: center;
}

body.sidebar-collapsed .sidebar .app-sidebar-user .user-info,
body.sidebar-collapsed .sidebar .app-sidebar-user .dropdown-arrow,
body[data-kt-app-sidebar-minimize="on"] .sidebar .app-sidebar-user .user-info,
body[data-kt-app-sidebar-minimize="on"]
    .sidebar
    .app-sidebar-user
    .dropdown-arrow {
    display: none !important;
}

body.sidebar-collapsed .sidebar .app-sidebar-user .symbol,
body[data-kt-app-sidebar-minimize="on"] .sidebar .app-sidebar-user .symbol {
    margin: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

body.sidebar-collapsed .sidebar .user-dropdown-menu,
body[data-kt-app-sidebar-minimize="on"] .sidebar .user-dropdown-menu {
    display: none !important;
}

/* Adjust sidebar logo in minimized state */
body.sidebar-collapsed .sidebar .sidebar-logo,
body[data-kt-app-sidebar-minimize="on"] .sidebar .sidebar-logo {
    text-align: center;
    padding: 15px 10px;
}

/* Desktop sidebar behavior - min-width: 769px (Tablet Landscape & Desktop) */
@media (min-width: 769px) {
    body:not(.sidebar-collapsed):not([data-kt-app-sidebar-minimize="on"])
        .sidebar {
        transform: translateX(0);
    }

    body:not(.sidebar-collapsed):not([data-kt-app-sidebar-minimize="on"])
        #content {
        margin-left: 280px;
    }

    body.sidebar-collapsed .sidebar,
    body[data-kt-app-sidebar-minimize="on"] .sidebar {
        width: 70px !important;
        transform: translateX(0) !important;
    }

    body.sidebar-collapsed #content,
    body[data-kt-app-sidebar-minimize="on"] #content {
        margin-left: 70px !important;
    }

    /* Desktop toggle positioning - Consistent with mobile styling concept */
    .sidebar-toggle-fab {
        left: 250px;
        /* 250px sidebar + 20px outside margin */
        width: 45px;
        height: 45px;
    }

    body.sidebar-collapsed .sidebar-toggle-fab,
    body[data-kt-app-sidebar-minimize="on"] .sidebar-toggle-fab {
        left: 40px;
        /* Position on minimized sidebar (70px/2 = 35px center + 5px) */
    }
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Sidebar Toggle FAB - Floating Action Button with Consistent Styling */
.sidebar-toggle-fab {
    position: fixed;
    top: 10%;
    left: 230px;
    /* Position outside sidebar when expanded (250px - 20px) */
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 20%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--button-bg);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000 !important;
    pointer-events: auto;
    backdrop-filter: blur(3px);
}

.sidebar-toggle-fab:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%
    );
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-toggle-fab:active {
    transform: translateY(-50%) scale(0.95);
    transition: all 0.1s ease;
}

.sidebar-toggle-fab i {
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

/* When sidebar is collapsed, move toggle and maintain consistent styling */
body.sidebar-collapsed .sidebar-toggle-fab,
body[data-kt-app-sidebar-minimize="on"] .sidebar-toggle-fab {
    left: 80px;
    /* Consistent positioning when collapsed */
    background: var(--button-bg);
    border-color: rgba(255, 255, 255, 0.14);
}

body.sidebar-collapsed .sidebar-toggle-fab:hover,
body[data-kt-app-sidebar-minimize="on"] .sidebar-toggle-fab:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%
    );
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile position for toggle - Consistent with desktop styling */
@media (max-width: 768px) {
    .sidebar-toggle-fab {
        position: fixed;
        /* Below navbar on mobile */
        transform: none;
        z-index: 1002;
        width: 40px;
        height: 40px;
        border-radius: 20%;
        background: var(--button-bg);
        box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3),
            0 4px 10px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.2);
        color: var(--primary-color);
        backdrop-filter: blur(10px);
    }

    /* .sidebar-toggle-fab:hover {
        background: linear-gradient(
            135deg,
            var(--secondary-color) 0%,
            var(--primary-color) 100%
        );
        transform: scale(1.08);
        box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4),
            0 6px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
    } */

    .sidebar-toggle-fab:active {
        transform: scale(0.95);
        transition: all 0.1s ease;
    }

    .sidebar-toggle-fab i {
        font-size: 1.1rem;
        font-weight: 600;
    }

    /* Consistent styling when collapsed on mobile */
    body.sidebar-collapsed .sidebar-toggle-fab,
    body[data-kt-app-sidebar-minimize="on"] .sidebar-toggle-fab {
        background: var(--button-bg);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--primary-color);
        backdrop-filter: blur(10px);
    }

    /* Mobile sidebar overlay */
    body:not(.sidebar-collapsed):not(
            [data-kt-app-sidebar-minimize="on"]
        )::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    body.sidebar-collapsed::after,
    body[data-kt-app-sidebar-minimize="on"]::after {
        display: none;
    }
}

/* Sidebar Toggle Styles - Remove old sidebar-toggle styles */
.sidebar-toggle {
    display: none;
}

/* Sidebar Menu System */

/* Main Menu Container */
.menu {
    padding: 0;
}

.menu-item {
    margin-bottom: 2px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    position: relative;
}

.menu-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-link.active {
    background: var(--sidebar-active);
    color: white;
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.3);
}

.menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fff;
}

.menu-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.menu-title {
    text-align: left;
    flex: 1;
    font-weight: 300;
}

.sub-menu-title {
    margin-left: 10%;
    text-align: left;
    flex: 1;
    font-weight: 300;
}

.menu-arrow {
    margin-left: auto;
    transition: var(--transition);
}

.menu-link[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
}

/* Menu Accordion Styling like SISCA V1 */
.menu-item.menu-accordion {
    position: relative;
}

.menu-item.menu-accordion > .menu-link {
    cursor: pointer;
}

.menu-sub {
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.menu-sub.menu-sub-accordion {
    background: rgba(0, 0, 0, 0.3);
}

/* Remove dropdown styling - make all submenus accordion style */
.menu-sub.menu-sub-dropdown {
    position: static;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.menu-sub.menu-sub-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 500px;
}

.menu-item.menu-accordion.show > .menu-sub.menu-sub-accordion,
.menu-item.menu-accordion.show > .menu-sub.menu-sub-dropdown {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.menu-item.menu-accordion.show > .menu-link .menu-arrow i {
    transform: rotate(180deg);
}

.menu-sub .menu-item {
    margin-bottom: 0;
}

.menu-sub .menu-link {
    padding: 10px 20px 10px 40px;
    font-size: 0.8rem;
}

.menu-sub .menu-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* User Info Section like SISCA V1 */
/* Sidebar Content Area */
.sidebar-logo {
    flex-shrink: 0;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .menu {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2d3748;
}

.sidebar .menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar .menu::-webkit-scrollbar-track {
    background: #2d3748;
}

.sidebar .menu::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

.sidebar .menu::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* User Info Section - Fixed at bottom - Consistent with menu style */
.app-sidebar-user {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1060;
    margin-bottom: 2px;
}

.app-sidebar-user .user-profile-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    position: relative;
    cursor: pointer;
}

.app-sidebar-user .user-profile-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.user-profile-link .symbol {
    width: 20px;
    height: 20px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    margin-right: 12px;
    flex-shrink: 0;
    text-align: center;
}

.user-profile-link .user-info {
    text-align: left;
    flex: 1;
    font-weight: 300;
    min-width: 0;
}

.user-profile-link .user-name {
    font-size: 0.8rem;
    font-weight: 300;
    color: inherit;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-link .user-position {
    display: none;
}

.user-profile-link .dropdown-arrow {
    margin-left: auto;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.6);
}

.app-sidebar-user.show .user-profile-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu - Accordion style like menu - Display above user section */
.user-dropdown-menu {
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    position: absolute;
    bottom: 100%; /* Position above the user profile link */
    left: 0;
    right: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1070;
    min-width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: max-height 0.3s ease-out, opacity 0.3s ease,
        visibility 0.3s ease, transform 0.3s ease;
}

.app-sidebar-user.show .user-dropdown-menu {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: max-height 0.3s ease-in, opacity 0.3s ease, visibility 0.3s ease,
        transform 0.3s ease;
}

.user-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 20px 10px 40px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    position: relative;
    margin: 0;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* User dropdown arrow rotation */
.app-sidebar-user.show .user-profile-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hide scrollbar for user dropdown */
.user-dropdown-menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.user-dropdown-menu::-webkit-scrollbar {
    display: none;
}

.user-menu-item.danger:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b7a;
}

.user-menu-item .menu-icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.user-menu-item .menu-title {
    text-align: left;
    flex: 1;
    font-weight: 300;
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.user-menu-form {
    margin: 0;
}

/* Hide user dropdown in minimized mode */
body[data-kt-app-sidebar-minimize="on"]
    .app-sidebar-user.show
    .user-dropdown-menu,
body.sidebar-collapsed .app-sidebar-user.show .user-dropdown-menu {
    display: none;
}

/* ========================================
   5. MAIN CONTENT LAYOUT
   ======================================== */

/* Main Content */
#content {
    position: relative;
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    /* background: var(--background-color); */
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
}

/* Saat sidebar collapse */
body.sidebar-collapsed #content,
body[data-kt-app-sidebar-minimize="on"] #content {
    margin-left: 100px !important;
}

/* ===== Responsive ===== */

/* Tablet (<= 992px) */
@media (max-width: 992px) {
    #content {
        margin-left: 120px;
        padding: 16px;
    }

    body.sidebar-collapsed #content,
    body[data-kt-app-sidebar-minimize="on"] #content {
        margin-left: 70px !important;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    #content {
        margin-left: 260px !important;
        /* sidebar overlay on mobile */
        padding: 12px;
    }

    body.sidebar-collapsed #content,
    body[data-kt-app-sidebar-minimize="on"] #content {
        margin-left: 80px !important;
    }

    /* On mobile, collapsed means hidden */
    body.sidebar-collapsed .sidebar,
    body[data-kt-app-sidebar-minimize="on"] .sidebar {
        transform: translateX(0) !important;
        width: 70px !important;
    }
}

/* ========================================
   6. NAVIGATION & NAVBAR
   ======================================== */

/* Navbar */
.navbar {
    background: var(--navbar-bg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
}

.navbar-brand img {
    max-height: 85px;
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Tablet (≤992px) */
@media (max-width: 992px) {
    #datetime {
        display: none;
    }

    #navbarTitle {
        display: none;
    }

    .navbar-brand img {
        max-width: 80px !important;
        /* logo agak kecil */
    }

    .dropdown-menu h6 {
        font-size: 0.9rem;
    }

    body.sidebar-collapsed #navbarTitle,
    body[data-kt-app-sidebar-minimize="on"] #navbarTitle {
        display: contents;
        font-size: 1rem;
        /* lebih kecil dari default */
    }
}

/* Mobile (≤576px) */
@media (max-width: 576px) {
    #navbarTitle {
        display: none;
        /* sembunyikan title di layar kecil */
    }

    header.navbar .nav-link i,
    header.navbar .bi {
        font-size: 1rem;
        /* ikon tetap terbaca */
    }

    .dropdown-menu h6 {
        font-size: 0.75rem;
    }

    .navbar-brand img {
        max-width: 60px;
        /* logo lebih kecil dari tablet */
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ========================================
   7. DASHBOARD CARDS & COMPONENTS
   ======================================== */

/* Dashboard Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--card-header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    font-weight: 600;
    color: var(--text-light);
}

.card-title {
    color: var(--text-light);
}

.border-left-primary {
    border-left: 4px solid #4e73df !important;
}

.border-left-success {
    border-left: 4px solid #1cc88a !important;
}

.border-left-info {
    border-left: 4px solid #36b9cc !important;
}

.border-left-warning {
    border-left: 4px solid #f6c23e !important;
}

.card-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   10. BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--transition);
    border: none;
    font-size: 0.8rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-color) 0%,
        var(--primary-color) 100%
    );
    border-color: var(--primary-color);
}

.btn-folder {
    border-radius: 0.8rem 0.8rem 0 0;
    /* atas rounded, bawah rata */
    background: var(--button-bg);
}

.btn-folder.active {
    background-color: #0d6efd;
    /* biru bootstrap */
    color: #fff;
    border-bottom: 2px solid white;
}

#fixed-checkout {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

/* ========================================
   9. TABLES & DATA DISPLAY
   ======================================== */

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.table thead th {
    background: var(--background-color);
    /* background: white; */
    color: var(--text-color);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
    font-size: small;
}

.table tbody tr:hover {
    background: rgba(30, 60, 114, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Tablet (≤ 768px) */
/* @media (max-width: 768px) {
    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1rem;
        box-shadow: var(--shadow-md);
        background: white;
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .table td {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
        padding: 0.75rem 1rem;
        padding-left: 6rem;
        position: relative;
        font-size: 0.9rem;
        border: none;
    }

    .table td::before {
        content: attr(data-label);
        position: absolute;
        flex: 0 0 100px;
        left: 1rem;
        top: 0.5rem;
        font-weight: 500;
        text-transform: uppercase;
        color: var(--text-color-muted);
        font-size: 0.75rem;
    }
} */

/* Mobile (≤ 576px) */
@media (max-width: 576px) {
    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1rem;
        box-shadow: var(--shadow-md);
        background: white;
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .table td {
        display: block;
        text-align: left;
        padding: 0.75rem 1rem;
        position: relative;
        font-size: 0.9rem;
        border: none;
        word-break: break-word;
    }

    .table td::before {
        content: attr(data-label);
        display: block;
        /* label ditaruh di baris sendiri */
        margin-bottom: 0.25rem;
        /* jarak antara label & isi */
        font-weight: 500;
        text-transform: uppercase;
        color: var(--text-color-muted);
        font-size: 0.75rem;
    }
}

/* ========================================
   8. FORM CONTROLS & INPUTS
   ======================================== */

/* Form Controls */
.form-text {
    font-size: 0.75rem;
    color: var(--text-color);
}

.form-control,
.form-select {
    background-color: var(--background-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 60, 114, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-check-label {
    font-weight: 600;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(30, 60, 114, 0.25);
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.password-weak {
    background-color: #dc3545;
}

.password-medium {
    background-color: #ffc107;
}

.password-strong {
    background-color: #198754;
}

/* ========================================
   11. ALERTS & BADGES
   ======================================== */

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.5);
    border-left: 4px solid #0dcaf0;
    color: var(--text-color);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.5);
    border-left: 4px solid #198754;
    color: var(--text-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.5);
    border-left: 4px solid #dc3545;
    color: var(--text-color);
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Role badge colors */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

/* ========================================
   12. PAGINATION STYLING
   ======================================== */

/* Pagination Styling */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: var(--transition);
    border-radius: 0.375rem;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background-color: var(--background-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background-color: #fff;
    border-color: var(--border-color);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* Fix pagination icons size */
.pagination .page-link i {
    font-size: 0.75rem !important;
}

.pagination .page-link svg {
    width: 20px !important;
    height: 20px !important;
}

/* Custom pagination icon styling */
.pagination .page-link i.fa-chevron-left,
.pagination .page-link i.fa-chevron-right {
    font-size: 0.75rem !important;
    font-weight: 600;
}

/* SVG pagination styling */
.pagination .page-link svg.w-5.h-5 {
    width: 20px !important;
    height: 20px !important;
}

.pagination .page-link svg {
    width: 20px;
    fill: currentColor;
    vertical-align: middle;
}

/* Override Tailwind classes for pagination SVG */
.pagination .w-5 {
    width: 20px !important;
}

.pagination .h-5 {
    height: 20px !important;
}

/* General SVG pagination styling */
.pagination svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor;
    vertical-align: middle;
}

/* Pagination responsive - max-width: 576px (Mobile Phones) */
@media (max-width: 576px) {
    .pagination .page-link {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    .pagination .page-link i {
        font-size: 0.65rem !important;
    }

    .pagination .page-link svg {
        width: 16px !important;
        height: 16px !important;
    }

    .pagination .page-link i.fa-chevron-left,
    .pagination .page-link i.fa-chevron-right {
        font-size: 0.65rem !important;
    }

    /* Mobile SVG pagination styling */
    .pagination .page-link svg.w-5.h-5 {
        width: 16px !important;
        height: 16px !important;
    }

    /* Mobile Tailwind class overrides */
    .pagination .w-5 {
        width: 16px !important;
    }

    .pagination .h-5 {
        height: 16px !important;
    }

    /* Mobile general SVG styling */
    .pagination svg {
        width: 16px !important;
        height: 16px !important;
    }

    .pagination {
        justify-content: center;
    }
}

/* ========================================
   13. SCROLL TO TOP BUTTON
   ======================================== */

/* Scroll To Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    padding: 15px;
    background: var(--button-bg);
    color: #0e54de;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

#scrollToTopBtn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

/* ========================================
   14. RESPONSIVE DESIGN (MOBILE)
   ======================================== */

/* Mobile overlay when sidebar is open - max-width: 768px (Mobile & Tablet Portrait) */
@media (max-width: 768px) {
    /* Create overlay when sidebar is open - only when sidebar is NOT collapsed */
    body:not(.sidebar-collapsed):not(
            [data-kt-app-sidebar-minimize="on"]
        )::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        transition: opacity 0.3s ease;
        pointer-events: auto;
    }

    /* Hide overlay when sidebar is collapsed */
    body.sidebar-collapsed::before,
    body[data-kt-app-sidebar-minimize="on"]::before {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }

    /* On mobile, sidebar starts collapsed by default */
    .sidebar {
        transform: translateX(-280px);
    }

    /* When sidebar is opened (remove collapsed class), show sidebar */
    body:not(.sidebar-collapsed):not([data-kt-app-sidebar-minimize="on"])
        .sidebar {
        transform: translateX(0);
    }

    #content {
        margin-left: 20px;
        padding: 10px;
    }

    .card {
        margin-bottom: 20px;
    }

    .table-responsive {
        border-radius: var(--border-radius);
    }

    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }

    .navbar-brand img {
        width: 120px !important;
    }

    .h3 {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   15. ANIMATIONS & TRANSITIONS
   ======================================== */

/* Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    animation: slideInLeft 0.3s ease;
}

.card {
    animation: fadeInUp 0.4s ease;
}

/* ========================================
   16. FOOTER STYLING
   ======================================== */

/* Footer Styling */
.footer {
    margin-top: 30px;
    z-index: 10;
    position: relative;
    background-color: var(--footer-bg);
    color: var(--text-color);
    flex-shrink: 0;
}

/* Enhanced Mobile Responsive - max-width: 576px (Mobile Phones) */
@media (max-width: 576px) {
    .col-xl-3,
    .col-md-6 {
        margin-bottom: 1rem;
    }

    .navbar-brand img {
        width: 100px !important;
    }

    .sidebar {
        width: 260px;
    }

    .user-info {
        padding: 15px;
    }

    .menu-link {
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .menu-icon {
        width: 18px;
        margin-right: 10px;
    }

    .footer {
        font-size: 0.7rem;
        padding: 15px 0;
    }

    .footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }

    .footer .col-md-6:last-child {
        margin-bottom: 0;
    }
}

/* ========================================
   17. PRINT STYLES
   ======================================== */

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    #scrollToTopBtn,
    .footer {
        display: none !important;
    }

    #content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ========================================
   18. HIGH DPI & DEVICE PIXEL RATIO
   ======================================== */

/* High DPI Displays - Device Pixel Ratio >= 2 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sidebar-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }
}

/* ========================================
   19. DARK MODE SUPPORT
   ======================================== */

/* Dark Mode Support (Future Enhancement) - Prefers Dark Color Scheme */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
        --border-color: #404040;
        --footer-bg: #1a1a1a;
        --sidebar-bg: #0a0a0a;
        --navbar-bg: #404040;
        --card-bg: #2a2a2a;
        --button-bg: rgba(255, 255, 255, 0.1);
        --button-color: #66b2ff;
        --bs-secondary-color: #838fa5;
        --bs-table-active-color: #ffffff;
        --bs-table-hover-color: #ffffff;
    }

    .table {
        color: #fff;

        tbody > tr:hover > * {
            color: #fff;
        }
    }

    .modal-content {
        z-index: 1055 !important;
        background-color: #2a2a2a;
        color: #fff;
    }

    .btn-close {
        color: #fff;
        background: transparent
            url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
            center/1em auto no-repeat;
    }
    .text-title {
        color: black;
    }

    .user-management-btn {
        color: black;
    }

    .login .form-control:focus {
        color: black;
    }

    @media (prefers-color-scheme: dark) {
        .text-title {
            color: White;
        }

        .user-management-btn {
            color: White;
        }
    }
}

/* ==================================================
   13. Customize
   ================================================== */
/* Item Card Custom */
.item-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
    /* highlight biru */
}

.item-card input[type="checkbox"]:checked ~ label {
    color: #0d6efd;
}

.input-group .form-control {
    border-radius: 8px 0 0 8px;
}

.input-group .input-group-text {
    border-radius: 0 8px 8px 0;
    background-color: #f8f9fa;
}

/* Card Button Location custom */
.hover-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bg-gradient-content {
    background: linear-gradient(to left, #e5fff6, #fcfcfc);
}

/* Table Dashboard Custom */
#table-dashboard thead th {
    background-color: #ffffff;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: small;
}

#table-dashboard tbody tr td {
    background-color: #ffffff;
    /* border: 1px solid #dee2e6; */
    overflow-x: auto;
    font-size: small;
}

/* Tablet (<= 992px) */
@media (max-width: 992px) {
    /* Item Card */
    .item-card .form-check-label {
        font-size: 0.8rem;
    }

    .item-card .form-label {
        font-size: 0.7rem;
    }

    .item-card .input-group .form-control {
        font-size: 0.7rem;
    }

    .item-card .input-group .input-group-text {
        font-size: 0.7rem;
    }

    /* Table Dashboard */
    #table-dashboard thead th {
        font-size: 0.7rem;
    }

    #table-dashboard tbody tr td {
        font-size: 0.7rem;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    #table-dashboard thead th {
        font-size: 0.65rem;
    }

    #table-dashboard tbody tr td {
        font-size: 0.65rem;
    }

    .table tr {
        background: var(--background-color);
    }
}

/* Default tweak (biar gak terlalu gede di semua device) */
.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
    padding: 0.25rem 0.5rem;
    /* default kecil */
    font-size: 0.8rem;
}

/* Kalau di tablet (≤ 768px), kecilin lagi */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Kalau di HP kecil (≤ 576px), lebih kecil lagi */
@media (max-width: 576px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
}

.card-dashboard {
    padding: 1rem;
    height: 350px;
}

/* Landing Page */
.light {
    margin: 0;
    height: 100vh;
    background: #f8f9fa;
    /* Soft light background */
    color: #212529;
    /* Dark text */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Glow effect at the bottom */
.glow {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 400px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 200, 83, 0.3) 30%,
        transparent 70%
    );
    filter: blur(50px);
    z-index: 0;
}

.hero-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    z-index: 10;
    text-align: start;
    color: #212529;
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.hero-content .card-link,
.hero-content a,
.hero-content button {
    pointer-events: auto;
}

.card-logo {
    width: 80px;
    /* bisa disesuaikan */
    height: auto;
    object-fit: contain;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.card-link {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.1);
    /* green shadow */
    color: #212529;
    min-height: 200px;
    height: 300px;
}

.card-link:hover {
    transform: translateY(-5px) scale(1.02);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
    background: rgba(255, 255, 255, 0.85);
}

.card-link .card-body {
    position: relative;
    z-index: 2;
    /* isi card tetap di atas gambar */
}

/* Logout Button */
.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.logout-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: rgba(220, 53, 69, 0.9);
    /* merah semi transparan */
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logout-circle:hover {
    background-color: #dc3545;
    /* merah solid */
    transform: scale(1.1);
}

/* Floating User Management */
.user-management-btn {
    position: absolute;
    top: 20px;
    right: 80px;
    color: black;
    padding: 12px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
    z-index: 20;
}

.user-management-btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    body::after {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body::before {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-content {
        text-align: center;
        padding: 10px;
    }

    .card-link {
        height: auto;
        min-height: 220px;
    }

    .logout-btn {
        top: 15px;
        right: 15px;
    }

    .user-management-btn {
        top: 15px;
        right: 80px;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .user-management-btn i {
        font-size: 1rem;
    }

    .hero-content {
        margin-top: 200px;
    }

    .hero-content .row > div {
        width: 100%;
        max-width: 100%;
    }
}

/* End Modular Lnading Page */

/* ========================================
   END OF SISCA V2 STYLESHEET

   File: stylev2.css
   Description: Main stylesheet for SISCA V2 application
   Version: 2.0
   Author: SISCA Development Team
   Last Updated: September 2025

   Device Breakpoints Used:
   - Mobile Phones: max-width: 576px
   - Mobile & Tablet Portrait: max-width: 768px
   - Tablet Landscape & Desktop: min-width: 769px
   - High DPI Displays: Device Pixel Ratio >= 2
   ======================================== */
