/* ====================================================================
PROJECT: HEALTH DASHBOARD MONITORING
FILE: style.css
AUTHOR: Blanter Media x Cahaya Inti Sejahtera
==================================================================== 
*/

/* ====================================================================
THEME CONFIGURATION - LIGHT MODE & DARK MODE
FILE: style-theme.css
DESCRIPTION: CSS variables untuk light/dark mode switching
==================================================================== */

/* DEFAULT: LIGHT MODE */
:root {
    /* ========== BACKGROUND COLORS ========== */
    --bg-primary: #ffffff;
    --bg-secondary: #e0f2fe;
    --bg-tertiary: #ecf9ff;
    --bg-hover: #d4ebf7;
    --bg-boxed: #f0faff;
    
    /* ========== SIDEBAR & HEADER ========== */
    --sidebar-bg: #f0faff;
    --sidebar-header-bg: #e3f2fd;
    --sidebar-border: rgba(59, 130, 246, 0.15);
    --header-bg: #f0faff;
    --header-border: rgba(59, 130, 246, 0.1);
    --navbar-bg: #f0faff;
    --navbar-shadow: rgba(59, 130, 246, 0.1);
    
    /* ========== TEXT COLORS ========== */
    --text-primary: #0c3d66;
    --text-secondary: #1e5a8e;
    --text-tertiary: #4a7ba7;
    --text-light: #7a9ec4;
    --text-lighter: #a0b8d1;
    
    /* ========== CARDS ========== */
    --card-bg: #f0faff;
    --card-border: rgba(59, 130, 246, 0.12);
    --card-hover-bg: #e8f4fa;
    
    /* ========== ACCENT COLORS ========== */
    --primary-color: #3b82f6;
    --primary-light: #bfdbfe;
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger-color: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    
    /* ========== BORDER COLORS ========== */
    --border-light: rgba(59, 130, 246, 0.08);
    --border-medium: rgba(59, 130, 246, 0.15);
    --border-dark: rgba(59, 130, 246, 0.3);
    
    /* ========== FORM ELEMENTS ========== */
    --input-bg: #f6fcff;
    --input-border: rgba(59, 130, 246, 0.15);
    --input-border-focus: #3b82f6;
    --input-text: #0c3d66;
    --input-placeholder: #7a9ec4;
    
    /* ========== STATUS BADGE ========== */
    --badge-success-bg: rgba(16, 185, 129, 0.1);
    --badge-success-text: #059669;
    --badge-warning-bg: rgba(245, 158, 11, 0.1);
    --badge-warning-text: #d97706;
    --badge-danger-bg: rgba(239, 68, 68, 0.1);
    --badge-danger-text: #dc2626;
}

/* =================================================================
   Select2 Integration Styles
   Make Select2 look like the native form controls and follow theme
================================================================= */

/* Base container to behave like form-control */
.select2-container {
    width: 100% !important;
    font-family: inherit;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    padding: 0.5rem 0.75rem;
    min-height: 2.35rem;
    border-radius: 0.375rem;
    box-shadow: none;
    display: flex;
    align-items: center;
}
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--input-bg);
}

/* =================================================================
   Input Group Text - Light & Dark Mode
   Ensure .input-group-text matches theme and is readable in dark mode
================================================================= */
.input-group-text {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
}

.dark-mode .input-group-text {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: var(--border-medium);
    color: #e6f2ff;
}

.input-group-text i {
    color: inherit;
}

.select2-container .select2-selection__rendered {
    color: var(--input-text);
    line-height: 1.25rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0; /* align text with native inputs */
}

.select2-container .select2-selection__placeholder {
    color: var(--input-placeholder);
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: auto;
    right: 0.5rem;
    color: var(--input-text);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height:35px!important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 0;
    margin: 0 0.25rem 0.25rem 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* Dropdown panel */
.select2-container .select2-dropdown {
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    box-shadow: 0 6px 20px rgba(2,6,23,0.12);
    color: var(--input-text);
}

.select2-container .select2-results__option {
    color: var(--input-text);
    padding: 0.5rem 0.75rem;
}

.select2-container .select2-results__option--selected,
.select2-container .select2-results__option--highlighted {
    background: var(--bg-hover);
    color: var(--input-text);
}

/* Focus state: mimic native input focus */
.select2-container--open .select2-selection--single,
.select2-container .select2-selection--single:focus,
.select2-container .select2-selection--multiple:focus {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
    outline: none;
}

/* Small screens: ensure padding and touch targets */
@media (max-width: 576px) {
    .select2-container .select2-selection--single,
    .select2-container .select2-selection--multiple {
        padding: 0.5rem;
    }
}

/* Dark mode adjustments (variables already defined under body.dark-mode) */
/* Additional tweaks so Select2 dropdown uses darker shadows in dark mode */
body.dark-mode .select2-container .select2-dropdown {
    box-shadow: 0 6px 20px rgba(2,6,23,0.6);
}


/* ===== DARK MODE (Override) ===== */
body.dark-mode {
    /* ========== BACKGROUND COLORS ========== */
    --bg-primary: #0a1628;
    --bg-secondary: #0d1b2e;
    --bg-tertiary: #1e293b;
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    /* ========== SIDEBAR & HEADER ========== */
    --sidebar-bg: #0d1b2e;
    --sidebar-header-bg: #0f1e33;
    --sidebar-border: rgba(255, 255, 255, 0.05);
    --header-bg: #0d1b2e;
    --header-border: rgba(255, 255, 255, 0.05);
    --navbar-bg: #0d1b2e;
    --navbar-shadow: rgba(0, 0, 0, 0.3);
    
    /* ========== TEXT COLORS ========== */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-light: #64748b;
    --text-lighter: #475569;
    
    /* ========== CARDS ========== */
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.05);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    
    /* ========== ACCENT COLORS ========== */
    --primary-color: #00d4ff;
    --primary-light: rgba(0, 212, 255, 0.15);
    --primary-dark: #0099cc;
    --secondary-color: #00d4ff;
    --success-color: #00ff88;
    --success-light: rgba(0, 255, 136, 0.15);
    --warning-color: #ffaa00;
    --warning-light: rgba(255, 170, 0, 0.15);
    --danger-color: #ff6b9d;
    --danger-light: rgba(255, 107, 157, 0.15);
    
    /* ========== BORDER COLORS ========== */
    --border-light: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.2);
    
    /* ========== FORM ELEMENTS ========== */
    --input-bg: #0e1e34;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-border-focus: #00d4ff;
    --input-text: #ffffff;
    --input-placeholder: #475569;
    
    /* ========== STATUS BADGE ========== */
    --badge-success-bg: rgba(0, 255, 136, 0.15);
    --badge-success-text: #00ff88;
    --badge-warning-bg: rgba(255, 170, 0, 0.15);
    --badge-warning-text: #ffaa00;
    --badge-danger-bg: rgba(255, 107, 157, 0.15);
    --badge-danger-text: #ff6b9d;
}

/* Smooth transition untuk theme change */
body,
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


/* =================================================================
1. GLOBAL RESET & BASE STYLES
(Digunakan di seluruh halaman)
================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    display: flex; /* Kunci layout sidebar */
    overflow-x: hidden;
}

/* Container Utama */
.container {
    padding: clamp(1.25rem, 3vw, 1.875rem);
    max-width: 1600px; /* Lebar maksimal disesuaikan agar muat dashboard lebar */
    margin: 0 auto;
}

