/* Premium Filament UI/UX Stylesheet */

/* 1. Hide Desktop Topbar Collapse Button */
.fi-topbar-collapse-sidebar-btn-ctn {
    display: none !important;
}

/* 2. Glassmorphism Topbar */
.fi-topbar {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
}

.dark .fi-topbar {
    background-color: rgba(9, 9, 11, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(63, 63, 70, 0.4) !important;
}

/* 3. Premium Sidebar & Nav Item Styling */
.fi-sidebar {
    border-right: 1px solid rgba(229, 231, 235, 0.5) !important;
    background-color: rgba(249, 250, 251, 0.8) !important;
}

.dark .fi-sidebar {
    border-right: 1px solid rgba(63, 63, 70, 0.3) !important;
    background-color: rgba(9, 9, 11, 0.8) !important;
}

.fi-sidebar-item-btn {
    border-radius: 12px !important;
    margin: 2px 8px !important;
    padding: 10px 14px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover state */
.fi-sidebar-item-btn:hover {
    background-color: rgba(11, 59, 96, 0.08) !important;
    transform: translateX(4px);
}

.dark .fi-sidebar-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Active Item Style */
.fi-sidebar-item.fi-active .fi-sidebar-item-btn {
    background: linear-gradient(135deg, #0B3B60, #185280) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(11, 59, 96, 0.3) !important;
}

.fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #ffffff !important;
}

/* 4. Stats Overview Card & Widgets */
.fi-wi-stats-overview-stat-card {
    border-radius: 18px !important;
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 8px -1px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    background: #ffffff !important;
}

.dark .fi-wi-stats-overview-stat-card {
    background: rgba(24, 24, 27, 0.7) !important;
    border-color: rgba(63, 63, 70, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3) !important;
}

.fi-wi-stats-overview-stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px -8px rgba(11, 59, 96, 0.15) !important;
    border-color: rgba(11, 59, 96, 0.25) !important;
}

.dark .fi-wi-stats-overview-stat-card:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(11, 59, 96, 0.4) !important;
}

/* 5. Custom Sidebar Collapse Button Specific styles */
.fi-sidebar-custom-toggle-btn {
    display: flex;
    align-items: center;
    width: calc(100% - 16px) !important;
    margin: 8px !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: #4b5563 !important;
    cursor: pointer;
}

.dark .fi-sidebar-custom-toggle-btn {
    color: #a1a1aa !important;
}

.fi-sidebar-custom-toggle-btn:hover {
    background-color: rgba(11, 59, 96, 0.08) !important;
    color: #0b3b60 !important;
}

