.btn-login-hero {
    background: #fff !important;
    color: var(--theme-gradient-end) !important;
    border: none;
    font-weight: bold;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.btn-login-hero:hover, .btn-login-hero:focus {
    background: var(--theme-gradient-end) !important;
    color: #fff !important;
}
.landing-page .hero-section .floating-shape-dot.dot1 {
    left: 18vw;
    top: 12vh;
    width: 38px;
    height: 38px;
    animation-delay: 1.7s;
}
.landing-page .hero-section .floating-shape-dot.dot2 {
    right: 18vw;
    bottom: 18vh;
    width: 28px;
    height: 28px;
    animation-delay: 2.9s;
}
.landing-page .hero-section .floating-shape-dot.dot3 {
    left: 8vw;
    top: 38vh;
    width: 18px;
    height: 18px;
    animation-delay: 3.7s;
}

/* Hero Feature Card - Diperbesar untuk keseimbangan visual */
.hero-feature-card {
    background: rgba(255,255,255,0.10);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    padding: 2rem !important; /* Lebih besar dari default p-4 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.35);
}

/* Item fitur dalam card */
.hero-feature-card .d-flex {
    margin-bottom: 1.75rem !important;
}

.hero-feature-card .d-flex:last-child {
    margin-bottom: 0 !important;
}

.hero-feature-card .feature-icon {
    min-width: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.20);
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-feature-card:hover .feature-icon {
    background: rgba(255,255,255,0.30);
    transform: scale(1.05);
}

.hero-feature-card .feature-icon i {
    font-size: 2.25rem !important;
}

/* Text dalam card fitur */
.hero-feature-card .fw-bold {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem;
}

.hero-feature-card .small {
    font-size: 0.95rem !important;
    opacity: 0.85;
}

/* assets/css/style.css */

/* Variabel Warna Utama & Gradasi */
:root {
    --theme-gradient-start: #0A4D68;  
    --theme-gradient-end: #088395;    
    --theme-gradient-hover-start: #083D53;
    --theme-gradient-hover-end: #066A78;

    --theme-primary-solid: #005B8F;    
    --theme-blue-primary: var(--theme-primary-solid); 
    --theme-blue-secondary: #004c78;   
    --theme-primary-light: #E7F3FF;   
    --theme-primary-rgb: 0, 91, 143;

    /* Variabel untuk Gradasi Hijau (Tombol Sukses & Ekspor Excel) */
    --theme-green-gradient-start: #1A642C;
    --theme-green-gradient-end: #28A745;
    --theme-green-gradient-hover-start: #155724; 
    --theme-green-gradient-hover-end: #1A642C;   

    /* Variabel untuk Gradasi Merah (Tombol Hapus & Ekspor PDF) */
    --theme-red-gradient-start: #B02A37;
    --theme-red-gradient-end: #ff6070;
    --theme-red-gradient-hover-start: #8C1C28;
    --theme-red-gradient-hover-end: #B02A37;   

    /* Variabel untuk Gradasi Kuning/Oranye (Tombol Edit) */
    --theme-orange-gradient-start: #ffbb00;
    --theme-orange-gradient-end: #fde931;
    --theme-orange-gradient-hover-start: #ffd900;
    --theme-orange-gradient-hover-end: #ffd208;   

    --theme-success: var(--theme-green-gradient-end); 
    --theme-success-dark: var(--theme-green-gradient-start);
    --theme-success-light: #d1e7dd; 

    --theme-accent: #FF7F50;          
    --theme-accent-dark: #E57348;

    --theme-info: #0dcaf0; 
    --theme-info-dark: #087990; 
    --theme-info-light: #cff4fc; 

    --theme-warning: var(--theme-orange-gradient-end); 
    --theme-warning-dark: var(--theme-orange-gradient-start);
    --theme-warning-light: #fff3cd;

    --theme-danger: var(--theme-red-gradient-end); 
    --theme-danger-dark: var(--theme-red-gradient-start);
    --theme-danger-light: #f8d7da;

    --theme-text: #343a40;             
    --theme-text-light: #FFFFFF;       
    --theme-text-muted: #6c757d;       
    --theme-border: #dee2e6;
    --theme-background: #f4f8fa;       
    --theme-card-bg: #FFFFFF;          
    --theme-dark-section-bg: #2c3e50;  
    --theme-light-bg: #f8f9fa; 

    --footer-link-hover-color: #66D9E8; 
    --theme-blue-gradient-light: #3F88C5; 
    --theme-blue-gradient-light-rgb: 63, 136, 197; 
    --theme-green-primary-rgb: 40, 167, 69; 
}

/* Pengaturan Global dan Tipografi */
body { 
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: var(--theme-background); 
    color: var(--theme-text); 
    line-height: 1.65; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    font-size: 13.5px; /* Reduced from 15px to simulate 90% zoom */
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    margin: 0; /* Reset margin untuk mencegah celah putih di bawah navbar */
}

.main-content { 
    flex: 1; 
    padding-bottom: 3rem; 
}

/* PERBAIKAN: Hapus padding-top agar hero section menempel */
.landing-page .main-content {
    padding-top: 0;
}
.dashboard-page .main-content {
    padding-top: 1.5rem;
    /* Hilangkan ruang kosong di bawah footer pada dashboard
       Dengan mengoverride padding-bottom default (.main-content { padding-bottom: 3rem; })
       agar tidak ada area kosong yang terlihat setelah footer. */
    padding-bottom: 0;
}


h1, h2, h3, h4, h5, h6 { 
    font-weight: 600; 
    color: var(--theme-text); 
    margin-top: 1.575rem; /* Reduced from 1.75rem to simulate 90% zoom */
    margin-bottom: 0.9rem; /* Reduced from 1rem to simulate 90% zoom */
    line-height: 1.4; 
} 
h1 { font-size: 1.8rem; } /* Reduced from 2rem to simulate 90% zoom */
h2 { font-size: 1.575rem; } /* Reduced from 1.75rem to simulate 90% zoom */
h3 { font-size: 1.35rem; } /* Reduced from 1.5rem to simulate 90% zoom */
h4 { font-size: 1.125rem; } /* Reduced from 1.25rem to simulate 90% zoom */

a { 
    color: var(--theme-primary-solid); 
    text-decoration: none; 
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out; 
}
a:hover { 
    color: var(--theme-blue-secondary); 
    opacity: 0.85; 
}

/* Tombol (Button) */
.btn {
    border-radius: 0.375rem; 
    padding: 0.54rem 1.17rem; /* Reduced from 0.6rem 1.3rem to simulate 90% zoom */
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    letter-spacing: 0.45px; /* Reduced from 0.5px to simulate 90% zoom */
    box-shadow: 0 1.8px 3.6px rgba(0, 0, 0, 0.07); /* Reduced from 0 2px 4px to simulate 90% zoom */
    border: none; 
    color: var(--theme-text-light); 
    text-transform: uppercase;
    font-size: 0.81rem; /* Reduced from 0.9rem to simulate 90% zoom */
}
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2); 
}
.btn-primary { 
    background-image: linear-gradient(to right, var(--theme-gradient-start), var(--theme-gradient-end));
    background-size: 200% auto; 
    color: var(--theme-text-light);
}
.btn-primary:hover {
    background-image: linear-gradient(to right, var(--theme-gradient-hover-start), var(--theme-gradient-hover-end));
    background-position: right center; 
    color: var(--theme-text-light);
}
.btn-info {
    background-image: linear-gradient(to right, #0d6efd, #0dcaf0);
    background-size: 200% auto; 
    color: var(--theme-text-light);
}
.btn-info:hover {
    background-image: linear-gradient(to right, #0b5ed7, #0ca5c4);
    background-position: right center; 
    color: var(--theme-text-light);
}
.btn-success {
    background-image: linear-gradient(to right, var(--theme-green-gradient-start), var(--theme-green-gradient-end));
    background-size: 200% auto;
    color: var(--theme-text-light);
    border: none; 
}
.btn-success:hover {
    background-image: linear-gradient(to right, var(--theme-green-gradient-hover-start), var(--theme-green-gradient-hover-end));
    background-position: right center; 
    color: var(--theme-text-light);
}
.btn-danger {
    background-image: linear-gradient(to right, var(--theme-red-gradient-start), var(--theme-red-gradient-end));
    background-size: 200% auto;
    color: var(--theme-text-light);
    border: none;
}
.btn-danger:hover {
    background-image: linear-gradient(to right, var(--theme-red-gradient-hover-start), var(--theme-red-gradient-hover-end));
    background-position: right center; 
    color: var(--theme-text-light);
}
.btn-warning {
    background-image: linear-gradient(to right, var(--theme-orange-gradient-start), var(--theme-orange-gradient-end));
    background-size: 200% auto;
    color: var(--theme-text);
    border: none;
}
.btn-warning:hover {
    background-image: linear-gradient(to right, var(--theme-orange-gradient-hover-start), var(--theme-orange-gradient-hover-end));
    background-position: right center; 
    color: var(--theme-text);
}
.btn-secondary { 
    background-color: #6c757d; 
    color: var(--theme-text-light); 
}
.btn-secondary:hover { 
    background-color: #545b62;
    color: var(--theme-text-light); 
}

/* PERBAIKAN: Gaya untuk Tombol Outline */
.btn-outline-info {
    color: var(--theme-info-dark);
    border-color: var(--theme-info);
    background-color: transparent;
}
.btn-outline-info:hover, .btn-outline-info:not(:disabled):not(.disabled).active, .btn-outline-info:not(:disabled):not(.disabled):active {
    background-color: var(--theme-info);
    border-color: var(--theme-info);
    color: white;
}
.btn-outline-info:disabled {
    color: #6c757d;
    border-color: #ced4da;
    background-color: #f8f9fa;
}

.btn-outline-success {
    color: var(--theme-success-dark);
    border-color: var(--theme-success);
    background-color: transparent;
}
.btn-outline-success:hover {
    background-color: var(--theme-success);
    color: white;
}

.btn-outline-danger {
    color: var(--theme-danger-dark);
    border-color: var(--theme-danger);
    background-color: transparent;
}
.btn-outline-danger:hover {
    background-color: var(--theme-danger);
    color: white;
}

.btn-outline-primary {
    color: var(--theme-primary-solid);
    border-color: var(--theme-primary-solid);
    background-color: transparent;
}
.btn-outline-primary:hover {
    background-color: var(--theme-primary-solid);
    color: white;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Kartu (Card) */
.card { 
    border: none; 
    border-radius: 0.675rem; /* Reduced from 0.75rem to simulate 90% zoom */
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.1); /* Reduced from 0 4px 12px to simulate 90% zoom */
    background-color: var(--theme-card-bg); 
    margin-bottom: 1.8rem; /* Reduced from 2rem to simulate 90% zoom */
    overflow: hidden; 
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out; 
}
.card:hover.hover-lift { 
    transform: translateY(-5.4px); /* Reduced from -6px to simulate 90% zoom */
    box-shadow: 0 9px 22.5px rgba(var(--theme-primary-rgb), 0.15); /* Reduced from 0 10px 25px to simulate 90% zoom */
}
.card-header { 
    background-color: var(--theme-primary-light); 
    border-bottom: 1px solid var(--theme-border); 
    font-weight: 600; 
    padding: 0.9rem 1.35rem; /* Reduced from 1rem 1.5rem to simulate 90% zoom */
    color: var(--theme-primary-solid); 
}
.card-header.bg-primary { 
    background-image: linear-gradient(to right, var(--theme-gradient-start), var(--theme-gradient-end)) !important; 
    color: #fff !important; 
    border-bottom: none; 
}
.card-header i { margin-right: 0.54rem; } /* Reduced from 0.6rem to simulate 90% zoom */
.card-body { padding: 1.35rem; } /* Reduced from 1.5rem to simulate 90% zoom */
.card-title { font-size: 1.125rem; /* Reduced from 1.25rem to simulate 90% zoom */ font-weight: 600; margin-bottom: 0.675rem; } /* Reduced from 0.75rem to simulate 90% zoom */

/* Form Input */
.form-control, .form-select { 
    border-radius: 0.375rem; 
    border: 1px solid var(--theme-border); 
    padding: 0.675rem 0.9rem; /* Reduced from 0.75rem 1rem to simulate 90% zoom */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; 
    background-color: #fff; 
    font-size: 0.855rem; /* Reduced from 0.95rem to simulate 90% zoom */
}
.form-control:focus, .form-select:focus { 
    border-color: var(--theme-primary-solid); 
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.2); 
}
.form-label { 
    font-weight: 500; 
    margin-bottom: 0.5rem; 
    color: var(--theme-text); 
    font-size: 0.9rem; 
}
.input-group-text { 
    background-color: var(--theme-light-bg); 
    border: 1px solid var(--theme-border); 
    color: var(--theme-text-muted); 
}

/* Tabel (Table) */
.table { 
    margin-bottom: 1.8rem; /* Reduced from 2rem to simulate 90% zoom */
    border: 1px solid var(--theme-border); 
    border-radius: 0.45rem; /* Reduced from 0.5rem to simulate 90% zoom */
    overflow: hidden; 
    box-shadow: 0 1.8px 3.6px rgba(0,0,0,0.05); /* Reduced from 0 2px 4px to simulate 90% zoom */
}
.table thead th { 
    vertical-align: middle; 
    padding: 0.7875rem 0.9rem; /* Reduced from 0.875rem 1rem to simulate 90% zoom */
    border-top: 1px solid var(--theme-border);
    background-color: var(--theme-blue-secondary); 
    color: white; 
}
.table td {
    vertical-align: middle; 
    padding: 0.7875rem 0.9rem; /* Reduced from 0.875rem 1rem to simulate 90% zoom */
    border-top: 1px solid var(--theme-border);
}
.table-hover tbody tr:hover { 
    background-color: var(--theme-primary-light); 
}
.table-striped tbody tr:nth-of-type(odd) { 
    background-color: var(--theme-light-bg); 
}
.table img { 
    max-width: 45px; 
    max-height: 45px; 
    object-fit: cover; 
    border-radius: 0.25rem; 
}

/* Alert (Pesan Notifikasi) */
.alert { 
    border-radius: 0.5rem; 
    padding: 1rem 1.25rem; 
    border-width: 0px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    font-weight: 500; 
}
.alert-primary { background-color: var(--theme-primary-light); color: var(--theme-primary-dark); }
.alert-success { background-color: var(--theme-success-light); color: var(--theme-success-dark); }
.alert-danger { background-color: var(--theme-danger-light); color: var(--theme-danger-dark); }
.alert-info { background-color: var(--theme-info-light); color: #0c5460; } 
.alert-warning { background-color: var(--theme-warning-light); color: #664d03; } 

/* Navbar */
.navbar { 
    box-shadow: 0 1.8px 9px rgba(0,0,0,0.1); /* Reduced from 0 2px 10px to simulate 90% zoom */
    padding-top: 0.45rem; /* Reduced from 0.5rem to simulate 90% zoom */
    padding-bottom: 0.45rem; /* Reduced from 0.5rem to simulate 90% zoom */
}

/* Tambahkan padding horizontal pada container navbar agar tidak mepet */
.navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive padding untuk tablet */
@media (max-width: 992px) {
    .navbar .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Responsive padding untuk mobile */
@media (max-width: 576px) {
    .navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.navbar-dark {
    background-image: linear-gradient(to right, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%); 
}
.navbar-brand { 
    font-weight: 700; 
    font-size: 1.35rem; /* Reduced from 1.5rem to simulate 90% zoom */
    letter-spacing: -0.225px; /* Reduced from -0.25px to simulate 90% zoom */
    color: #fff !important; 
    padding-top: 0.45rem; /* Reduced from 0.5rem to simulate 90% zoom */
    padding-bottom: 0.45rem; /* Reduced from 0.5rem to simulate 90% zoom */
}
.navbar-dark .navbar-nav .nav-link { 
    color: rgba(255,255,255,.88); 
    padding: 0.675rem 0.9rem; /* Reduced from 0.75rem 1rem to simulate 90% zoom */
    transition: color 0.2s ease, background-color 0.2s ease; 
    border-radius: 0.3375rem; /* Reduced from 0.375rem to simulate 90% zoom */
    font-weight: 500; 
    font-size: 0.855rem; /* Reduced from 0.95rem to simulate 90% zoom */
}
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link.active { 
    color: #fff; 
    background-color: rgba(255,255,255,0.12); 
}
.dropdown-menu { 
    border-radius: 0.5rem; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); 
    border: none; 
    padding-top: 0.5rem; 
    padding-bottom: 0.5rem; 
    min-width: 240px; 
    margin-top: 0.25rem; 
}
.dropdown-item { 
    padding: 0.6rem 1.25rem; 
    transition: background-color 0.2s ease, color 0.2s ease; 
    font-weight: 500; 
    font-size: 0.9rem; 
}
.dropdown-item i.fas, .dropdown-item i.fab { 
    width: 22px; 
    text-align: center; 
    margin-right: 0.3rem; 
}
.dropdown-item:active, .dropdown-item:focus, .dropdown-item:hover { 
    background-color: var(--theme-primary-light); 
    color: var(--theme-blue-primary); 
}
.dropdown-header { 
    font-weight: 600; 
    color: var(--theme-text-muted); 
    padding: 0.6rem 1.25rem 0.3rem; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
}
.dropdown-divider { 
    border-top: 1px solid var(--theme-border); 
    margin: 0.5rem 0; 
}

/* Footer Modern */
.footer-modern { 
    background-color: var(--theme-dark-section-bg); 
    color: rgba(255,255,255,.8); 
    padding: 2.7rem 0 1.35rem 0; /* Reduced from 3rem 0 1.5rem to simulate 90% zoom */
    font-size: 0.81rem; /* Reduced from 0.9rem to simulate 90% zoom */
    margin-top: auto; 
    border-top: 4.5px solid var(--theme-primary-solid); /* Reduced from 5px to simulate 90% zoom */
}
.footer-modern h5, .footer-modern h6 { 
    color: #fff; 
    font-weight: 600; 
    margin-bottom: 1.25rem; 
    letter-spacing: 0.5px; 
}
.footer-modern p { 
    margin-bottom: 0.75rem; 
    line-height: 1.7; 
    color: rgba(255,255,255,.7); 
}
.footer-modern .footer-link { 
    color: rgba(255,255,255,.9); 
    text-decoration: none; 
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out; 
}
.footer-modern .footer-link:hover { 
    color: var(--footer-link-hover-color); 
    text-decoration: underline; 
}
.footer-modern .btn-outline-light { 
    border-color: rgba(255,255,255,0.35); 
    color: rgba(255,255,255,0.85); 
    transition: all 0.2s ease-in-out; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1rem; 
}
.footer-modern .btn-outline-light:hover { 
    background-color: var(--footer-link-hover-color); 
    border-color: var(--footer-link-hover-color); 
    color: var(--theme-dark-section-bg); 
    transform: translateY(-2px); 
}
.footer-modern .footer-divider { 
    border-top: 1px solid rgba(255,255,255,0.1); 
}

/* Penyesuaian Bootstrap */
.bg-primary:not(.badge) { 
    background-image: linear-gradient(to right, var(--theme-gradient-start), var(--theme-gradient-end)) !important; 
    color: #fff !important; 
}
.bg-primary:not(.badge) h1, .bg-primary:not(.badge) h2, .bg-primary:not(.badge) h3, .bg-primary:not(.badge) h4, .bg-primary:not(.badge) h5, .bg-primary:not(.badge) h6, .bg-primary:not(.badge) i { 
    color: #fff !important; 
}
.text-primary { color: var(--theme-primary-solid) !important; }

/* Responsif */
@media (max-width: 1200px) { 
    /* For large desktops and below */
    .container, .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 992px) { 
    .navbar-nav .dropdown-menu { background-color: var(--theme-blue-secondary); border: none; } 
    .navbar-dark .navbar-nav .dropdown-item { color: rgba(255,255,255,.85); } 
    .navbar-dark .navbar-nav .dropdown-item:hover, .navbar-dark .navbar-nav .dropdown-item:focus { background-color: rgba(255,255,255,0.2); color: #fff; } 
    
    /* Responsive hero feature card untuk tablet */
    .hero-feature-card {
        padding: 1.75rem !important;
        margin-top: 2rem;
    }
    
    .hero-feature-card .feature-icon {
        min-width: 70px;
        min-height: 70px;
    }
    
    .hero-feature-card .feature-icon i {
        font-size: 2rem !important;
    }
    
    .hero-feature-card .fw-bold {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 768px) { 
    h1 { font-size: 1.9rem; } 
    h2 { font-size: 1.65rem; } 
    .navbar-brand { font-size: 1.25rem; } 
    .btn-lg { padding: 0.6rem 1.2rem; font-size: 0.95rem; } 
    .container, .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Hero feature card untuk mobile */
    .hero-feature-card {
        padding: 1.5rem !important;
    }
    
    .hero-feature-card .feature-icon {
        min-width: 65px;
        min-height: 65px;
        padding: 1rem !important;
    }
    
    .hero-feature-card .feature-icon i {
        font-size: 1.75rem !important;
    }
    
    .hero-feature-card .d-flex {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) { 
    .main-content .container, .main-content .container-fluid { padding-left: 0.5rem; padding-right: 0.5rem; } 
    .card-body { padding: 1rem; } 
    .table th, .table td { padding: 0.5rem; font-size: 0.8rem; } 
    .table img { max-width: 30px; max-height: 30px; } 
    footer { text-align: center; } 
    footer .text-lg-start { text-align: center !important; } 
    .navbar-nav { margin-top: 0.75rem; } 
    .navbar-nav .nav-link { padding: 0.75rem 1rem; } 
}

/* Enhanced responsive adjustments for all screen sizes and zoom levels */
@media screen and (min-width: 1200px) {
    /* Ensure proper container sizing for larger screens */
    .main-content .container, .main-content .container-fluid {
        max-width: 95%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Responsive adjustments for different zoom levels */
/* Dihapus ruleset kosong yang tidak diperlukan untuk menghindari lint error */

/* Responsive table adjustments */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Adjust dashboard cards for better responsiveness */
.stat-card, .btn-access {
    min-height: auto;
    height: auto;
    min-width: auto;
}

/* Responsive adjustments for form controls and inputs */
.form-control, .form-select {
    font-size: 0.9rem;
}

/* Ensure proper spacing across different screen sizes */
.mt-3, .my-3 {
    margin-top: 1rem !important;
}
.mb-3, .my-3 {
    margin-bottom: 1rem !important;
}
.mt-4, .my-4 {
    margin-top: 1.25rem !important;
}
.mb-4, .my-4 {
    margin-bottom: 1.25rem !important;
}

/* Responsive adjustments for grid layouts */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Utilitas Tambahan */
.hover-lift { 
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out; 
}
.hover-lift:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.06); 
}
#qr-reader { 
    border: 2px dashed var(--theme-primary-solid) !important; 
    border-radius: 0.5rem !important; 
    max-width: 100%; 
}
#qr-reader video { 
    border-radius: 0.3rem; 
}
.akses-cepat-title,
.akses-cepat-title i {
    color: #FFFFFF !important;
}
.header-status-badge {
    font-size: 0.9rem !important;
    vertical-align: middle;
}

/* Notifikasi */
.dropdown-menu .notification-item .dropdown-item {
    white-space: normal;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}
.dropdown-menu .notification-item:last-of-type .dropdown-item {
    border-bottom: none;
}
.dropdown-menu .notification-item .dropdown-item.notification-unread {
    background-color: var(--theme-primary-light, #e7f3ff);
}
.notification-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--theme-primary-solid, #005B8F);
    border-radius: 50%;
    flex-shrink: 0;
}
.notification-dot-placeholder {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

/* Limit notification message to 2 lines */
.notification-message {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property for future compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-right: 8px;
}

/* Perbaikan keterbacaan notifikasi pada tampilan mobile
   Di mobile, dropdown menu berada di atas background gelap (navbar)
   dan aturan umum .navbar-dark membuat .dropdown-item berwarna putih.
   Untuk item notifikasi yang 'unread' memiliki background terang,
   teks menjadi tidak terlihat. Aturan berikut memaksa warna teks gelap
   khusus untuk item notifikasi yang unread pada lebar <= 992px. */
@media (max-width: 992px) {
    .navbar-dark .navbar-nav .dropdown-menu .notification-item .dropdown-item.notification-unread {
        color: var(--theme-text) !important; /* teks utama lebih gelap */
    }

    .navbar-dark .navbar-nav .dropdown-menu .notification-item .dropdown-item.notification-unread .notification-message {
        color: var(--theme-text) !important;
    }

    .navbar-dark .navbar-nav .dropdown-menu .notification-item .dropdown-item.notification-unread small,
    .navbar-dark .navbar-nav .dropdown-menu .notification-item .dropdown-item.notification-unread .text-muted {
        color: var(--theme-text-muted) !important; /* timestamp tetap keabu-abuan */
    }
}

/* Developer Signature - Subtle & Elegant */
.developer-signature {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.developer-signature:hover {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transform: translateY(-2px);
}

.developer-signature::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.developer-signature:hover::after {
    width: 100%;
}

/* Gaya untuk Dashboard */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
    z-index: -1;
    border-radius: 12px;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.stat-card .icon-container {
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-size: 1.8rem; /* Reduced from 2rem to simulate 90% zoom */
    font-weight: 700;
    margin-bottom: 0.225rem; /* Reduced from 0.25rem to simulate 90% zoom */
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.81rem; /* Reduced from 0.9rem to simulate 90% zoom */
    color: var(--theme-text-muted);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.icon-container {
    width: 63px; /* Reduced from 70px to simulate 90% zoom */
    height: 63px; /* Reduced from 70px to simulate 90% zoom */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 9px; /* Reduced from 10px to simulate 90% zoom */
    border-radius: 12.6px; /* Reduced from 14px to simulate 90% zoom */
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 3.6px 10.8px rgba(0,0,0,0.08); /* Reduced from 0 4px 12px to simulate 90% zoom */
}

/* Gaya untuk tombol akses cepat */
.btn-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 126px; /* Reduced from 140px to simulate 90% zoom */
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10.8px; /* Reduced from 12px to simulate 90% zoom */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
    z-index: -1;
    border-radius: 10.8px; /* Reduced from 12px to simulate 90% zoom */
}

.btn-access:hover {
    transform: translateY(-7.2px) scale(1.02); /* Reduced from -8px to simulate 90% zoom */
    box-shadow: 0 10.8px 21.6px rgba(0,0,0,0.15); /* Reduced from 0 12px 24px to simulate 90% zoom */
    border-color: rgba(0,0,0,0.1);
}

.btn-access i {
    font-size: 1.62rem; /* Reduced from 1.8rem to simulate 90% zoom */
    margin-bottom: 0.45rem; /* Reduced from 0.5rem to simulate 90% zoom */
}

.card-gradient {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: white;
}

.card-gradient .card-header {
    background: transparent;
    border: none;
    color: white;
}

.card-gradient h4,
.card-gradient i {
    color: white !important;
}

.card-gradient .btn-outline-light {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.card-gradient .btn-outline-light:hover {
    background-color: white;
    color: var(--theme-gradient-start);
}

.dashboard-welcome-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.dashboard-welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.4) 0%, transparent 70%),
                radial-gradient(circle at bottom left, rgba(248, 249, 250, 0.4) 0%, transparent 70%);
    z-index: -1;
    border-radius: 16px;
}

/* Penyesuaian untuk tampilan mobile */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 15px;
    }
    
    .btn-access {
        height: 100px;
        font-size: 0.9rem;
    }
    
    .icon-container {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .btn-access {
        height: 110px;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .activity-item .flex-shrink-0 {
        margin-bottom: 10px;
    }
}

/* Gaya untuk Landing Page */
/* PERBAIKAN TAMPILAN AWAL */
.landing-page .hero-section {
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Floating SVG Shapes */
.landing-page .hero-section .floating-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
    animation: floating 5s ease-in-out infinite;
}
.landing-page .hero-section .floating-shape-1 {
    top: -40px;
    left: -40px;
    animation-delay: 0s;
}
.landing-page .hero-section .floating-shape-2 {
    bottom: -30px;
    right: -30px;
    animation-delay: 2.5s;
}
.landing-page .hero-section .floating-shape-lab.flask {
    left: 8vw;
    bottom: 12vh;
    width: 48px;
    height: 60px;
    animation-delay: 1.2s;
}
.landing-page .hero-section .floating-shape-lab.atom {
    right: 10vw;
    top: 18vh;
    width: 60px;
    height: 60px;
    animation-delay: 2.1s;
}
.landing-page .hero-section .floating-shape-lab.gear {
    left: 50vw;
    top: 8vh;
    width: 40px;
    height: 40px;
    animation-delay: 3.1s;
}
/* Animasi floating untuk konten utama hero section */
.landing-page .hero-section .floating-content {
    animation: floating-content 4.5s ease-in-out infinite;
}
@keyframes floating {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}
@keyframes floating-content {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
    100% { transform: translateY(0px); }
}

.landing-page .hero-section .display-4 {
    color: #ffffff; /* Warna putih agar kontras */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.landing-page .hero-section .lead {
    color: #e9ecef; /* Warna putih pudar */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.landing-page .hero-section .btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Tombol login di navbar */
.navbar .btn-login-navbar {
    background: #fff !important;
    color: var(--theme-gradient-end) !important;
    border: none;
    font-weight: bold;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}
.navbar .btn-login-navbar:hover, .navbar .btn-login-navbar:focus {
    background: var(--theme-gradient-end) !important;
    color: #fff !important;
}


/* Efek hover dan active pada menu Dashboard di navbar */
.navbar-dark .navbar-nav .nav-link {
    transition: background 0.2s, color 0.2s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}


.landing-page .features-section {
    background-color: var(--theme-light-bg);
}

.landing-page .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.landing-page .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* PERBAIKAN: Menambahkan text-shadow untuk teks di dalam carousel */
.landing-page .carousel-caption h4 {
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}
.landing-page .carousel-caption p {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

/* Penyesuaian caption carousel untuk mobile */
@media (max-width: 576px) {
    .carousel-caption {
        padding: 0.5rem 0.7rem;
        font-size: 0.95rem;
        background-color: rgba(0,0,0,0.32);
        bottom: 0.7rem;
        left: 0.5rem;
        right: 0.5rem;
        border-radius: 0.4rem;
    }
    .carousel-caption h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
}

/* Gaya untuk Kartu Statistik di Dashboard */
.card.border-left-primary { border-left: .25rem solid var(--theme-primary-solid) !important; }
.card.border-left-success { border-left: .25rem solid var(--theme-success) !important; }
.card.border-left-info { border-left: .25rem solid var(--theme-info) !important; }
.card.border-left-warning { border-left: .25rem solid var(--theme-warning) !important; }

.text-xs { font-size: .7rem; }
.font-weight-bold { font-weight: 700!important; }
.text-gray-300 { color: #dddfeb!important; }
.text-gray-800 { color: #5a5c69!important; }

/* Styling untuk Nested Dropdown / Sub-menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none; /* Sembunyikan secara default */
}

/* Tampilkan sub-menu saat di-hover pada layar besar */
@media (min-width: 992px) {
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Penyesuaian untuk layar kecil (mobile) */
@media (max-width: 991.98px) {
    .dropdown-submenu .dropdown-menu {
        left: 0;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }

    .dropdown-submenu > .dropdown-item {
        padding-left: 2rem; /* Beri indentasi agar terlihat seperti sub-menu */
    }
}

/* Fix untuk filter dan reset buttons di halaman riwayat transaksi */
.riwayat-transaksi-filters .row > div:last-child,
.riwayat-transaksi-filters .row > div:nth-last-child(2) {
    flex: 0 0 auto; /* Prevent flex items from growing */
    width: auto; /* Allow natural width rather than flex distribution */
}

/* Ensure filter buttons stay on same line */
.filter-form .row.g-3 .col-md-1 {
    min-width: 120px; /* Minimum width for filter buttons to prevent wrapping */
    flex: 0 0 auto;
}

/* Specific fix for the last two filter columns (Filter and Reset buttons) */
.filter-form .row.g-3 > div:last-child,
.filter-form .row.g-3 > div:nth-last-child(2) {
    min-width: 100px; /* Ensure minimum width for buttons */
}

.filter-form .row.g-3 > div:last-child button,
.filter-form .row.g-3 > div:last-child a,
.filter-form .row.g-3 > div:nth-last-child(2) button,
.filter-form .row.g-3 > div:nth-last-child(2) a {
    min-width: 100px;
    width: 100%;
}

/* Ensure buttons stay side by side on all screen sizes in riwayat_transaksi.php */
.riwayat-transaksi .filter-form .row.g-3 > .filter-col-action {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

/* Reduce padding specifically for filter form elements to save space */
.filter-form select,
.filter-form input {
    padding: 0.4rem 0.5rem; /* Further reduced padding to save space */
    font-size: 0.75rem; /* Smaller font to save space */
    height: calc(1.3em + 0.8rem + 2px); /* Adjusted height for smaller padding */
}

/* More compact margins and padding for filter form */
.filter-form .row.g-3 {
    margin-left: -0.4rem; /* More compact margin */
    margin-right: -0.4rem; /* More compact margin */
    --bs-gutter-x: 0.4rem; /* Reduce gap between columns */
}

.filter-form .row.g-3 > div {
    padding-left: 0.4rem; /* More compact padding */
    padding-right: 0.4rem; /* More compact padding */
}

/* Reduce the width of specific columns to make everything fit */
.filter-form .row.g-3 > div:nth-child(1) { /* Jenis column */
    flex: 0 0 calc(100% / 12 * 1.8); /* Take about 1.8/12 of the width */
}

.filter-form .row.g-3 > div:nth-child(2) { /* Status column */
    flex: 0 0 calc(100% / 12 * 1.8); /* Take about 1.8/12 of the width */
}

.filter-form .row.g-3 > div:nth-child(3) { /* Lab column */
    flex: 0 0 calc(100% / 12 * 2); /* Take about 2/12 of the width */
}

.filter-form .row.g-3 > div:nth-child(4) { /* Tgl Mulai column */
    flex: 0 0 calc(100% / 12 * 1.7); /* Take about 1.7/12 of the width */
}

.filter-form .row.g-3 > div:nth-child(5) { /* Tgl Selesai column */
    flex: 0 0 calc(100% / 12 * 1.7); /* Take about 1.7/12 of the width */
}

.filter-form .row.g-3 > div:nth-last-child(2),  /* Filter button column */
.filter-form .row.g-3 > div:last-child {         /* Reset button column */
    flex: 0 0 calc(100% / 12 * 1.5); /* Take about 1.5/12 of the width each */
    min-width: 60px; /* Minimum width for buttons */
}

/* Ensure form container doesn't overflow */
.filter-form {
    overflow-x: hidden;
}

/* Standardized filter card styles */
.filter-card {
    border: 1px solid var(--theme-border);
    border-radius: 0.675rem;
    box-shadow: 0 3.6px 10.8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.8rem;
    overflow: hidden;
}

.filter-card .card-header {
    background-color: var(--theme-primary-light);
    border-bottom: 1px solid var(--theme-border);
    font-weight: 600;
    padding: 0.9rem 1.35rem;
    color: var(--theme-primary-solid);
    display: flex;
    align-items: center;
}

.filter-card .card-header i {
    margin-right: 0.54rem;
}

.filter-card .card-body {
    padding: 1.35rem;
}

/* Consistent filter form layout */
.filter-form .row.g-3 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    --bs-gutter-x: 0.75rem;
}

.filter-form .row.g-3 > div {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: 70px; /* Ensure consistent height for all filter elements */
}

.filter-form .form-label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--theme-text);
    font-size: 0.85rem;
}

.filter-form .form-control,
.filter-form .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
    border: 1px solid var(--theme-border);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(1.5em + 1rem + 2px);
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: var(--theme-primary-solid);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.2);
}

/* Consistent button styles */
.filter-form .btn {
    padding: 0.54rem 1.17rem;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
    letter-spacing: 0.45px;
    box-shadow: 0 1.8px 3.6px rgba(0, 0, 0, 0.07);
    border: none;
    color: var(--theme-text-light);
    text-transform: uppercase;
    font-size: 0.81rem;
    min-height: calc(1.5em + 1rem + 2px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-form .btn-primary {
    background-image: linear-gradient(to right, var(--theme-gradient-start), var(--theme-gradient-end));
    background-size: 200% auto;
    color: var(--theme-text-light);
}

.filter-form .btn-primary:hover {
    background-image: linear-gradient(to right, var(--theme-gradient-hover-start), var(--theme-gradient-hover-end));
    background-position: right center;
    color: var(--theme-text-light);
}

.filter-form .btn-secondary {
    background-color: #6c757d;
    color: var(--theme-text-light);
}

.filter-form .btn-secondary:hover {
    background-color: #545b62;
    color: var(--theme-text-light);
}

/* Consistent column widths for different filter types */
.filter-col-search { flex: 0 0 auto; width: 25%; min-width: 250px; }
.filter-col-role { flex: 0 0 auto; width: 15%; min-width: 150px; }
.filter-col-status { flex: 0 0 auto; width: 15%; min-width: 150px; }
.filter-col-lab { flex: 0 0 auto; width: 25%; min-width: 220px; }
.filter-col-date { flex: 0 0 auto; width: 12%; min-width: 120px; }
.filter-col-action { flex: 0 0 auto; width: 8%; min-width: 80px; }
.filter-col-action-double { flex: 0 0 auto; width: 16%; min-width: 160px; }

/* Align filter and reset buttons in a single row - proper alignment */
.filter-form .row.g-3 > div.filter-col-action,
.filter-form .row.g-3 > div.filter-col-action-double {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 70px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .filter-col-search,
    .filter-col-role,
    .filter-col-status,
    .filter-col-lab,
    .filter-col-date,
    .filter-col-action,
    .filter-col-action-double {
        width: 100% !important;
        min-width: auto;
        margin-bottom: 0.5rem;
    }
    
    .filter-form .row.g-3 > div:last-child,
    .filter-form .row.g-3 > div:nth-last-child(2) {
        width: 50% !important;
    }
}

@media (max-width: 576px) {
    .filter-form .row.g-3 > div:last-child,
    .filter-form .row.g-3 > div:nth-last-child(2) {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   FILTER CARD - OPTIMIZED LAYOUT (Updated)
   ============================================ */

/* Optimasi Filter Layout untuk Konsistensi */
.filter-card .card-body {
    padding: 1rem;
    min-height: auto;
}

.filter-form .row {
    margin: 0 -0.25rem;
}

.filter-form .row > [class*="col-"] {
    padding: 0 0.25rem;
}

.filter-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem !important;
}

.filter-form .form-select-sm,
.filter-form .form-control-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.filter-form .btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
    white-space: nowrap;
}

/* Responsif untuk layar kecil */
@media (max-width: 1199px) {
    .filter-form .col-xl-1,
    .filter-form .col-xl-2 {
        min-width: auto;
    }
}

/* Untuk layar besar, pastikan filter dalam satu baris */
@media (min-width: 1200px) {
    .filter-form .row {
        flex-wrap: nowrap;
    }
}

/* Specific fix for the kategori_barang filter layout */
.kategori-filter .row.g-3 > div {
    min-height: auto;
}

.kategori-filter .form-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kategori-filter .form-control,
.kategori-filter .form-select {
    min-width: 0;
    width: 100%;
}

/* ============================================
   DATE INPUT ENHANCEMENT - AUTO-FOCUS STYLING
   ============================================ */

/* Container untuk enhanced date input */
.date-input-enhanced {
    position: relative;
    width: 100%;
}

/* Input text untuk tanggal dengan format DD-MM-YYYY */
.date-input-enhanced input[type="text"] {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.5px;
    padding-right: 2.5rem;
}

/* Icon kalender untuk visual hint */
.date-input-enhanced::after {
    content: '\f133';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-muted);
    pointer-events: none;
    font-size: 1rem;
}

/* Styling untuk invalid state */
.date-input-enhanced input[type="text"]:invalid {
    border-color: var(--theme-danger);
}

/* Styling untuk valid state */
.date-input-enhanced input[type="text"]:valid:not(:placeholder-shown) {
    border-color: var(--theme-success);
}

/* Focus state */
.date-input-enhanced input[type="text"]:focus {
    outline: none;
    border-color: var(--theme-primary-solid);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.25);
}

/* ===============================================
   Modal Login Styles
   =============================================== */
#loginModal .modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#loginModal .modal-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: linear-gradient(to right, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%) !important;
}

#loginModal .modal-body {
    background-color: #fff;
}

#loginModal .form-control:focus {
    border-color: var(--theme-primary-solid);
    box-shadow: 0 0 0 0.2rem rgba(var(--theme-primary-rgb), 0.25);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}