/* =================================================================
2. SHARED COMPONENTS (HEADER & NAVIGATION)
(Komponen ini muncul di Dashboard & Halaman Input)
================================================================= */

/* --- Header Section --- */
.header {
    background: #0d1b2e;
    padding: 1.25rem 1.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; /* Sticky agar header tetap di atas saat scroll */
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
}

.logo {
    width: 2.1875rem;
    height: 2.1875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.header-title {
    font-size: clamp(1rem, 2.5vw, 1.375rem);
    font-weight: 600;
    line-height: 1.2;
}

.header-right {
    display: flex;
    gap: 1.5625rem;
    align-items: center;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size:0.9rem;
}

/* =========================================
   SIDEBAR & LAYOUT STYLES (NEW)
   ========================================= */

/* Reset & Base */
body {
    display: flex; /* Kunci layout sidebar */
    overflow-x: hidden;
    background: #0a1628;
}

/* 1. SIDEBAR CONTAINER */
.sidebar {
    width: 260px;
    height: 100vh;
    background: #0d1b2e;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}

/* Sidebar Header (Logo) */
.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #0f1e33;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-left: 10px;
}
.logo-text span { color: #00d4ff; }

/* Sidebar Menu Area (Scrollable) */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Custom Scrollbar untuk Sidebar */
.sidebar-menu::-webkit-scrollbar { width: 5px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
.sidebar-menu::-webkit-scrollbar-track { background: transparent; }

/* Menu List Styling */
.sidebar-menu ul { list-style: none; padding: 0; margin: 0; }

.menu-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    padding: 1.5rem 1.5rem 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
}

.sidebar-menu li a.active {
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    color: #00d4ff;
    border-left-color: #00d4ff;
    font-weight:500;
}

.sidebar-menu li a i { width: 25px; font-size: 1.1rem; text-align: center; margin-right: 10px; }

/* Dropdown Styling */
.dropdown-toggle { justify-content: space-between; cursor: pointer; }
.dropdown-toggle .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
    margin-left: auto;
    width: auto;
}

/* Rotasi panah saat aktif */
.has-dropdown.active .arrow { transform: rotate(90deg); }

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #0a1525; /* Lebih gelap untuk submenu */
}

.has-dropdown.active .submenu {
    max-height: 500px; /* Nilai cukup besar untuk menampung isi */
    transition: max-height 0.5s ease-in;
    overflow-y:scroll;
}