.dark .fi-sidebar-custom-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* Custom ID Badge Card for Employees */
.knmp-badge-card {
    background: linear-gradient(135deg, #092e4b 0%, #154c75 100%);
    box-shadow: 0 8px 30px rgba(11, 59, 96, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.knmp-badge-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.knmp-badge-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Neon Digital Clock Widget */
.digital-clock-container {
    background: linear-gradient(145deg, #090e14, #121c27);
    border: 1px solid rgba(11, 59, 96, 0.4);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(11, 59, 96, 0.15);
    border-radius: 16px;
    padding: 18px 24px;
    display: inline-block;
    min-width: 220px;
}

.neon-time {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
    font-family: 'Courier New', Courier, monospace;
}

/* Modern Pulse Animation for Check-In */
@keyframes soft-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-masuk-pulse {
    animation: soft-pulse 2s infinite;
}

/* Smooth Transition for Collapsed Sidebar */
.fi-sidebar-item-label {
    transition: opacity 0.2s ease-in-out !important;
}

/* ===== Layout Utama ===== */
.absensi-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

/* ===== Card Wrapper ===== */
.absensi-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(11, 59, 96, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark .absensi-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.absensi-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.dark .absensi-card-header {
    border-bottom-color: #334155;
    background: #1a2535;
}

.absensi-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* ===== Futuristic Digital Clock ===== */
.clock-box-futuristic {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 15px rgba(6, 182, 212, 0.15);
    border-radius: 16px;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.clock-time {
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #06b6d4;
    /* Neon cyan */
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6), 0 0 18px rgba(6, 182, 212, 0.2);
    letter-spacing: 0.05em;
    line-height: 1;
    display: flex;
    align-items: center;
}

.clock-colon {
    animation: colon-blink 1s infinite;
    color: #06b6d4;
    margin: 0 2px;
}

.clock-colon-sec {
    animation: colon-blink 1s infinite;
    color: rgba(6, 182, 212, 0.6);
    margin: 0 2px;
}

@keyframes colon-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.15;
    }
}

.seconds-neon {
    font-size: 1.8rem;
    color: #22d3ee;
    align-self: flex-end;
    padding-bottom: 2px;
}

.clock-icon-pulse {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot-cyan {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #06b6d4;
    box-shadow: 0 0 8px #06b6d4, 0 0 16px #06b6d4;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* ===== Jam Masuk / Pulang ===== */
.jam-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.dark .jam-grid {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 0.4);
}

.jam-cell {
    padding: 14px 8px;
    text-align: center;
}

.jam-cell:first-child {
    border-right: 1px solid #e2e8f0;
}

.dark .jam-cell:first-child {
    border-right-color: rgba(71, 85, 105, 0.4);
}

.jam-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 4px;
}

.jam-value {
    font-family: ui-monospace, monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== Textarea ===== */
.absensi-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: #374151;
    background: #ffffff;
    resize: none;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.dark .absensi-textarea {
    background: #0f172a;
    border-color: #475569;
    color: #e2e8f0;
}

.absensi-textarea::placeholder {
    color: #9ca3af;
}

.absensi-textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

/* ===== Tombol Absen ===== */
.btn-absen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    color: white;
    box-sizing: border-box;
}

.btn-absen:active {
    transform: scale(0.98);
}

.btn-masuk {
    background: linear-gradient(135deg, #10b981, #0d9488);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-masuk:hover {
    background: linear-gradient(135deg, #059669, #0f766e);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-pulang {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}

.btn-pulang:hover {
    background: linear-gradient(135deg, #e11d48, #be123c);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.4);
}

/* ===== Warn Box ===== */
.warn-box {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 12px;
    padding: 16px;
}

.dark .warn-box {
    background: rgba(120, 53, 15, 0.15);
    border-color: rgba(180, 83, 9, 0.3);
}

.warn-btn-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}

/* ===== Selesai ===== */
.selesai-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
    font-weight: 600;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.dark .selesai-badge {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* ===== GPS Bar ===== */
.gps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #94a3b8;
    padding-top: 4px;
}

.gps-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0ea5e9;
    animation: gps-blink 2s infinite;
    flex-shrink: 0;
}

@keyframes gps-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ===== Holographic KNMP ID Card ===== */
.knmp-card-holographic {
    background: linear-gradient(135deg, #0a1e36 0%, #0d2a4a 45%, #05101f 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.knmp-card-holographic:hover {
    transform: translateY(-5px) rotateX(3deg) rotateY(-3deg);
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.15), 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(6, 182, 212, 0.4);
}

.knmp-card-holographic::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.02) 30%,
            rgba(255, 255, 255, 0.07) 45%,
            rgba(6, 182, 212, 0.12) 50%,
            rgba(255, 255, 255, 0.07) 55%,
            rgba(255, 255, 255, 0.02) 70%,
            rgba(255, 255, 255, 0) 100%);
    transition: all 0.5s ease;
    pointer-events: none;
    transform: rotate(-10deg);
}

.knmp-card-holographic:hover::before {
    top: -50%;
    left: -50%;
    transition: all 0.8s ease;
}

.knmp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 14px;
    margin-bottom: 4px;
}

.knmp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.knmp-logo-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.knmp-brand-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
}

.knmp-badge-aktif {
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-size: 10px;
    font-weight: 700;
    border-radius: 99px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    letter-spacing: 0.08em;
}

.knmp-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 0;
}

