/* 
 * Kresna Reporting Analytics - Global Style System
 * Modernizing UI with Solid Premium Aesthetics
 */

:root { 
    --br-subtle: 1rem; 
    --primary-solid: #3b82f6;
    --success-solid: #10b981;
    --danger-solid: #ef4444;
    --warning-solid: #f59e0b;
    --info-solid: #0ea5e9;
}

/* Global Container & Layout */
.kresna-dashboard-wrapper, .mutu-standard-dashboard { 
    background-color: transparent; 
    min-height: 100vh; 
}

.hero-section-solid {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    border: none;
    border-left: 5px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-section-solid::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.hero-section-solid::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Base Component Styling Overrides */
.kresna-dashboard-wrapper .card, 
.kresna-dashboard-wrapper .btn, 
.kresna-dashboard-wrapper .badge, 
.kresna-dashboard-wrapper .avatar-title, 
.kresna-dashboard-wrapper .select2-selection { border-radius: var(--br-subtle) !important; }

.kresna-dashboard-wrapper .btn:not(.rounded-pill), 
.kresna-dashboard-wrapper .badge:not(.rounded-pill) { 
    border-radius: 1rem !important; 
}

/* Premium Shadow System */
.kresna-dashboard-wrapper .shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.kresna-dashboard-wrapper .card.shadow-sm {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}


.rounded-4 { border-radius: 1rem !important; overflow: hidden !important; }

/* Ensure rounded-circle still works */
.rounded-circle { border-radius: 50% !important; }

/* Background & Utilities */
.bg-soft-primary { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-soft-success { background-color: rgba(16, 185, 129, 0.1) !important; }
.bg-soft-danger { background-color: rgba(239, 68, 68, 0.1) !important; }
.bg-soft-warning { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-soft-info { background-color: rgba(14, 165, 233, 0.1) !important; }
.bg-soft-dark { background-color: rgba(33, 37, 41, 0.08) !important; }
.bg-soft-secondary { background-color: rgba(108, 117, 125, 0.15) !important; }
.bg-soft-light { background-color: rgba(248, 249, 250, 0.5) !important; }
.bg-dark-10 { background-color: rgba(0, 0, 0, 0.1); }
.bg-slate-soft { background-color: #f1f5f9 !important; border: 1px solid #e2e8f0 !important; }

.bg-gradient-primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.bg-gradient-secondary { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.bg-gradient-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-gradient-info { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.bg-gradient-danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.bg-gradient-warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-indigo { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-dark { background: linear-gradient(135deg, #334155 0%, #0f172a 100%); }
.bg-white-20 { background-color: rgba(255, 255, 255, 0.2) !important; }

/* Text & Typography */
.ls-1 { letter-spacing: 0.5px; }
.x-small { font-size: 0.75rem; }

/* Animations */
.transition { transition: 0.3s; }
.hover-up:hover { transform: translateY(-5px); transition: 0.3s; }

/* Badges & Soft Buttons */
.btn-soft-primary { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; border: none; }
.btn-soft-primary:hover { background-color: #3b82f6; color: #fff; }
.btn-soft-success { background-color: rgba(16, 185, 129, 0.1); color: #10b981; border: none; }
.btn-soft-success:hover { background-color: #10b981; color: #fff; }
.btn-soft-danger { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; border: none; }
.btn-soft-danger:hover { background-color: #ef4444; color: #fff; }
.btn-soft-warning { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; border: none; }
.btn-soft-warning:hover { background-color: #f59e0b; color: #fff; }
.btn-soft-info { background-color: rgba(14, 165, 233, 0.1); color: #0ea5e9; border: none; }
.btn-soft-info:hover { background-color: #0ea5e9; color: #fff; }

.status-indicator-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Advanced Utilities & Shared Styles */
.nav-pills-custom {
    background: #fff;
    padding: 0.25rem;
    border-radius: 50rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-pills-custom .nav-link {
    border-radius: 50rem;
    font-weight: 600;
}

.table-custom-border {
    border-top: 2px solid #3b82f6 !important;
    border-bottom: 2px solid #3b82f6 !important;
}

.table-border-bottom-info {
    border-bottom: 2px solid #50a5f1 !important;
}

.table-border-top-info {
    border-top: 2px solid #50a5f1 !important;
}

.progress-sm-custom {
    height: 6px;
    border-radius: 10px;
    background-color: #f1f3f7;
}

.progress-sm-custom .progress-bar {
    border-radius: 10px;
}

.font-size-11 { font-size: 11px !important; }
.font-size-12 { font-size: 12px !important; }
.font-size-13 { font-size: 13px !important; }

.text-line-height-1-5 { line-height: 1.5 !important; }

/* Icon & Avatar Utilities */
.mini-stat-icon {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}


.avatar-title-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar Styling */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Decorative Elements */
.decoration-circle-1 { 
    position: absolute; 
    top: -20px; 
    right: -20px; 
    width: 100px; 
    height: 100px; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 50% !important; 
    z-index: 0;
}

.decoration-circle-2 { 
    position: absolute; 
    bottom: -30px; 
    left: -10px; 
    width: 80px; 
    height: 80px; 
    background: rgba(255, 255, 255, 0.05); 
    border-radius: 50% !important; 
    z-index: 0;
}

/* List & Table Components */
.flag-rank { 
    width: 24px; 
    height: 24px; 
    background: #f1f5f9; 
    color: #475569; 
    border-radius: var(--br-subtle); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
    font-size: 0.7rem; 
}

.red-flag-item:last-child { border-bottom: none; }

#tbl_main thead th { border-bottom: 2px solid #f3f3f3; padding: 15px 10px; }
#tbl_main tbody td { padding: 12px 10px; border-bottom: 1px solid #f8f9fa; }
#tbl_main tbody td:first-child { padding-left: 24px; }

/* Avatars */
.avatar-md { 
    width: 52px; 
    height: 52px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.avatar-sm { 
    width: 42px; 
    height: 42px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* Modern Pills/Tabs with Scroll Support */
.nav-scroll-wrapper { 
    overflow-x: auto; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    width: 100%;
}
.nav-scroll-wrapper::-webkit-scrollbar { display: none; }
.modern-pills { 
    display: flex; 
    flex-wrap: nowrap; 
    background-color: #f8f9fa !important; 
    padding: 5px !important; 
    border: 1px solid #eee !important; 
    overflow: visible !important;
    min-width: max-content; /* Prevent squishing of nav items */
}
.modern-pills .nav-link { 
    padding: 10px 20px; 
    font-weight: 600; 
    color: #74788d; 
    transition: all 0.2s; 
    margin-right: 5px; 
    border-radius: var(--br-subtle) !important;
}

.modern-pills .nav-link.active { 
    background-color: white !important; 
    color: #34c38f !important; /* Success color */
    border: 1px solid #eee !important; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important; 
}

/* Select2 Rounded System (Keuangan Parity - Small Form) */
.kresna-dashboard-wrapper .select2-container--default .select2-selection--single {
    border-radius: 50rem !important;
    height: 32px !important; /* Compact height */
    padding: 2px 12px !important;
    border: 1px solid #e1e5eb !important;
    background-color: #fff !important;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.kresna-dashboard-wrapper .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.05) !important;
}

.kresna-dashboard-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    color: #475569 !important;
    font-size: 0.75rem !important; /* Smaller font */
    font-weight: 500 !important;
}

.kresna-dashboard-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    right: 10px !important;
}

.kresna-dashboard-wrapper .select2-dropdown {
    border-radius: 0.75rem !important; /* Slightly tighter radius */
    border: 1px solid #e1e5eb !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    overflow: hidden;
    margin-top: 3px;
}

.kresna-dashboard-wrapper .select2-results__option {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
}

.kresna-dashboard-wrapper .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6 !important;
}

/* ============================================================== */
/* KRESNA MODERN UI - NAVBAR & GLOBAL THEME                       */
/* ============================================================== */

:root {
    --kresna-primary: #3b82f6;
    --kresna-success: #10b981;
    --kresna-warning: #f59e0b;
    --kresna-danger: #ef4444;
    --kresna-dark: #1e293b;
    --kresna-light: #f8fafc;
    --kresna-glass: rgba(255, 255, 255, 0.8);
}

/* TOPBAR REDESIGN */
#page-topbar {
    background: var(--kresna-primary) !important;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    height: 70px;
    border: none !important;
    position: relative !important; /* Changed from fixed to relative */
    z-index: 1002;
}

.navbar-header {
    height: 70px !important;
}

.logo-lg h4 {
    font-weight: 850 !important;
    letter-spacing: -1px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.header-item {
    color: rgba(255, 255, 255, 0.9) !important;
    height: 70px !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.header-profile-user {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 2px;
}

/* SUB-NAVBAR (TOPNAV) */
.topnav {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 0 !important;
    position: relative !important; /* Changed from fixed to relative */
    top: 0 !important; /* Reset top offset */
    left: 0;
    right: 0;
    z-index: 1001 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    min-height: 55px;
    padding: 0;
}

.topnav .navbar-nav .nav-link {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    padding: 1.1rem 1.25rem !important;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topnav .navbar-nav .nav-link i {
    font-size: 1.1rem;
    opacity: 0.7;
}

.topnav .navbar-nav .nav-link:hover, 
.topnav .navbar-nav .nav-item.active .nav-link {
    color: var(--kresna-primary) !important;
    background: rgba(59, 130, 246, 0.03);
}

.topnav .navbar-nav .nav-link:hover i {
    opacity: 1;
    transform: translateY(-1px);
}

.topnav .navbar-nav .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 3px;
    background: var(--kresna-primary);
    border-radius: 10px 10px 0 0;
}

/* DROPDOWN MENU */
.topnav .dropdown-menu {
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 10px;
    min-width: 220px;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.topnav .dropdown-item {
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
    color: #64748b;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.topnav .dropdown-item:hover {
    background: var(--kresna-light);
    color: var(--kresna-primary);
    padding-left: 20px;
}

/* MOBILE UI OPTIMIZATION */
@media (max-width: 991.98px) {
    #page-topbar {
        height: 60px;
    }
    
    .navbar-header {
        height: 60px !important;
        padding: 0 15px !important;
    }

    .logo-lg h4 {
        font-size: 1.2rem;
    }

    #layout-wrapper .page-content.kresna-page-content {
        margin-top: 0 !important;
        padding-top: 75px !important; /* Adjust gap to navbar on mobile (60px header + 15px gap) */
    }

    .topnav {
        background: transparent !important;
        min-height: 0 !important;
        box-shadow: none !important;
        border: none !important;
        top: 60px !important;
        pointer-events: none; /* Let clicks pass through empty areas */
    }

    #topnav-menu-content {
        pointer-events: auto; /* Re-enable clicks for the menu */
        position: fixed;
        top: 60px;
        left: 15px;
        right: 15px;
        background: #fff;
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1001;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        border-radius: 16px;
        background: #f8fafc;
        border: none !important;
    }

    .navbar-nav .nav-link::after {
        display: none !important;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-item.active .nav-link {
        background: rgba(59, 130, 246, 0.1);
    }

    .navbar-nav .dropdown-menu {
        background: #f1f5f9;
        border-radius: 16px;
        margin-top: 5px;
        box-shadow: none;
        padding: 5px;
    }

    .navbar-nav .dropdown-item {
        padding: 12px 20px;
        background: transparent;
    }
}

/* ADDITIONAL PREMIUM TOUCHES */
#layout-wrapper .main-content {
    background: #f4f7fa;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Layout Default (Desktop) */
#layout-wrapper .page-content.kresna-page-content {
    margin-top: 0 !important;
    padding-top: 20px !important; /* Reduced padding because navbar is no longer fixed */
}

/* Versi Mobile */
@media (max-width: 767px) {
    #layout-wrapper .page-content.kresna-page-content {
        padding-top: 15px !important;
    }
}

/* Sticky topnav on scroll */
.topnav.sticky-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Progress Bar Animations */
@keyframes progress-fill {
    from { width: 0; }
}

.progress-animate .progress-bar {
    animation: progress-fill 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.progress-sm-custom {
    height: 6px !important;
    background-color: #f1f5f9 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

/* Card Anomaly Component */
.card-anomaly { cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent !important; }
.card-anomaly:hover { transform: translateY(-2px); filter: brightness(0.97); }
.icon-box-soft { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.text-muted-dark { color: #555; }

/* Anomaly Categories */
.card-anomaly-critical { background-color: #fff5f5 !important; border-left: 3px solid #f46a6a !important; }
.card-anomaly-warning { background-color: #fffbeb !important; border-left: 3px solid #f1b44c !important; }

/* DataTables Button Styling */
.dt-buttons { gap: 10px; display: flex; }
.btn-export { 
    padding: 6px 16px !important; 
    font-weight: 600 !important; 
    font-size: 0.85rem !important; 
    border: 1px solid transparent !important;
    transition: all 0.2s !important;
}
.btn-export-excel { background-color: #e8f5e9 !important; color: #2e7d32 !important; }
.btn-export-excel:hover { background-color: #2e7d32 !important; color: white !important; }
.btn-export-csv { background-color: #e3f2fd !important; color: #1565c0 !important; }
.btn-export-csv:hover { background-color: #1565c0 !important; color: white !important; }

/* Tab Dropdown Styling */
.custom-tabs-container .dropdown-menu { border-radius: var(--br-subtle); border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important; padding: 5px; }
.custom-tabs-container .dropdown-item { border-radius: var(--br-subtle); padding: 8px 15px; font-weight: 500; color: #74788d; transition: all 0.2s; }
.custom-tabs-container .dropdown-item:hover { background-color: #f8f9fa; color: #5b73e8; }
.custom-tabs-container .dropdown-item.active { background-color: #5b73e8; color: white; }

/* Table Fine-tuning */
.table-kresna thead th { border-bottom: 2px solid #f3f3f3 !important; padding: 8px 17px !important; }
.table-kresna tbody td { padding: 12px 10px !important; border-bottom: 1px solid #f8f9fa !important; }
.table-kresna tbody td:first-child { padding-left: 24px !important; }
.table-kresna tr:last-child td { border-bottom: none !important; }

/* Card Fullscreen Utility */
.card-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto;
    background: #f8f9fa !important;
    padding: 20px;
}

.card-fullscreen .card-body {
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.card-fullscreen .card-body div[id^="chart-"],
.card-fullscreen .card-body div[id="top-anomaly-list"] {
    height: 100% !important;
}

.btn-fullscreen {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    background: rgba(0,0,0,0.05);
    border: none;
    color: #74788d;
}

.btn-fullscreen:hover {
    background: rgba(0,0,0,0.1);
    color: #34c38f;
}

.card-fullscreen .btn-fullscreen i::before {
    content: "\f066"; /* fa-compress */
}

/* Premium Stat Cards */
.stat-card-premium {
    border-radius: 20px;
    border: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}


.stat-card-premium .card-body {
    padding: 1rem !important;
}

/* Ensure these match the avatar-sm and font classes from dashboard.php */
.stat-card-premium .avatar-sm {
    height: 2.5rem;
    width: 2.5rem;
}

.stat-card-premium .avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.stat-card-premium h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.progress-sm-custom {
    height: 18px;
    border-radius: 10px;
    background-color: #f1f3f5;
}

/* Global card spacing */
.card {
    margin-bottom: 15px !important;
}

/* Dashboard Design Tokens */
:root { --br-subtle: 1rem; }

.kresna-dashboard-wrapper .card, 
.kresna-dashboard-wrapper .btn, 
.kresna-dashboard-wrapper .badge, 
.kresna-dashboard-wrapper .avatar-title, 
.kresna-dashboard-wrapper .select2-selection { 
    border-radius: var(--br-subtle) !important; 
    box-shadow: none !important; 
}

/* Gradients */
.bg-gradient-primary { background: linear-gradient(135deg, #5b73e8 0%, #4458b8 100%); }
.bg-gradient-success { background: linear-gradient(135deg, #34c38f 0%, #2a9b71 100%); }
.bg-gradient-danger { background: linear-gradient(135deg, #f46a6a 0%, #d64444 100%); }
.bg-gradient-info { background: linear-gradient(135deg, #50a5f1 0%, #398edb 100%); }
.bg-white-20 { background: rgba(255, 255, 255, 0.2); }

/* Decoration Elements */
.decoration-circle-1 { position: absolute; top: -20px; right: -20px; width: 100px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 50% !important; z-index: 0; }
.decoration-circle-2 { position: absolute; bottom: -30px; left: -10px; width: 80px; height: 80px; background: rgba(255,255,255,0.05); border-radius: 50% !important; z-index: 0; }

/* Anomaly & Diagnostic Cards */
.card-anomaly { cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent !important; }
.card-anomaly:hover { transform: translateY(-2px); filter: brightness(0.97); }
.icon-box-soft { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.card-anomaly-critical { background-color: #fff5f5 !important; border-left: 3px solid #f46a6a !important; }
.card-anomaly-warning { background-color: #fffbeb !important; border-left: 3px solid #f1b44c !important; }
.text-danger { color: #f46a6a !important; }
.text-warning-dark { color: #af8905 !important; }

/* DataTable Export Buttons */
.dt-buttons { gap: 10px; display: flex; }
.btn-export { padding: 6px 16px !important; font-weight: 600 !important; font-size: 0.85rem !important; transition: all 0.2s !important; }
.btn-export-excel { background-color: #e8f5e9 !important; color: #2e7d32 !important; border: 1px solid #2e7d32 !important; }
.btn-export-excel:hover { background-color: #2e7d32 !important; color: white !important; }
.btn-export-csv { background-color: #e3f2fd !important; color: #1565c0 !important; border: 1px solid #1565c0 !important; }
.btn-export-csv:hover { background-color: #1565c0 !important; color: white !important; }

/* DataTable Column Filter */
.filter-input { width: 100%; padding: 5px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; }

/* Modern Tab Navigation */
.modern-pills { display: flex; flex-wrap: nowrap; overflow-x: auto; background-color: #f8f9fa !important; padding: 5px !important; }
.modern-pills .nav-link { padding: 8px 18px; white-space: nowrap; color: #74788d; font-weight: 600; font-size: 0.875rem; }
.modern-pills .nav-link.active { background-color: white !important; color: #5b73e8 !important; border: 1px solid #eee !important; }

/* DataTable Filtering System */
.filter-row th { padding: 5px 10px !important; background-color: #f8f9fa !important; border-top: 1px solid #eee !important; }
.column-search { border-radius: 5px; font-size: 10px !important; padding: 0.2rem 0.75rem; border: 1px solid #e1e1e1; background-color: #fff; transition: all 0.2s; font-weight: normal; width: 100%; }
.column-search:focus { border-color: #5b73e8; box-shadow: 0 0 0 0.2rem rgba(91, 115, 232, 0.1); outline: none; background-color: #fff; }
.table-kresna thead th { vertical-align: middle; }

/* Table Fine-tuning */
#tbl_main thead th { border-bottom: 2px solid #f3f3f3; padding: 15px 10px; }
#tbl_main tbody td { padding: 12px 10px; border-bottom: 1px solid #f8f9fa; }

/* Fullscreen Chart Support */
.card-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.card-fullscreen .card-body {
    height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
}
.btn-fullscreen {
    background: transparent;
    border: none;
    color: #adb5bd;
    padding: 0 5px;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-fullscreen:hover {
    color: #5b73e8;
    transform: scale(1.1);
}
.overflow-hidden {
    overflow: hidden !important;
}

/* Audit Table Header Styling */
#table-mutu-audit thead th, #table-mutu-volume thead th {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #eff2f7 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
/* Navigation Menu Styles */
.kresna-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0;
}

.nav-group-wrapper {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .nav-group-wrapper {
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    .kresna-nav-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    .kresna-nav-card {
        width: auto !important;
        min-height: 90px !important;
        padding: 0.75rem 0.25rem !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    .kresna-nav-card .nav-subtitle, 
    .kresna-nav-card .nav-arrow {
        display: none !important;
    }
    .kresna-nav-card .nav-icon-wrapper {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
        box-shadow: none !important;
    }
    .kresna-nav-card .nav-title {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }
}

.kresna-nav-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 10px !important;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    height: 100%;
    width: 140px;
}

.kresna-nav-card:hover {
    transform: translateY(-3px);
}

.kresna-nav-card .nav-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.kresna-nav-card:hover .nav-icon-wrapper {
    transform: scale(1.05);
}

.kresna-nav-card .nav-title {
    font-weight: 800;
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    white-space: normal !important;
    overflow-wrap: break-word;
    max-width: 100%;
}

.kresna-nav-card .nav-subtitle {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 500;
    line-height: 1.3;
}

.kresna-nav-card .nav-arrow {
    display: none !important;
}

/* ============================================================== */
/* MODULE: PETA DISTRIBUSI (KRESNA GEOSPATIAL)                    */
/* ============================================================== */

#map { height: 650px; width: 100%; border-radius: 20px; z-index: 1; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.custom-marker { background: #4361ee; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 15px rgba(67, 97, 238, 0.4); cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.custom-marker:hover { transform: scale(1.8) rotate(10deg); background: #3f37c9; z-index: 1000 !important; box-shadow: 0 0 25px rgba(67, 97, 238, 0.6); }
#map:focus, .leaflet-container:focus, .leaflet-interactive:focus, .leaflet-marker-icon:focus, .leaflet-marker-icon:active, path.leaflet-interactive:focus { outline: none !important; box-shadow: none !important; border: none !important; }
.leaflet-container { -webkit-tap-highlight-color: transparent; }

.sidebar-analytics { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-right: 1px solid rgba(0,0,0,0.05); height: 100%; }


.chart-box { min-height: 280px; width: 100%; margin-top: 15px; }

.premium-badge { padding: 6px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; text-uppercase: uppercase; letter-spacing: 0.5px; }

#map-loading { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 1000; border-radius: 20px; backdrop-filter: blur(4px); }

.floating-controls { position: absolute; top: 20px; right: 20px; z-index: 1000; background: rgba(255,255,255,0.9); padding: 10px 20px; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid #fff; }

.modal-prodi-scroll { max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4361ee #f1f1f1; }
.modal-prodi-scroll::-webkit-scrollbar { width: 5px; }
.modal-prodi-scroll::-webkit-scrollbar-track { background: #f8f9fa; }
.modal-prodi-scroll::-webkit-scrollbar-thumb { background: #4361ee; border-radius: 10px; }
.modal-prodi-scroll thead th { position: sticky; top: 0; z-index: 10; background: #f8f9fa !important; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05); }

.premium-filter-bar { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 15px; padding: 5px 15px; display: flex; align-items: center; transition: all 0.3s ease; }
.premium-filter-bar:focus-within { border-color: #4361ee; box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15); }
.premium-filter-bar .select2-container--default .select2-selection--single { border: none !important; background: transparent !important; }
.premium-filter-bar .select2-container { flex-grow: 1; }
#btnResetFilter:hover { transform: rotate(180deg); background: #4361ee !important; color: #fff !important; }

/* Custom Tab Navigation Styles (Sumber Daya Dosen) */
.custom-nav-pills .nav-link {
    color: #495057;
    background-color: transparent;
    font-weight: 600;
}
.custom-nav-pills .nav-link.active {
    color: #495057;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.nav-pills-bg {
    background-color: #f3f3f9;
    padding: 5px;
    border-radius: 50rem;
    display: inline-flex;
}