.submenu li a {
    padding-left: 3.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* 2. MAIN CONTENT WRAPPER */
.main-content {
    flex: 1;
    margin-left: 260px; /* Memberi ruang untuk sidebar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
    width: calc(100% - 260px);
}

/* Top Navbar (Hamburger & Profile) */
.top-navbar {
    height: 70px;
    background: #0d1b2e;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    justify-content: flex-end;
}

.toggle-btn {
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: none; /* Default hidden di desktop */
}

.top-navbar-right { display: flex; align-items: center; gap: 1.5rem; }

.user-profile { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.user-profile img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid #00d4ff; }

/* Content Padding */
.content-wrapper { padding: 2rem; }

/* 3. RESPONSIVE (MOBILE) */
@media (max-width: 992px) {
    /* Sidebar sembunyi di kiri */
    .sidebar { transform: translateX(-100%); }
    
    /* Content full width */
    .main-content { margin-left: 0; width: 100%; }
    
    /* Munculkan tombol hamburger */
    .toggle-btn { display: block; }
    
    /* State: Ketika Sidebar Aktif di Mobile */
    .sidebar.mobile-active { transform: translateX(0); }
    
    /* Overlay Gelap */
    .sidebar-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 999;
        display: none; backdrop-filter: blur(2px);
    }
    .sidebar-overlay.show { display: block; }
}

/* =================================================================
3. DASHBOARD SPECIFIC STYLES
(Hanya digunakan untuk tampilan Statistik & Grafik)
================================================================= */

/* --- Stats Grid (Kartu Atas) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: clamp(0.9375rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.25rem, 3vw, 1.875rem);
}

.stat-card {
    background: #1e293b;
    padding: clamp(1.25rem, 2.5vw, 1.5625rem);
    border-radius: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-0.3125rem);
    border-color: rgba(255,255,255,0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 0.9375rem);
    margin-bottom: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-icon {
    width: clamp(2.5rem, 5vw, 3.125rem);
    height: clamp(2.5rem, 5vw, 3.125rem);
    border-radius: clamp(0.5rem, 1.5vw, 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    flex-shrink: 0;
}

/* Warna Icon Dashboard */
.icon-blue { background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%); }
.icon-green { background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%); }
.icon-orange { background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%); }
.icon-purple { background: linear-gradient(135deg, #aa88ff 0%, #8866ff 100%); }
.icon-red { background: linear-gradient(135deg, #ff6b9d 0%, #ff4081 100%); }

.stat-value {
    font-size: clamp(1.5rem, 3.5vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.3125rem;
    line-height: 1.2;
}

.stat-label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.stat-change {
    font-size: clamp(0.6875rem, 1.3vw, 0.8125rem);
    color: #00ff88;
}

/* --- Charts Grid (Grafik Bawah) --- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: clamp(0.9375rem, 2vw, 1.25rem);
}

.chart-card {
    background: #1e293b;
    padding: clamp(1.25rem, 2.5vw, 1.5625rem);
    border-radius: clamp(0.75rem, 1.5vw, 1rem);
    border: 1px solid rgba(255,255,255,0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.9375rem, 2vw, 1.25rem);
    flex-wrap: wrap;
    gap: 0.625rem;
}

.chart-title {
    font-size: clamp(0.875rem, 1.8vw, 1rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    line-height: 1.3;
}

.chart-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(0,212,255,0.2);
    border-radius: 0.375rem;
    font-size: clamp(0.6875rem, 1.3vw, 0.75rem);
    color: #00d4ff;
    white-space: nowrap;
}

.chart-container {
    position: relative;
    height: clamp(16rem, 40vw, 20rem);
}

/* =================================================================
4. FORM FRAMEWORK / UI KIT
(Digunakan khusus untuk halaman Input Data)
================================================================= */

/* --- Form Layout Components --- */
.form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.form-header h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.form-header p { color: #94a3b8; font-size: 0.9rem; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-grid-full { grid-column: 1 / -1; } /* Span full width */

.form-group { margin-bottom: 0.5rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

.required { color: var(--danger-color); margin-left: 2px; }

/* --- Profile Photo Section --- */
.profile-photo-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.photo-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

body.dark-mode .profile-photo-img {
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.profile-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--primary-light);
    border: 4px dashed var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-wrapper label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.file-input-wrapper label:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

body.dark-mode .file-input-wrapper label:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.photo-info {
    grid-column: 1 / -1;
    padding: 1rem;
    background: var(--success-light);
    border-left: 4px solid var(--success-color);
    border-radius: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

body.dark-mode .photo-info {
    background: rgba(0, 255, 136, 0.08);
    border-left-color: var(--success-color);
}

@media (max-width: 768px) {
    .profile-photo-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .photo-display {
        margin-bottom: 1rem;
    }

    .profile-photo-img,
    .profile-photo-placeholder {
        width: 140px;
        height: 140px;
        font-size: 3rem;
    }

    .photo-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .photo-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* --- Input Fields (Text, Date, Number, Select) --- */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0e1e34;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    background: #132036;
}

.form-control::placeholder { color: #475569; }

/* Override khusus untuk Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Override khusus untuk Select (Custom Arrow) */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}
select.form-control option { background: #1e293b; color: white; }

/* =================================================================
   SELECT2 Styles (Theme-driven)
   Use CSS variables so Select2 matches both light and dark themes
================================================================= */

/* Base single/multiple selection appearance */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    height: 45px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    color: var(--input-text);
    display: flex;
    align-items: center;
    padding: 0 .5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--input-text);
    padding-left: 0.5rem;
    line-height: normal;
}

.select2-container--default .select2-selection__placeholder {
    color: var(--input-placeholder);
}

/* Arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--input-text);
}
.select2-container--default .select2-selection--single .select2-selection__arrow b { display:none; }

/* Open / focus state */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--multiple:focus {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* Dropdown / result list */
.select2-dropdown {
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    z-index: 9999;
    border-radius: 0.5rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
}

/* Highlighted option uses primary accent for clear affordance */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary-color);
    color: #000; /* good contrast on accent */
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(0,0,0,0.06);
}

/* Dark mode tweaks rely on variables set under body.dark-mode */
body.dark-mode .select2-dropdown { box-shadow: 0 6px 20px rgba(2,6,23,0.6); }


.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: #445055;
    text-align: center;
    white-space: nowrap;
    background-color: #e3f2fd;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Border radius logic */
.input-group > .form-control, 
.input-group > .input-group-text {
    border-radius: 0;
}
.input-group > :first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }
.input-group > :last-child { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* Error State */
.form-control.is-invalid {
    border-color: #ff4757;
    background-image: url("data:image/svg+xml,..."); /* Opsional: ikon silang */
    padding-right: 2.5rem;
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.25);
}
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8em;
    color: #ff4757;
}

/* Success State */
.form-control.is-valid {
    border-color: #2ed573;
}
.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.25);
}
.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8em;
    color: #2ed573;
}

/* --- File Upload Component --- */
.file-upload-wrapper {
    position: relative;
    height: 150px;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s;
    overflow: hidden;
}

.file-upload-wrapper:hover { border-color: #00d4ff; background: rgba(0, 212, 255, 0.05); }

.file-upload-input {
    position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2;
}

.file-upload-content {
    text-align: center; color: #94a3b8; pointer-events: none;
}

.file-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }

/* --- Checkbox & Radio Custom Style --- */
.check-group {
    display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: 0.5rem;
}

.custom-control {
    display: inline-flex; align-items: center; cursor: pointer; position: relative; padding-left: 2rem;
    font-size: 0.95rem; color: #cbd5e1;
}

.custom-control input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

/* Kotak/Lingkaran dasar */
.checkmark {
    position: absolute; top: 0; left: 0; height: 1.25rem; width: 1.25rem;
    background-color: #0f172a; border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

/* Bentuk khusus Checkbox & Radio */
.custom-checkbox .checkmark { border-radius: 4px; }
.custom-radio .checkmark { border-radius: 50%; }

/* Hover & Checked States */
.custom-control:hover input ~ .checkmark { border-color: #00d4ff; }
.custom-control input:checked ~ .checkmark { background-color: #00d4ff; border-color: #00d4ff; }

/* Icon penanda (Centang / Titik) */
.custom-control .checkmark:after { content: ""; position: absolute; display: none; }
.custom-control input:checked ~ .checkmark:after { display: block; }

/* Styling Centang Checkbox */
.custom-checkbox .checkmark:after {
    left: 7px; top: 3px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Styling Titik Radio */
.custom-radio .checkmark:after {
    top: 6px; left: 6px; width: 8px; height: 8px;
    border-radius: 50%; background: white;
}

/* --- Toggle Switch Component --- */
.switch-wrapper { display: flex; align-items: center; gap: 1rem; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #334155; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
    background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: #3b83f6; }
input:checked + .slider:before { transform: translateX(24px); }

/* --- Helper Text & Validation --- */
.form-text { font-size: 0.75rem; color: #64748b; margin-top: 0.25rem; }
.form-text.error { color: #ff6b9d; display: flex; align-items: center; gap: 0.25rem; }

/* --- Buttons (Reusable) --- */
.form-actions {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; gap: 1rem; justify-content: flex-end;
}

.btn {
    padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.3s; border: none; display: inline-flex; align-items: center; gap: 0.5rem;
    text-decoration: none;justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }

.btn-secondary {
    background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #cbd5e1;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: #fff; color: #fff; }

/* =================================================================
6. CHART SPECIFIC UTILITIES (Tambahan Baru)
================================================================= */

/* Helper untuk chart berbentuk lingkaran agar tidak terlalu besar/gepeng */
.chart-container.square {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 400px;
    margin: 0 auto; /* Tengah */
}

/* Helper untuk chart yang butuh area sangat lebar (misal Horizontal Bar panjang) */
.chart-card.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    /* Reset full width di mobile agar tidak merusak layout */
    .chart-card.full-width {
        grid-column: auto;
    }
}

/* =================================================================
   7. DATA TABLES & COMPONENTS (Tambahan Baru)
   ================================================================= */

/* --- Responsive Table --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap; /* Mencegah teks turun baris di kolom sempit */
    font-size: 0.9rem;
}

.custom-table th {
    background: #0f172a;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 2px solid rgba(255,255,255,0.05);
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #e2e8f0;
}

.custom-table tbody tr {
    transition: background 0.2s;
}

.custom-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Status Badges (Pill shape) */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }
.badge-primary { background: rgba(0, 60, 255, 0.15); color: #2d52e8; border: 1px solid rgba(0, 128, 255, 0.2); }
.badge-warning { background: rgba(255, 170, 0, 0.15); color: #ffaa00; border: 1px solid rgba(255, 170, 0, 0.2); }
.badge-danger  { background: rgba(255, 107, 157, 0.15); color: #ff6b9d; border: 1px solid rgba(255, 107, 157, 0.2); }
.badge-info    { background: rgba(0, 212, 255, 0.15); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.2); }

/* Table Actions */
.action-btn {
    padding: 0.4rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    transition: all 0.2s;
    margin-right: 0.25rem;
}

.action-btn:hover { background: #00d4ff; color: #fff; }
.action-btn.delete:hover { background: #ff6b9d; color: #fff; }

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.page-link:hover, .page-link.active {
    background: #00d4ff;
    color: #fff;
    border-color: #00d4ff;
}

/* --- Alerts --- */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.alert-success { background: rgba(0, 255, 136, 0.1); border-color: #00ff88; color: #00ff88; }
.alert-warning { background: rgba(255, 170, 0, 0.1); border-color: #ffaa00; color: #ffaa00; }
.alert-danger  { background: rgba(255, 107, 157, 0.1); border-color: #ff6b9d; color: #ff6b9d; }

/* =========================================
   8. NEW FEATURES (Breadcrumb, Filter, Modal)
   ========================================= */

/* --- Breadcrumbs --- */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #475569;
}

.breadcrumb-item a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #cbd5e1; cursor: default; }

/* --- Advanced Filter Panel --- */
.filter-card {
    background: rgba(30, 41, 59, 0.5); /* Sedikit transparan */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end; /* Tombol sejajar bawah */
}

/* --- Quick Input Modal (Custom Popup) --- */
/* Kita pakai CSS Modal manual untuk Form karena butuh layout grid yg kompleks */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Di atas segalanya */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-content.large-form {
    width: 90%;
    max-width: 800px; /* Lebih lebar untuk form */
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Agar tidak melebihi tinggi layar */
}

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

.modal-header h3 { font-size: 1.25rem; color: #fff; margin: 0; }
.close-modal-btn { background: none; border: none; color: #94a3b8; font-size: 1.5rem; cursor: pointer; }
.close-modal-btn:hover { color: #fff; }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto; /* Scroll jika form panjang */
}

/* ===================================
   FOOTER STYLES
   =================================== */
.app-footer {
    background: var(--bg-boxed);
    border-top: 1px solid var(--border-light);
    padding: 20px 30px;
    margin-top: auto;
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.footer-left {
    flex: 1;
    color: var(--text-tertiary);
}

.footer-right {
    flex: 1;
    text-align: right;
    color: var(--text-tertiary);
}

.footer-left a,
.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-left a:hover,
.footer-right a:hover {
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .app-footer {
        padding: 15px 20px;
        font-size: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #0f172a;
    border-radius: 0 0 1rem 1rem;
}

/* =================================================================
5. RESPONSIVE UTILITIES (MEDIA QUERIES)
(Menggabungkan semua kebutuhan responsif dari Dashboard & Form)
================================================================= */

/* --- Tablet & Small Desktop (Max 1024px) --- */
@media (max-width: 1024px) {
    .charts-grid { grid-template-columns: 1fr; }
    .chart-container { height: clamp(14rem, 35vw, 18rem); }
}

/* --- Mobile / Tablet Portrait (Max 768px) --- */
@media (max-width: 768px) {
    /* Header Changes */
    .header { flex-wrap: wrap; padding: 1rem 1.25rem; gap: 0.625rem; }
    .menu-toggle { display: block; order: 3; margin-left: auto; }
    .header-right { order: 2; gap: 0.75rem; }
    .header-info span:last-child { font-size: 0.6875rem; }
    .header-left { order: 1; flex: 1 1 100%; }

    /* Navigation Changes */
    .nav-menu { width: 100%; order: 4; padding: 0.75rem 1.25rem; }
    
    /* Dashboard Grid Changes */
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
    .container { padding: 1rem; }
    .chart-container { height: 15rem; }

    /* Form Changes */
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; }
    .btn { width: 100%; justify-content: center; }
}

/* --- Small Mobile (Max 480px) --- */
@media (max-width: 480px) {
    .header-title { font-size: 0.9375rem; }
    .logo { width: 1.875rem; height: 1.875rem; font-size: 1rem; }
    .header-info { font-size: 0.6875rem; }
    .header-info span:first-child { font-size: 0.875rem; }
    .nav-item { padding: 0.625rem 0.9375rem; font-size: 0.75rem; }
    
    /* Dashboard Specific */
    .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .stat-card, .chart-card { padding: 1rem; }
    .chart-container { height: 12.5rem; }
}

/* =========================================
   9. IMPROVED RESPONSIVE & HEADER (NEW)
   ========================================= */

/* --- Sidebar Close Button (Mobile Only) --- */
.sidebar-close-btn {
    display: none; /* Hidden di Desktop */
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto; /* Dorong ke kanan */
    padding: 5px;
    transition: color 0.3s;
}

.sidebar-close-btn:hover { color: #ff6b9d; }

/* --- Header Profile Dropdown --- */
.user-profile-container {
    position: relative; /* Jangkar untuk dropdown */
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    user-select: none;
}

.user-profile:hover { background: rgba(255,255,255,0.05); }

.profile-arrow { font-size: 0.75rem; color: #94a3b8; transition: transform 0.3s; }
.user-profile.active .profile-arrow { transform: rotate(180deg); }

/* Menu Dropdown Box */
.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    width: 220px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.profile-dropdown a:hover { background: rgba(0, 212, 255, 0.1); color: #00d4ff; }
.profile-dropdown a.text-danger:hover { background: rgba(255, 107, 157, 0.1); color: #ff6b9d; }

.dropdown-header-mobile { display: none; } /* Hidden di Desktop */
.badge-dot { width: 8px; height: 8px; background: #ff6b9d; border-radius: 50%; margin-left: auto; }

/* --- Responsive Adjustments --- */

@media (max-width: 992px) {
    /* Tampilkan tombol close di sidebar */
    .sidebar-close-btn { display: block; }
    
    /* Perbaikan Header Mobile */
    .top-navbar { padding: 0 1rem; }
    .logo-text { font-size: 1.1rem; } /* Kecilkan sedikit logo */
}

@media (max-width: 576px) {
    /* Sembunyikan Tanggal & Nama agar muat */
    .hide-on-mobile { display: none; }
    .profile-name { display: none; } /* Hanya tampilkan foto & panah */
    
    .user-profile { gap: 0.4rem; padding: 0.25rem; }
    
    /* Tampilkan info user di dalam dropdown karena di header hilang */
    .dropdown-header-mobile {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0.5rem;
        color: #fff;
    }
    .dropdown-header-mobile small { display: block; color: #94a3b8; font-size: 0.75rem; }
    
    .profile-dropdown { width: 260px; right: -10px; } /* Sedikit lebih lebar */
}

/* ====================================================================
LIGHT MODE & DARK MODE - CSS UPDATE
FILE: style-updates.css
DESCRIPTION: Overrides dan updates untuk menggunakan CSS variables
==================================================================== */

/* =====================================================
   LIGHT MODE (DEFAULT) - Update untuk menggunakan variables
   ===================================================== */

/* BODY - Light Mode */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* CONTAINER */
.container {
    color: var(--text-primary);
}

/* =====================================================
   HEADER & NAVBAR
   ===================================================== */
.header {
    background: var(--header-bg);
    border-color: var(--header-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-title {
    color: var(--text-primary);
}

.header-info {
    color: var(--text-secondary);
}

.top-navbar {
    background: var(--navbar-bg);
    box-shadow: 0 2px 10px var(--navbar-shadow);
}

.toggle-btn {
    color: var(--text-primary);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 4px 0 15px rgba(0,0,0,0.08);
}

.sidebar-header {
    background: var(--sidebar-header-bg);
    border-bottom: 1px solid var(--sidebar-border);
}

.logo-text {
    color: var(--text-primary);
}

.logo-text span {
    color: var(--primary-color);
}

.sidebar-menu {
    scrollbar-color: var(--text-tertiary) transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
}

.menu-header {
    color: var(--text-light);
}

.sidebar-menu li a {
    color: var(--text-secondary);
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-menu li a.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.submenu {
    background: var(--bg-tertiary);
}

.submenu li a {
    color: var(--text-tertiary);
}

.sidebar-close-btn {
    color: var(--text-tertiary);
}

.sidebar-close-btn:hover {
    color: var(--danger-color);
}

/* =====================================================
   PROFILE SECTION
   ===================================================== */
.user-profile {
    color: var(--text-secondary);
}

.user-profile:hover {
    background: var(--bg-hover);
}

.user-profile img {
    border: 2px solid var(--primary-color);
    object-fit: cover;
    object-position: center;
}

.profile-photo-header {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.profile-arrow {
    color: var(--text-tertiary);
}

/* Profile Dropdown */
.profile-dropdown {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.profile-dropdown a {
    color: var(--text-secondary);
}

.profile-dropdown a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.profile-dropdown a.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger-color);
}

.dropdown-header-mobile {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.profile-photo-dropdown {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    object-fit: cover;
    object-position: center;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-header-mobile strong {
    font-size: 14px;
    font-weight: 600;
}

.dropdown-header-mobile small {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* =====================================================
   THEME TOGGLE BUTTON STYLING
   ===================================================== */
#themeToggleBtn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

#themeToggleBtn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

#themeToggleBtn i {
    font-size: 1rem;
}

#themeToggleBtn.light-mode i::before {
    content: '\f186'; /* Moon icon */
}

#themeToggleBtn.dark-mode-active i::before {
    content: '\f185'; /* Sun icon */
}

/* =====================================================
   STATS & CARDS
   ===================================================== */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.stat-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--primary-light);
}

.stat-value {
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
}

.stat-change {
    color: var(--success-color);
}

/* CHART CARDS */
.chart-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.chart-title {
    color: var(--text-primary);
}

.chart-badge {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* =====================================================
   FORMS
   ===================================================== */
.form-header {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.form-header h2 {
    color: var(--text-primary);
}

.form-header h2 i {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    margin: 0 5px 0 0;
    font-size: 18px;
}

.form-header p {
    color: var(--text-secondary);
}

.form-label {
    color: var(--text-primary);
}

.required {
    color: var(--danger-color);
}

.form-control {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
}

.form-control:focus {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--input-bg);
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

select.form-control option {
    background: var(--input-bg);
    color: var(--input-text);
}

.form-text {
    color: var(--text-tertiary);
}

.form-text.error {
    color: var(--danger-color);
}

/* FILE UPLOAD */
.file-upload-wrapper {
    border: 2px dashed var(--border-medium);
    background: var(--input-bg);
}

.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.file-upload-content {
    color: var(--text-secondary);
}

/* CHECKBOX & RADIO */
.custom-control {
    color: var(--text-secondary);
}

.checkmark {
    background-color: var(--input-bg);
    border: 1px solid var(--border-medium);
}

.custom-control:hover input ~ .checkmark {
    border-color: var(--primary-color);
}

.custom-control input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* BUTTONS */
.form-actions {
    border-top: 1px solid var(--border-light);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* =====================================================
   TABLES
   ===================================================== */
.table-responsive {
    border: 1px solid var(--card-border);
}

.custom-table th {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border-bottom: 2px solid var(--border-light);
}

.custom-table td {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.custom-table tbody tr:hover {
    background: var(--bg-hover);
}

/* BADGES */
.badge {
    font-weight: 600;
}

.badge-success {
    background: var(--badge-success-bg);
    color: var(--badge-success-text);
}

.badge-warning {
    background: var(--badge-warning-bg);
    color: var(--badge-warning-text);
}

.badge-danger {
    background: var(--badge-danger-bg);
    color: var(--badge-danger-text);
}

.badge-info {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ACTION BUTTONS */
.action-btn {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.action-btn.delete:hover {
    background: var(--danger-color);
    color: white;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.page-link {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

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

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border-left: 4px solid;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background: var(--danger-light);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */
.breadcrumb {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* =====================================================
   FILTER CARD
   ===================================================== */
.filter-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-content.large-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    color: var(--text-primary);
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg-tertiary);
}

/* ====================================================================
CHART.JS STYLING - LIGHT MODE FIX
FILE: style-charts-fix.css
DESCRIPTION: Chart styling untuk light dan dark mode
==================================================================== */

/* =====================================================
   LIGHT MODE - INVERT CHART COLORS
   ===================================================== */

/* Light mode: invert chart colors agar text terlihat gelap */
:not(.dark-mode) .chart-container canvas {
    filter: invert(1) hue-rotate(180deg);
}

/* =====================================================
   DARK MODE - NO FILTER (ORIGINAL)
   ===================================================== */

/* Dark mode: tanpa filter, gunakan original colors */
body.dark-mode .chart-container canvas {
    filter: none;
}

/* =====================================================
   CHART CONTAINER STYLING
   ===================================================== */

.chart-container {
    position: relative;
    transition: all 0.3s ease;
}

.chart-container canvas {
    max-width: 100%;
    height: auto !important;
}

div:where(.swal2-container) {
    z-index: 3000 !important;
}

/* Container untuk Filter */
.pkm-filter-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

/* Tombol Filter Unik */
.pkm-filter-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-color, #64748b);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover State */
.pkm-filter-btn:hover {
    border-color: #06b6d4;
    color: #06b6d4;
}

/* Active State (Seperti di screenshot: Cyan background) */
.pkm-filter-btn.active {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Dark Mode adjustment (jika class dark-mode ada di body) */
body.dark-mode .pkm-filter-btn {
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .pkm-filter-btn.active {
    color: #fff;
    border-color: #06b6d4;
}

/* Dark Mode Footer Styles */
body.dark-mode .app-footer {
    background: var(--bg-tertiary);
    border-top-color: var(--border-medium);
    color: var(--text-tertiary);
}

body.dark-mode .footer-left,
body.dark-mode .footer-right {
    color: var(--text-tertiary);
}

body.dark-mode .footer-left a,
body.dark-mode .footer-right a {
    color: var(--text-secondary);
}

body.dark-mode .footer-left a:hover,
body.dark-mode .footer-right a:hover {
    color: var(--primary-color);
}

/* Auth Page Specific Styles */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    width:100%;
}

/* Animated Background */
.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

/* Auth Card */
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Groups */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-form-group label .required {
    color: var(--danger-color);
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1rem;
}

.auth-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 0.75rem;
    color: var(--input-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--input-bg);
}

.auth-input::placeholder {
    color: var(--input-placeholder);
}

.auth-input.is-invalid {
    border-color: var(--danger-color);
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 4px var(--danger-light);
}

/* Remember & Forgot */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.auth-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
}

.auth-forgot {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-forgot:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.password-strength-bar.weak { width: 33%; background: var(--danger-color); }
.password-strength-bar.medium { width: 66%; background: var(--warning-color); }
.password-strength-bar.strong { width: 100%; background: var(--success-color); }

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--text-tertiary);
}

/* Error Messages */
.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Terms & Conditions */
.auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-terms label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

.auth-terms label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-terms label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Alert Messages */
.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.auth-alert-success {
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.auth-alert-error {
    background: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.auth-alert i {
    font-size: 1.25rem;
}

/* Theme Toggle */
.theme-toggle-auth {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.theme-toggle-auth:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle-auth i {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Form Grid for Name Fields */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .theme-toggle-auth {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   CHAT WIDGET STYLES
   Floating chat widget with modern design following app theme
==================================================================== */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: inherit;
}

/* Chat Button */
.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.chat-button:active {
    transform: scale(0.95);
}

.chat-button i {
    transition: all 0.3s ease;
}

.chat-button.active i {
    transform: rotate(0deg);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-medium);
    animation: slideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

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

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-agent-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-agent-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-status {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    opacity: 0.95;
}

.chat-status i {
    font-size: 8px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: var(--border-dark);
}

/* Chat Message */
.chat-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.agent-message {
    justify-content: flex-start;
}

.chat-message.user-message {
    justify-content: flex-end;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-message.user-message .message-avatar {
    background: var(--success-color);
}

.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-message.user-message .message-content {
    align-items: flex-end;
}

.message-bubble {
    background: var(--bg-primary);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    font-size: 14px;
}

.chat-message.agent-message .message-bubble {
    border-radius: 16px 16px 16px 4px;
}

.chat-message.user-message .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px 16px 4px 16px;
    border: none;
}

.message-bubble p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
    color: var(--text-primary);
}

.chat-message.user-message .message-bubble p {
    color: white;
}

.message-bubble p + p {
    margin-top: 8px;
}

/* Message Bubble - Enhanced List Styling */
.message-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style: none;
}

.message-bubble ul br {
    display: none;
}

.message-bubble ul li {
    margin: 5px 0;
    padding-left: 5px;
    position: relative;
    line-height: 1.5;
}

.message-bubble ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.chat-message.user-message .message-bubble ul li::before {
    color: rgba(255, 255, 255, 0.8);
}

.message-bubble strong {
    font-weight: 600;
    color: var(--primary-color);
}

.chat-message.user-message .message-bubble strong {
    color: white;
}

.message-time {
    font-size: 11px;
    color: var(--text-light);
    padding: 0 8px;
}

/* Message Options (Buttons) */
.message-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.option-button {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.option-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.option-button i {
    font-size: 16px;
}

.option-button.selected {
    background: var(--primary-color);
    color: white;
    pointer-events: none;
}

/* Chat Footer */
.chat-footer {
    padding: 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.chat-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-attachment {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-attachment:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chat-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input::placeholder {
    color: var(--input-placeholder);
}

.chat-send {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.chat-send:active {
    transform: scale(0.95);
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.typing-text {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* User Message (No Avatar on Right Side) */
.chat-message.user-message {
    justify-content: flex-end;
}

.chat-message.user-message .message-avatar {
    display: none;
}

.chat-message.user-message .message-content {
    max-width: 75%;
}

.chat-reset {
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.chat-reset:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: rotate(180deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 80px;
        right: 20px;
    }

    .chat-button {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        bottom: 0;
        right: 0;
    }

    .chat-button {
        bottom: 15px;
        right: 15px;
    }

    .chat-header {
        border-radius: 0;
    }

    .message-content {
        max-width: 80%;
    }
}

/* Dark Mode Support */
.dark-mode .chat-window {
    background: var(--bg-primary);
    border-color: var(--border-medium);
}

.dark-mode .chat-body {
    background: var(--bg-secondary);
}

.dark-mode .message-bubble {
    background: var(--bg-primary);
    border-color: var(--border-light);
}

.dark-mode .message-bubble p {
    color: var(--text-primary);
}

.dark-mode .option-button {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

.dark-mode .chat-footer {
    background: var(--bg-primary);
    border-color: var(--border-light);
}

.dark-mode .chat-attachment {
    background: var(--bg-tertiary);
    border-color: var(--border-light);
}

/* ====================================================================
   SUPPORT TICKET PAGES - RESPONSIVE STYLES
==================================================================== */

/* Ticket Header Styles */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-header-title {
    flex: 1;
    min-width: 200px;
}

.ticket-header-title h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 0;
}

.ticket-header-title p {
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin: 0.5rem 0 0 0;
}

.ticket-header-actions {
    white-space: nowrap;
}

/* Ticket Detail Page */
.ticket-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.ticket-detail-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin: 0;
}

.ticket-detail-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ticket-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.ticket-badge {
    padding: 0.5rem 1rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
}

/* Two Column Layout */
.ticket-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.ticket-main {
    min-width: 0; /* Fix for text overflow */
}

.ticket-sidebar {
    min-width: 0;
}

/* Ticket Content */
.ticket-subject {
    margin: 0 0 1rem 0;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-primary);
    word-break: break-word;
}

.ticket-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ticket-message-box {
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}

.ticket-message-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-primary);
    word-break: break-word;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.ticket-message-meta {
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    display: block;
    margin-top: 0.5rem;
}

/* Admin Reply Box */
.ticket-reply-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.ticket-reply-title {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.ticket-reply-box {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin-bottom: 1rem;
}

.ticket-reply-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.ticket-reply-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ticket-reply-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ticket-reply-btn.btn-send {
    background: #10b981;
    color: white;
}

.ticket-reply-btn.btn-assign {
    background: var(--primary-color);
    color: white;
}

.ticket-reply-btn.btn-cancel {
    background: #6b7280;
    color: white;
}

.ticket-reply-btn.btn-edit {
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Info Sidebar */
.ticket-info-card {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.ticket-info-title {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
}

.ticket-info-divider {
    height: 1px;
    background: var(--border-light);
    margin: 1rem 0;
}

.ticket-info-item {
    margin-bottom: 1rem;
}

.ticket-info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.ticket-info-value {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* Action Buttons */
.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ticket-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.ticket-btn-secondary {
    background: #6b7280;
    color: white;
}

.ticket-btn-danger {
    background: #ef4444;
    color: white;
}

/* User Info Box */
.ticket-user-info {
    margin: 0.5rem 0 0 0;
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .ticket-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ticket-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .ticket-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-detail-status {
        width: 100%;
        justify-content: space-between;
    }
    
    .ticket-select {
        flex: 1;
        min-width: 120px;
    }
    
    .ticket-reply-actions {
        flex-direction: column;
    }
    
    .ticket-reply-btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-text-hide {
        display: none;
    }
}

@media (max-width: 576px) {
    .form-card {
        padding: 1rem !important;
    }
    
    .ticket-header {
        flex-direction: column;
    }
    
    .ticket-header-actions {
        width: 100%;
    }
    
    .ticket-info-card {
        padding: 1rem;
    }
    
    .badge {
        padding: 0.375rem 0.75rem !important;
        font-size: 0.75rem !important;
    }
    
    .ticket-number-text {
        font-size: 0.875rem;
        word-break: break-all;
    }
}

/* Empty State */
.ticket-empty-state {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 3rem);
}

.ticket-empty-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.ticket-empty-title {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin: 0 0 0.5rem 0;
}

.ticket-empty-text {
    color: var(--text-secondary);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Success Alert */
.ticket-alert-success {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.ticket-alert-success span {
    color: var(--text-primary);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Help Box */
.ticket-help-box {
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border-radius: 8px;
}

.ticket-help-title {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.ticket-help-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}
/* ====================================================================
   TICKET PAGE - ADDITIONAL UTILITY CLASSES
==================================================================== */

/* Custom Grid (Replace Bootstrap row/col) */
.ticket-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .ticket-page-grid {
        grid-template-columns: 1fr;
    }
}

/* Icon Styles */
.icon-primary {
    color: var(--primary-color);
}

.icon-success {
    color: #10b981;
}

.icon-secondary {
    color: #94a3b8;
}

/* Text Styles */
.text-muted {
    color: #94a3b8;
}

.text-wrap {
    word-break: break-word;
    white-space: pre-wrap;
}

/* Alert Success */
.alert-success-box {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Form Submit Actions */
.form-submit-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-submit-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Info Box */
.info-box {
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border-radius: 12px;
}

.info-box-title {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.info-box-section {
    margin-bottom: 1.5rem;
}

.info-box-section h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.info-box-list {
    font-size: 0.9rem;
    color: #94a3b8;
    padding-left: 1.25rem;
    margin: 0;
    line-height: 1.8;
}

/* Hide button text on mobile */
@media (max-width: 768px) {
    .btn-text-hide {
        display: none;
    }
}

/* ====================================================================
ANTRIAN PELAYANAN MANAGEMENT STYLES
==================================================================== */

/* Antrian Filter Card (Puskesmas Selector) */
.antrian-filter-card, .form-filter-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.antrian-filter-card h3, .form-filter-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.antrian-filter-card .form-group, .form-filter-card .form-group {
    margin-bottom: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--text-lighter);
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1rem;
}

.empty-state-small {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* Antrian Tabs */
.antrian-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.antrian-tab {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-secondary);
}

.antrian-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.antrian-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Antrian List Container */
.antrian-list-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.antrian-list {
    display: grid;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Antrian Item Card */
.antrian-item {
    background: white;
    border: 2px solid var(--card-border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.antrian-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.antrian-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.antrian-nomor {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.antrian-status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.antrian-status-badge.status-menunggu {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.antrian-status-badge.status-proses {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.antrian-status-badge.status-selesai {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.antrian-status-badge.status-batal {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.antrian-status-badge.status-skip {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.antrian-status-badge.status-skip {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.antrian-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.antrian-info {
    flex: 1;
}

.antrian-info strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.antrian-kategori {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.antrian-waktu {
    color: var(--text-light);
    font-size: 0.875rem;
}

.antrian-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-antrian {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-antrian i {
    font-size: 0.875rem;
}

.btn-proses {
    background: linear-gradient(135deg, var(--warning-color), var(--danger-color));
    color: white;
}

.btn-proses:hover {
    background: linear-gradient(135deg, var(--danger-color), #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-selesai {
    background: linear-gradient(135deg, var(--success-color), #16a34a);
    color: white;
}

.btn-selesai:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-skip {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

.btn-skip:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.btn-skip {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

.btn-skip:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* Status Color Variations for Antrian Item */
.antrian-item.status-menunggu {
    border-left: 4px solid #ca8a04;
}

.antrian-item.status-proses {
    border-left: 4px solid #ea580c;
}

.antrian-item.status-selesai {
    border-left: 4px solid #16a34a;
}

.antrian-item.status-batal {
    border-left: 4px solid #dc2626;
}

.antrian-item.status-skip {
    border-left: 4px solid #9333ea;
}

.antrian-item.status-skip {
    border-left: 4px solid #9333ea;
}

/* Antrian User Section (For Regular Users) */
.patient-info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.patient-info-card .info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--card-border);
}

.patient-info-card .info-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.patient-info-card .info-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
}

.patient-info-card .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.patient-info-card .info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.patient-info-card .info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.patient-info-card .info-label i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.patient-info-card .info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.patient-info-card .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.patient-info-card .alert-warning {
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-left: 4px solid #ea580c;
}

.patient-info-card .alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-left: 4px solid #22c55e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.patient-info-card .alert-success i {
    font-size: 1.25rem;
    color: #22c55e;
}

.patient-info-card .profile-warning {
    display: flex;
    gap: 1rem;
}

.patient-info-card .profile-warning .alert-icon {
    font-size: 1.5rem;
    color: #ea580c;
}

.patient-info-card .profile-warning .alert-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #ea580c;
}

.patient-info-card .profile-warning .alert-content p {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.patient-info-card .profile-warning .alert-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.patient-info-card .profile-warning .alert-content ul li {
    margin: 0.25rem 0;
}

.patient-info-card .profile-warning .btn {
    margin-top: 1rem;
}

.patient-info-card .profile-complete {
    color: #22c55e;
    font-weight: 500;
}

.antrian-daftar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.antrian-daftar-card.disabled-card {
    opacity: 0.6;
    pointer-events: none;
}

.antrian-daftar-card .disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.antrian-daftar-card .disabled-message {
    text-align: center;
    color: var(--text-secondary);
}

.antrian-daftar-card .disabled-message i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #dc2626;
}

.antrian-daftar-card .disabled-message p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.antrian-daftar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.antrian-user-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
}

.antrian-user-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.antrian-user-list {
    display: grid;
    gap: 1rem;
}

.antrian-user-card {
    background: white;
    border: 2px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.antrian-user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.antrian-user-card.status-menunggu {
    border-left: 5px solid #ca8a04;
}

.antrian-user-card.status-proses {
    border-left: 5px solid #ea580c;
}

.antrian-user-card.status-selesai {
    border-left: 5px solid #16a34a;
}

.antrian-user-card.status-batal {
    border-left: 5px solid #dc2626;
}

.antrian-user-card.status-skip {
    border-left: 5px solid #9333ea;
}

.antrian-user-nomor {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 120px;
    text-align: center;
}

.antrian-user-info {
    flex: 1;
}

.antrian-user-puskesmas {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.antrian-user-kategori {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.antrian-user-status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.antrian-user-status.status-menunggu {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.antrian-user-status.status-proses {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.antrian-user-status.status-selesai {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.antrian-user-status.status-batal {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.antrian-user-status.status-skip {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

.antrian-user-status.status-skip {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
}

/* Responsive */
@media (max-width: 768px) {
    .antrian-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .antrian-tab {
        flex-shrink: 0;
    }
    
    .antrian-body {
        flex-direction: column;
    }
    
    .antrian-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .btn-antrian {
        flex: 1;
    }
    
    .antrian-user-card {
        flex-direction: column;
        text-align: center;
    }
    
    .antrian-user-nomor {
        min-width: auto;
    }
}


/* ====================================================================
EMPTY STATE STYLES - CONSISTENT WITH DASHBOARD THEME
==================================================================== */

/* Empty State Container - Main */
.empty-state {
    text-align: center;
    padding: clamp(3rem, 5vw, 5rem) 2rem;
    background: var(--card-bg);
    border: 2px dashed var(--card-border);
    border-radius: 16px;
    margin: 2rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.empty-state > * {
    position: relative;
    z-index: 1;
}

.empty-state:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

/* Icon Styling */
.empty-state i.fas,
.empty-state i.far,
.empty-icon {
    font-size: clamp(3.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    opacity: 0.6;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.2));
}

/* Heading */
.empty-state h3,
.empty-state h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Description */
.empty-state p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

/* Empty State Small Variant (for list items) */
.empty-state-small {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-light);
    font-style: italic;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    border: 1px dashed var(--card-border);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.empty-state-small:hover {
    border-color: var(--primary-light);
    background: var(--card-bg);
}

/* Float Animation - Smooth & Subtle */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Empty State with Action Button */
.empty-state-action {
    margin-top: 1.5rem;
}

.empty-state-action .btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.empty-state-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .empty-state {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .empty-state i.fas,
    .empty-state i.far,
    .empty-icon {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }
    
    .empty-state h3,
    .empty-state h4 {
        font-size: 1.35rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
    
    .empty-state-small {
        padding: 2rem 1rem;
        font-size: 0.875rem;
    }
    
    .empty-state-action .btn {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i.fas,
    .empty-state i.far,
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3,
    .empty-state h4 {
        font-size: 1.2rem;
    }
}

/* Dark Mode Enhancements */
body.dark-mode .empty-state {
    background: var(--card-bg);
    border-color: var(--card-border);
}

body.dark-mode .empty-state::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

body.dark-mode .empty-state:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

body.dark-mode .empty-state i.fas,
body.dark-mode .empty-state i.far,
body.dark-mode .empty-icon {
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

body.dark-mode .empty-state-small {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .empty-state-small:hover {
    background: var(--card-bg);
    border-color: var(--primary-light);
}

/* Dark mode for patient info card */
body.dark-mode .patient-info-card .info-item {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--primary-light);
}

body.dark-mode .patient-info-card .alert-warning {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.4);
}

body.dark-mode .patient-info-card .alert-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

body.dark-mode .antrian-daftar-card .disabled-overlay {
    background: rgba(30, 41, 59, 0.7);
}

/* ====================================================================
END OF EMPTY STATE STYLES
==================================================================== */

/* ====================================================================
GRADIENT BUTTON CONSISTENCY - DOCUMENTATION
==================================================================== */

/* 
GRADIENT STANDARDS:
- Primary Action Buttons: linear-gradient(135deg, var(--primary-color), var(--secondary-color))
- Success Buttons: linear-gradient(135deg, var(--success-color), #16a34a)
- Warning/Process Buttons: linear-gradient(135deg, var(--warning-color), var(--danger-color))
- Danger Buttons: linear-gradient(135deg, var(--danger-color), #dc2626)

All gradients use 135deg angle for consistency.
All gradients use CSS variables when available for theme switching.

Examples implemented:
- .btn-primary (main action button)
- .auth-btn (authentication forms)
- .btn-proses (queue process button)
- .btn-selesai (queue complete button)
- .empty-state-action .btn (empty state action)
- .auth-logo-icon (logo backgrounds)
*/

/* ====================================================================
END OF GRADIENT DOCUMENTATION
==================================================================== */

/* ====================================================================
HEADER MOBILE RESPONSIVE IMPROVEMENTS
==================================================================== */

/* Top Navbar Left Container */
.top-navbar-left {
    display: none;
    align-items: center;
    gap: 1rem;
}

/* Header Logo Mobile */
.header-logo-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-mobile .logo {
    font-size: 1.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo-mobile .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.header-logo-mobile .logo-text span {
    color: var(--primary-color);
    font-weight: 800;
}

/* Toggle Button Improvements */
.toggle-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.toggle-btn i {
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-logo-mobile {
        display: flex;
    }

    .top-navbar-left {
        display:flex;
    }
    
    .top-navbar {
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }
    
    .toggle-btn {
        width: 38px;
        height: 38px;
    }
    
    .toggle-btn i {
        font-size: 1.15rem;
    }
    
    .header-logo-mobile .logo {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    
    .header-logo-mobile .logo-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .top-navbar-left {
        gap: 0.75rem;
    }
    
    .toggle-btn {
        width: 36px;
        height: 36px;
    }
    
    .header-logo-mobile .logo {
        width: 34px;
        height: 34px;
        font-size: 1.4rem;
    }
    
    .header-logo-mobile .logo-text {
        font-size: 1rem;
    }
    
    /* Hide "Deiyai" text on very small screens */
    .header-logo-mobile .logo-text span::before {
        content: '';
        display: none;
    }
}

/* ====================================================================
END OF HEADER MOBILE RESPONSIVE IMPROVEMENTS
==================================================================== */

/* ====================================================================
ORGANIZATION LOGO STYLES
==================================================================== */

/* Logo image in sidebar navigation */
.sidebar .logo .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Logo image in mobile header */
.header-logo-mobile .logo .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ensure logo container maintains proper sizing */
.logo {
    overflow: hidden;
    flex-shrink: 0;
}

/* ====================================================================
END OF ORGANIZATION LOGO STYLES
==================================================================== */

/* ====================================================================
DRUG AVAILABILITY - CARD & TABLE STYLING
==================================================================== */

/* Drug Availability - Card Styling */
.ms-card {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ms-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ms-card__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
}

.ms-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
}

.ms-badge--info {
    color: #1e40af;
    background: #dbeafe;
}

.ms-card__body {
    margin-top: 1rem;
}

.ms-empty {
    padding: 2rem;
    text-align: center;
    background-color: #f0fdf4;
    border-radius: 8px;
    border: 2px dashed #86efac;
}

.ms-empty__text {
    color: #15803d;
    margin: 0;
    font-size: 0.95rem;
}

/* Table Styling */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--card-border, #e2e8f0);
}

.table-drug-detail {
    width: 100%;
    min-width: 950px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    background: var(--bg-primary, #ffffff);
}

.table-drug-detail thead {
    background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-dark, #2563eb) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-drug-detail thead th {
    padding: 1.125rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.table-drug-detail thead th:first-child {
    border-top-left-radius: 8px;
}

.table-drug-detail thead th:last-child {
    border-top-right-radius: 8px;
}

.table-drug-detail tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    background: var(--bg-primary, #ffffff);
}

.table-drug-detail tbody tr:hover {
    background: var(--bg-hover, #f8fafc);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.table-drug-detail tbody td {
    padding: 1.375rem 1.5rem;
    color: var(--text-primary, #334155);
    border: none;
    vertical-align: middle;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.table-drug-detail tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table-drug-detail tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.badge-success {
    background: var(--badge-success-bg, #dcfce7);
    color: var(--badge-success-text, #166534);
    border: 1px solid var(--success-color, #86efac);
}

.badge-danger {
    background: var(--badge-danger-bg, #fee2e2);
    color: var(--badge-danger-text, #991b1b);
    border: 1px solid var(--danger-color, #fca5a5);
}

/* Footer Styling */
.table-drug-detail tfoot {
    background: linear-gradient(135deg, var(--bg-tertiary, #f8fafc) 0%, var(--bg-secondary, #f1f5f9) 100%);
    font-weight: 600;
    border-top: 2px solid var(--border-medium, #e2e8f0);
}

.table-drug-detail tfoot td {
    padding: 1.375rem 1.5rem;
    color: var(--text-primary, #1e293b);
    font-size: clamp(0.95rem, 2vw, 1rem);
    border: none;
}

.table-drug-detail tfoot tr td:first-child {
    border-bottom-left-radius: 8px;
}

.table-drug-detail tfoot tr td:last-child {
    border-bottom-right-radius: 8px;
}

/* Column Width Optimization */
.table-drug-detail th:nth-child(1),
.table-drug-detail td:nth-child(1) {
    width: 12%;
    min-width: 120px;
}

.table-drug-detail th:nth-child(2),
.table-drug-detail td:nth-child(2) {
    width: 20%;
    min-width: 180px;
    font-weight: 500;
    color: #1e293b;
}

.table-drug-detail th:nth-child(3),
.table-drug-detail td:nth-child(3) {
    width: 10%;
    min-width: 100px;
}

.table-drug-detail th:nth-child(4),
.table-drug-detail td:nth-child(4) {
    width: 10%;
    min-width: 100px;
    text-align: center;
    font-weight: 600;
    color: #0f172a;
}

.table-drug-detail th:nth-child(5),
.table-drug-detail td:nth-child(5) {
    width: 10%;
    min-width: 100px;
    text-align: center;
}

.table-drug-detail th:nth-child(6),
.table-drug-detail td:nth-child(6) {
    width: 12%;
    min-width: 110px;
}

.table-drug-detail th:nth-child(7),
.table-drug-detail td:nth-child(7) {
    width: 26%;
    min-width: 200px;
}

/* Responsive Enhancement */
@media (max-width: 768px) {
    .table-drug-detail {
        font-size: 0.85rem;
    }
    
    .table-drug-detail thead th,
    .table-drug-detail tbody td,
    .table-drug-detail tfoot td {
        padding: 0.875rem 1rem;
    }
}

/* ====================================================================
END OF DRUG AVAILABILITY - CARD & TABLE STYLING
==================================================================== */