.knmp-qr-wrapper {
    background: white;
    border-radius: 14px;
    padding: 12px;
    width: 164px;
    height: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.knmp-qr-wrapper:hover {
    transform: scale(1.04);
}

.knmp-nip-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 600;
    margin-bottom: 3px;
    text-align: center;
}

.knmp-nip-value {
    font-family: ui-monospace, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 0.05em;
    text-align: center;
}

.knmp-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.knmp-field-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
}

.knmp-field-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.knmp-field-role {
    font-size: 12px;
    font-weight: 500;
    color: #7dd3fc;
    text-align: right;
}

/* ===== Leaflet Map Styling ===== */
#map-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.dark #map-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   ADMIN DASHBOARD PREMIUM STYLING (MATCHING ABSENSI SAYA THEME)
   ========================================================================== */

/* 1. Dashboard Banner / Header Widget */
.dashboard-banner {
    background: linear-gradient(135deg, #0B3B60 0%, #114674 50%, #185280 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 24px 30px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(11, 59, 96, 0.25), 0 8px 10px -6px rgba(11, 59, 96, 0.15);
    margin-bottom: 0.5rem;
}

.dashboard-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.banner-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.banner-greeting h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: #ffffff;
}

.banner-greeting p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    line-height: 1.45;
}

.banner-clock-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    .banner-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-clock-section {
        align-items: flex-start;
        width: 100%;
    }
}

.banner-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.banner-icon {
    width: 16px;
    height: 16px;
    color: #38bdf8;
}

.banner-clock-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 12px;
    padding: 8px 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

#dashboard-clock {
    font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
    font-size: 1.85rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.08em;
    line-height: 1;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

/* 2. Premium Stat Cards (StatistikHariIniWidget) */
.stat-card-premium {
    border-radius: 18px !important;
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 2px 8px -1px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    background: #ffffff !important;
    position: relative;
}

.dark .stat-card-premium {
    background: rgba(24, 24, 27, 0.75) !important;
    border-color: rgba(63, 63, 70, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3) !important;
}

.stat-card-premium:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px -8px rgba(11, 59, 96, 0.15) !important;
    border-color: rgba(11, 59, 96, 0.25) !important;
}

.dark .stat-card-premium:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(11, 59, 96, 0.4) !important;
}

/* Top Border Color Accent Bars */
.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: height 0.25s ease;
}

.stat-total-pegawai::before {
    background: linear-gradient(90deg, #0B3B60, #185280);
}

.stat-kehadiran::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stat-izin::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-tingkat-kehadiran::before {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.stat-card-premium:hover::before {
    height: 6px;
}

/* Value & Label Typography */
.stat-card-premium dt,
.stat-card-premium dd,
.stat-card-premium .fi-wi-stats-overview-stat-value,
.stat-card-premium [class*="stat-value"] {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2.1rem !important;
    letter-spacing: -0.03em !important;
    margin-top: 4px;
}

.stat-card-premium .fi-wi-stats-overview-stat-label,
.stat-card-premium [class*="stat-label"] {
    font-weight: 650 !important;
    font-size: 0.875rem !important;
    color: #4b5563 !important;
}

.dark .stat-card-premium .fi-wi-stats-overview-stat-label,
.dark .stat-card-premium [class*="stat-label"] {
    color: #a1a1aa !important;
}

.stat-card-premium .fi-wi-stats-overview-stat-description,
.stat-card-premium [class*="stat-description"] {
    font-size: 0.775rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
}

.dark .stat-card-premium .fi-wi-stats-overview-stat-description,
.dark .stat-card-premium [class*="stat-description"] {
    color: #94a3b8 !important;
}

/* 3. Chart Card Styling (GrafikKehadiranWidget) */
.fi-wi-widget.fi-wi-chart-card,
.fi-wi-chart-card,
section.fi-wi-widget {
    border-radius: 18px !important;
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03) !important;
    background: #ffffff !important;
    transition: all 0.35s ease !important;
    overflow: hidden !important;
}

.dark .fi-wi-widget.fi-wi-chart-card,
.dark .fi-wi-chart-card,
.dark section.fi-wi-widget {
    background: rgba(24, 24, 27, 0.75) !important;
    border-color: rgba(63, 63, 70, 0.5) !important;
}

.fi-wi-widget.fi-wi-chart-card:hover,
.fi-wi-chart-card:hover,
section.fi-wi-widget:hover {
    box-shadow: 0 12px 24px -8px rgba(11, 59, 96, 0.12) !important;
    border-color: rgba(11, 59, 96, 0.2) !important;
}

.fi-wi-chart-card .fi-section-header-title,
.fi-wi-chart-card h3,
section.fi-wi-widget .fi-section-header-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    color: #0B3B60 !important;
    font-size: 1.05rem !important;
}

.dark .fi-wi-chart-card .fi-section-header-title,
.dark .fi-wi-chart-card h3,
.dark section.fi-wi-widget .fi-section-header-title {
    color: #ffffff !important;
}

/* 4. Table Card Styling (AbsensiTerbaruWidget) */
.fi-wi-widget.fi-ta-ctn,
.fi-ta-ctn,
.fi-wi-table {
    border-radius: 18px !important;
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03) !important;
    background: #ffffff !important;
    transition: all 0.35s ease !important;
}

/* Override overflow for tables without header to allow filter dropdowns to show */
.fi-ta-ctn:not(.fi-ta-ctn-with-header) {
    overflow: visible !important;
}

/* Ensure filter dropdowns can extend beyond the table container */
.fi-ta-filters-before-content-ctn,
.fi-ta-filters-after-content-ctn {
    overflow: visible !important;
}

.dark .fi-wi-widget.fi-ta-ctn,
.dark .fi-ta-ctn,
.dark .fi-wi-table {
    background: rgba(24, 24, 27, 0.75) !important;
    border-color: rgba(63, 63, 70, 0.5) !important;
}

.fi-wi-widget.fi-ta-ctn:hover,
.fi-ta-ctn:hover,
.fi-wi-table:hover {
    box-shadow: 0 12px 24px -8px rgba(11, 59, 96, 0.12) !important;
    border-color: rgba(11, 59, 96, 0.2) !important;
}

.fi-ta-header-cell {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #475569 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 14px 16px !important;
    border-bottom: 2px solid #edf2f7 !important;
}

.dark .fi-ta-header-cell {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border-bottom: 2px solid #334155 !important;
}

.fi-ta-row {
    transition: background-color 0.2s ease !important;
}

.fi-ta-row:hover {
    background-color: rgba(11, 59, 96, 0.02) !important;
}

.dark .fi-ta-row:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.fi-ta-cell {
    padding: 14px 16px !important;
}

/* ===== Modern Leaflet Styling ===== */

/* Pulsing blue marker for employee location */
.pegawai-pulse-marker {
    width: 14px;
    height: 14px;
    background: #0ea5e9; /* Sky blue */
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.8);
    position: relative;
    top: 3px;
    left: 3px;
}

.pegawai-pulse-marker::after {
    content: '';
    width: 32px;
    height: 32px;
    background: rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    position: absolute;
    top: -11.5px;
    left: -11.5px;
    animation: map-pulse 2s infinite ease-out;
    pointer-events: none;
}

@keyframes map-pulse {
    0% {
        transform: scale(0.4);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Office building circular badge marker */
.kantor-modern-marker {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0b3b60 0%, #154c75 100%);
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(11, 59, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.kantor-modern-marker:hover {
    transform: scale(1.1);
}

.dark .kantor-modern-marker {
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism styles for Leaflet Popup */
.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.8rem !important;
}

.dark .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(51, 65, 85, 0.8) !important;
    color: #f1f5f9 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-left: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.dark .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.85) !important;
    border-left-color: rgba(51, 65, 85, 0.8) !important;
    border-bottom-color: rgba(51, 65, 85, 0.8) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #64748b !important;
    padding: 8px 8px 0 0 !important;
}

.dark .leaflet-container a.leaflet-popup-close-button {
    color: #94a3b8 !important;
}