/* =========================================
   🎨 VARIABLES & THEME
   ========================================= */
:root {
  --primary: #5733a5;
  --primary-light: #7b55c9;
  --primary-dark: #3d2275;
  --bg-dark: #f5f7fa;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-sidebar: #0f1115;
  --border-color: #e2e8f0;
  --text-primary: #1f2937;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #BB2124;
  --info: #3b82f6;
  --dark: #222d31;
  --dark-dark: #162128;
  --pending: #f59e0b;
  --processed: #3b82f6;
  --done: #22c55e;
}

/* =========================================
   🔹 RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-primary); overflow-x: hidden; }

/* Scrollbar Global */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Scrollbar Komponen Khusus (Tipis) */
.content-area::-webkit-scrollbar, .table-container::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 4px; height: 4px; }
.content-area::-webkit-scrollbar-track, .table-container::-webkit-scrollbar-track, .modal-body::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb, .table-container::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 20px; }
.content-area::-webkit-scrollbar-thumb:hover, .table-container::-webkit-scrollbar-thumb:hover, .modal-body::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
.content-area, .table-container, .modal-body { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

/* =========================================
   📐 LAYOUT & UTILS
   ========================================= */
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: 260px; min-height: 100vh; width: calc(100% - 260px); max-width: 100%; overflow-x: hidden; }
.content-area { padding: 24px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.hidden { display: none !important; }
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   🌲 SIDEBAR
   ========================================= */
.sidebar {
  width: 260px; background: #222d31; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100;
  transition: transform 0.3s; overflow-y: auto; box-shadow: 0 2px 10px rgba(0,0,0,0.3); border-right: none;
}
.sidebar-header {
  padding: 24px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logo {
  width: 40px; height: 40px; background: var(--primary); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.sidebar-brand { font-weight: 700; font-size: 18px; color: #ffffff; }
.sidebar-brand span { color: #94a3b8; font-weight: 400; font-size: 12px; display: block; }
.sidebar-nav { padding: 16px 12px; }
.nav-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #64748b; padding: 16px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  cursor: pointer; transition: all 0.2s; color: #cbd5e1; font-size: 14px; margin-bottom: 2px;
}
.nav-item:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.nav-item.active { background: var(--primary); color: #ffffff; }
.nav-item i { font-size: 18px; width: 24px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }

/* =========================================
   🔝 NAVBAR
   ========================================= */
.navbar {
  background: white; border-bottom: none; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.navbar-left, .navbar-right { display: flex; align-items: center; gap: 12px; }
.navbar-left { gap: 16px; }
.navbar .page-title { color: #222d31 !important; font-weight: 700 !important; font-size: 18px !important; text-shadow: none !important; }

.notification-btn {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid #94a3b8;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #94a3b8; transition: all 0.2s;
}
.notification-btn:hover { background: #f4bd5d; border-color: #f4bd5d; }
.notification-btn:hover i { color: #ffffff; }
.notification-btn i { 
    color: #94a3b8; 
    font-size: 18px; 
    transition: color 0.2s; /* Hanya transisi warna, biarkan animasi handle transform */
}
.notification-badge {
    position: absolute; top: -4px; right: -4px; 
    min-width: 18px; height: 18px; padding: 0 4px;
    background: #ef4444; 
    border-radius: 50%; 
    font-size: 10px; 
    font-weight: 800;
    color: #ffffff; /* ✅ Angka wajib putih agar kontras di background merah */
    display: flex; align-items: center; justify-content: center; 
    border: 2px solid #ffffff; /* ✅ Border putih agar merah lebih cerah di navbar */
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4); /* ✅ Glow halus agar terlihat jelas */
    z-index: 10;
    line-height: 1;
}

.user-menu { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 12px; border-radius: 10px; transition: all 0.2s; color: #e2e8f0; }
.user-menu:hover { background: rgba(255,255,255,0.08); color: #ffffff; }
.user-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.user-info { line-height: 1.3; }
.user-name { color: #525b67; font-size: 13px; font-weight: 600; }
.user-role { color: #94a3b8; font-size: 11px; }
.user-menu .bi-chevron-down { color: #94a3b8; }

/* =========================================
   🔘 BUTTONS (NEW ARCHITECTURE)
   ========================================= */
.btn-custom {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .375rem .75rem; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
  font-family: 'Outfit', sans-serif; text-decoration: none;
}
.btn-custom:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-sm-custom {
  padding: .25rem .5rem; border: 1px solid var(--border-color); 
  border-radius: 6px; font-size: 13px; font-weight: 600;
  transition: all 0.2s;
}

/* SOLID */
.btn-primary-custom { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary-custom:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary-custom { background: #6b7280; color: #fff; border-color: #6b7280; }
.btn-secondary-custom:hover:not(:disabled) { background: #4b5563; border-color: #4b5563; }
.btn-success-custom { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success-custom:hover:not(:disabled) { background: #16a34a; border-color: #16a34a; }
.btn-warning-custom { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning-custom:hover:not(:disabled) { background: #d97706; border-color: #d97706; }
.btn-danger-custom { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-custom:hover:not(:disabled) { background: #991b1b; border-color: #991b1b; }
.btn-info-custom { background: var(--info); color: #fff; border-color: var(--info); }
.btn-info-custom:hover:not(:disabled) { background: #2563eb; border-color: #2563eb; }
.btn-dark-custom { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark-custom:hover:not(:disabled) { background: var(--dark-dark); border-color: var(--dark-dark); }

/* OUTLINE (Hover Fill) */
.btn-primary-custom-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-primary-custom-outline:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-secondary-custom-outline { background: transparent; border-color: #6b7280; color: #6b7280; }
.btn-secondary-custom-outline:hover:not(:disabled) { background: #6b7280; color: #fff; }
.btn-success-custom-outline { background: transparent; border-color: var(--success); color: var(--success); }
.btn-success-custom-outline:hover:not(:disabled) { background: var(--success); color: #fff; }
.btn-warning-custom-outline { background: transparent; border-color: var(--warning); color: var(--warning); }
.btn-warning-custom-outline:hover:not(:disabled) { background: var(--warning); color: #fff; }
.btn-danger-custom-outline { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger-custom-outline:hover:not(:disabled) { background: var(--danger); color: #fff; }
.btn-info-custom-outline { background: transparent; border-color: var(--info); color: var(--info); }
.btn-info-custom-outline:hover:not(:disabled) { background: var(--info); color: #fff; }
.btn-dark-custom-outline { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn-dark-custom-outline:hover:not(:disabled) { background: var(--dark); color: #fff; }

/* ICON & WORKFLOW */
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid #e2e8f0;
  background: #ffffff; color: #64748b; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { color: var(--primary); border-color: var(--primary); background: rgba(87,51,165,0.06); transform: translateY(-1px); }
.btn-icon:disabled { color: #64748b; border-color: #64748b; opacity: 0.4; background: #f8fafc; cursor: not-allowed; }
.btn-icon .bi-gear, .btn-icon .bi-check-lg { color: inherit; }
.table-header .btn-primary-custom { box-shadow: 0 2px 8px rgba(87,51,165,0.3); }

/* =========================================
   🔗 BUTTON GROUP (FLEXIBLE & RESPONSIVE)
   ========================================= */
.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn-group .btn-custom {
  flex: 0 0 auto; /* Default: Lebar menyesuaikan konten/teks */
  margin-bottom: 0;
}

/* 🟢 Modifier: Equal Width (50/50, 33/33/33, dst) */
.btn-group-fill {
  display: flex;
  width: 100%;
}
.btn-group-fill .btn-custom {
  flex: 1; /* Bagi lebar container secara rata */
  justify-content: center;
}

/* 🔵 Utility: w-100 (Tailwind-compatible) */
.w-100 { width: 100% !important; }

/* 📱 Mobile Override: Tetap inline/auto, kecuali dipaksa fill */
@media (max-width: 768px) {
  .btn-group {
    display: flex;
    width: 100%;
    justify-content: end;
    gap: 10px;
  }
  .btn-group .btn-custom {
    width: auto !important;
    flex: 0 0 auto !important; /* Batalkan aturan width: 100% global */
  }
  .btn-group-fill .btn-custom {
    flex: 1 !important; /* Mode equal-width tetap aktif */
  }
}

.action-buttons-group {
  flex-direction: row-reverse;
}
@media (max-width: 768px) {
  .action-buttons-group {
    flex-direction: column;
  }
}

/* =========================================
   📝 FORMS & INPUTS (UPDATED STATES)
   ========================================= */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #374151; }

.form-control-custom, .select-custom, .search-input {
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: 100%;
  border-radius: 10px;
  color: #1f2937;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: 'Outfit', sans-serif;
}

/* Focus: Border ungu, TANPA glow */
.form-control-custom:focus, .select-custom:focus, .search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: none; /* ✨ Glownya dihapus */
}

/* Read-Only: Background lebih gelap sedikit, cursor default */
.form-control-custom:read-only, .select-custom[aria-readonly="true"] {
  background: #f1f5f9; /* 🟡 Read-Only */
  border-color: #cbd5e1;
  cursor: default;
  pointer-events: none;
  color: #475569;
}

/* Disabled: Background abu tegas, teks pudar, cursor not-allowed */
.form-control-custom:disabled, .select-custom:disabled {
  background: #e2e8f0; /* 🔴 Disabled */
  border-color: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.9;
}

/* Placeholder & Select Option */
.form-control-custom::placeholder, .search-input::placeholder { color: #94a3b8; }
.select-custom { cursor: pointer; }
.select-custom option { background: var(--bg-card); }

.search-wrapper { position: relative; }
.search-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; }
.search-input { padding-left: 36px; width: 200px; }
.search-input:focus { width: 260px; }

.toggle-switch { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 12px; transition: all 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #94a3b8; top: 3px; left: 3px; transition: all 0.3s; }
.toggle-switch input:checked+.toggle-slider { background: var(--primary); }
.toggle-switch input:checked+.toggle-slider::before { transform: translateX(20px); background: #ffffff; }

/* =========================================
   📊 TABLE & PAGINATION
   ========================================= */
.table-container {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}
.table-header { padding: 20px 24px; border-bottom: none; display: flex; justify-content: space-between; align-items: center; }
.table-header .table-title { color: #0f172a !important; font-weight: 700 !important; font-size: 16px !important; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f1f5f9; }

.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.status-badge.pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-badge.processed { background: rgba(59,130,246,0.15); color: var(--info); }
.status-badge.done, .status-badge.active { background: rgba(34,197,94,0.15); color: var(--success); }
.status-badge.inactive { background: rgba(239,68,68,0.15); color: var(--danger); }
.status-badge i.bi-circle-fill { font-size: 6px; }

.pagination-custom { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-top: 1px solid #f1f5f9; }
.pagination-info { font-size: 13px; color: var(--text-secondary); }
.pagination-buttons { display: flex; gap: 4px; }
.page-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-color);
  background: #ffffff; color: #64748b; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =========================================
   🪟 MODAL (SCROLLABLE BODY & FIXED HEADER/FOOTER)
   ========================================= */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; width: 92%; max-width: 550px;
    max-height: 85vh; display: flex; flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden; /* ⛔ PENTING: Container TIDAK boleh scroll */
}
.modal-overlay.show .modal-content { transform: scale(1) translateY(0); }

.modal-content > form {
    display: flex; flex-direction: column; flex: 1; min-height: 0;
}

.modal-header {
    padding: 20px 24px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0; /* ⛔ Header tidak boleh mengecil */
}
.modal-title { color: #0f172a !important; font-weight: 700 !important; font-size: 17px !important; margin: 0; }

.modal-close {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: #f1f5f9; color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: #e2e8f0; color: #0f172a; transform: rotate(90deg); }

/* ✅ BODY: Area yang diizinkan scroll */
.modal-body {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 24px; min-height: 0;
}

.modal-footer {
    padding: 16px 24px; border-top: 1px solid #e2e8f0;
    display: flex; justify-content: flex-end; gap: 10px;
    flex-shrink: 0; /* ⛔ Footer tidak boleh mengecil */
    background: var(--bg-card);
}

/* =========================================
   📏 MODAL SIZING (SM, MD, LG, XL)
   ========================================= */
/* Default: MD */
.modal-content { width: 92%; max-width: 550px; }

/* Variant Sizes */
.modal-content.modal-sm { max-width: 400px; }
.modal-content.modal-md { max-width: 550px; } /* Eksplisit */
.modal-content.modal-lg { max-width: 800px; }
.modal-content.modal-xl { max-width: 1140px; }

/* Opsional: Fullscreen */
.modal-content.modal-full { max-width: 95vw; max-height: 95vh; }

/* Mobile: Semua ukuran otomatis menyesuaikan viewport agar tidak overflow */
@media (max-width: 768px) {
  .modal-content,
  .modal-content.modal-sm,
  .modal-content.modal-md,
  .modal-content.modal-lg,
  .modal-content.modal-xl {
    max-width: 96vw !important;
    width: 100% !important;
  }
}

.dropdown-menu-custom, .notification-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; background: #ffffff;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12); z-index: 200;
  display: block; visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; pointer-events: none;
  transform-origin: top right;
  min-width: 200px;
}
.dropdown-menu-custom.show, .notification-dropdown.show { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.notification-dropdown { width: 360px; }
.notif-header { padding: 5px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.notif-title { color: #222d31; font-weight: 600; font-size: 14px; }
.notif-item { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: all 0.15s; }
.notif-item:hover { background: rgba(255,255,255,0.06); }
.notif-item.unread { background: rgba(87,51,165,0.1); }
.notif-item-title { color: #94a3b8; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.notif-item-desc { color: #94a3b8; font-size: 12px; line-height: 1.4; }
.notif-item-time { color: #64748b; font-size: 11px; margin-top: 6px; }
.notif-empty { padding: 32px; text-align: center; color: var(--text-muted); }
.dropdown-item-custom { padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 13px; color: #94a3b8; transition: all 0.15s; }
.dropdown-item-custom:hover { background: rgba(86,50,164,0.15); color: #5733a5; }
.dropdown-item-custom.danger:hover { background: rgba(239,68,68,0.15); color: #ef4444; }
#notifDropdownList { border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0}
.notif-footer { padding: 12px 0px; border-top: 1px solid rgba(255,255,255,0.08); }
.notif-footer .btn-custom { width: 100%; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.notif-footer .btn-custom i { font-size: 14px; }
/* Mobile responsive */
@media (max-width: 768px) { .notif-footer { padding: 10px 0px; } }

/* Staggered Dropdown Items */
.notif-item, .dropdown-item-custom { opacity: 0; transform: translateX(-6px); transition: opacity 0.15s ease, transform 0.15s ease; }
.dropdown-menu-custom.show .dropdown-item-custom, .notification-dropdown.show .notif-item { opacity: 1; transform: translateX(0); }
.notif-item:nth-child(1), .dropdown-item-custom:nth-child(1) { transition-delay: 0.04s; }
.notif-item:nth-child(2), .dropdown-item-custom:nth-child(2) { transition-delay: 0.08s; }
.notif-item:nth-child(3), .dropdown-item-custom:nth-child(3) { transition-delay: 0.12s; }
.notif-item:nth-child(4), .dropdown-item-custom:nth-child(4) { transition-delay: 0.16s; }
.notif-item:nth-child(5), .dropdown-item-custom:nth-child(5) { transition-delay: 0.20s; }

/* =========================================
   🚨 ALERTS & TOOLTIPS
   ========================================= */
.alert-custom {
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; opacity: 0; transform: translateY(-10px) scale(0.98);
  animation: alertSlideIn 0.3s ease forwards; transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  max-height: 100px; overflow: hidden;
}
.alert-custom.success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.alert-custom.error { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.alert-custom.warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.alert-custom.info { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }
.alert-custom.hiding { opacity: 0; transform: translateY(-10px) scale(0.95); max-height: 0; margin-bottom: 0; padding: 0; pointer-events: none; }
.alert-custom:nth-child(1) { animation-delay: 0s; }
.alert-custom:nth-child(2) { animation-delay: 0.1s; }
.alert-custom:nth-child(3) { animation-delay: 0.2s; }
.alert-custom.important { animation: alertSlideIn 0.3s ease forwards, alertPulse 2s ease infinite 0.5s; }
.alert-custom.error.shake { animation: alertSlideIn 0.3s ease forwards, alertShake 0.5s ease; }

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
  to { opacity: 1; transform: translateY(0) scale(1); max-height: 100px; margin-bottom: 16px; padding-top: 12px; padding-bottom: 12px; }
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(87,51,165,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(87,51,165,0); }
}
@keyframes alertShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.tooltip-custom { position: relative; }
.tooltip-custom::after {
  content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #f8fafc; border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: all 0.2s; pointer-events: none;
}
.tooltip-custom:hover::after { opacity: 1; visibility: visible; bottom: calc(100% + 6px); }

/* =========================================
   📎 FILE UPLOAD & EMPTY STATES
   ========================================= */
.file-upload-area { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; }
.file-upload-area:hover { border-color: var(--primary); background: rgba(87,51,165,0.04); }
.file-upload-area i { font-size: 32px; color: var(--text-muted); margin-bottom: 8px; }
.file-upload-area p { font-size: 13px; color: var(--text-secondary); }
.file-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f1f5f9; border: 1px solid var(--border-color); border-radius: 8px; font-size: 12px; }
.file-item i { color: var(--primary-light); }
.file-remove { cursor: pointer; color: var(--text-muted); margin-left: 4px; }
.file-remove:hover { color: var(--danger); }

.empty-state { text-align: center; padding: 48px 24px; }
.empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text-secondary); }

/* =========================================
   📊 STATS & BADGES
   ========================================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 24px; transition: all 0.2s; }
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.stat-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon.total { background: rgba(87,51,165,0.2); color: var(--primary-light); }
.stat-icon.pending { background: rgba(245,158,11,0.2); color: var(--warning); }
.stat-icon.processed { background: rgba(59,130,246,0.2); color: var(--info); }
.stat-icon.done { background: rgba(34,197,94,0.2); color: var(--success); }
.stat-value { font-size: 32px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

.badge { padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-error { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }

.notif-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.notif-tab { padding: 8px 16px; border-radius: 8px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.notif-tab:hover { border-color: var(--primary); color: var(--primary); }
.notif-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* =========================================
   🔐 LOGIN PAGE
   ========================================= */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.login-page::before { content: ''; position: absolute; inset: 0; background-image: url('../../../img/background/bg-purple1.webp'); background-repeat: no-repeat; background-size: cover; background-position: center; z-index: 0; }
.login-page::after { content: ''; position: absolute; inset: 0; background: #1a1a24bf }
.login-page > * { position: relative; z-index: 1; }
.login-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 420px; position: relative; z-index: 1; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.login-logo { width: 64px; height: 64px; background: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 28px; font-weight: 700; }
.login-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.login-subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 32px; font-size: 14px; }

/* =========================================
   📱 MOBILE RESPONSIVE (CONSOLIDATED)
   ========================================= */
/* Tablet / Large Phone */
@media (max-width: 1024px) {
  .content-area { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-value { font-size: 26px; }
  .table-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .table-header .d-flex { width: 100%; flex-wrap: wrap; }
  .search-input { width: 100% !important; flex: 1; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Sidebar & Overlay */
  .sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,0.2); }
  .sidebar.show { transform: translate(0, 3.5rem); }
  .sidebar-overlay.show { display: block; backdrop-filter: blur(2px); }
  
  /* App-like Layout & Fixed Navbar */
  html, body, .app-layout { height: 100%; overflow: hidden; }
  .main-content { margin-left: 0; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
  .navbar {
    position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 1000;
    padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,0.08); background: #ffffff;
  }
  .page-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .user-info { display: none; }
  .user-menu { padding: 4px 6px; }
  .user-avatar { width: 34px; height: 34px; font-size: 13px; }
  
  /* Content Area (Offset Navbar) */
  .content-area {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 66px 14px 24px 14px; background: var(--bg-dark);
    margin-top: 60px;
  }
  
  /* Compact Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .stat-card { padding: 14px; border-radius: 12px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; }
  
  /* Table: Sticky Header & Scroll X */
  .table-container {
    display: flex; flex-direction: column; overflow-y: auto;
    width: 100%; margin: 0; padding: 0; border-radius: 12px;
    background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); margin-bottom: 12px;
  }
  .table-header { position: sticky; top: 0; z-index: 50; background: #ffffff; padding: 14px; flex-shrink: 0; }
  .data-table thead { position: sticky; top: 58px; z-index: 40; background: #f8fafc; flex-shrink: 0; }
  .data-table { min-width: 660px; border-collapse: collapse; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 13px; white-space: nowrap; border-bottom: 1px solid #f1f5f9; }
  .pagination-custom { position: sticky; bottom: 0; z-index: 50; background: #ffffff; padding: 10px 14px; flex-shrink: 0; margin-top: auto; }
  
  /* Forms & Inputs (Prevent iOS Zoom) */
  .form-group { margin-bottom: 10px; }
  .form-control-custom, .select-custom { font-size: 16px !important; padding: 12px 14px; }
  .btn-custom { padding: 10px 12px; font-size: 14px; margin-bottom: 8px; } 
  .btn-sm-custom { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
  .file-upload-area { padding: 14px; }
  
  /* Dropdowns (Fixed Position) */
  .notification-dropdown, .dropdown-menu-custom {
    position: fixed; top: 62px; right: 12px; left: auto; width: auto;
    min-width: 300px; max-width: calc(100vw - 24px); z-index: 201;
  }
  
  /* Modals */
  .modal-content { max-width: 96vw; margin: 20px auto; border-radius: 14px; }
  .modal-header, .modal-body, .modal-footer { padding: 16px; }
  .modal-title { font-size: 16px !important; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .content-area { padding: 10px; }
  .navbar { padding: 8px 12px; }
  .page-title { font-size: 15px; max-width: 110px; }
  .notification-btn { width: 36px; height: 36px; }
  .notification-btn i { font-size: 16px; }
  .user-avatar { width: 32px; height: 32px; font-size: 12px; }
  .stat-value { font-size: 20px; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: 12px; }
  .modal-content { max-width: 100vw; margin: 0; }
  .modal-overlay.show .modal-content { transform: translateY(0); }
}

/* Touch Targets (Coarse Pointer) */
@media (pointer: coarse) {
  .btn-icon { width: 40px !important; height: 40px !important; }
  .nav-item { min-height: 44px; padding: 12px; }
  .page-btn { min-width: 36px; min-height: 36px; }
  .toggle-switch { width: 48px; height: 26px; }
  .toggle-slider::before { width: 20px; height: 20px; }
  .toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
}

/* resources/css/app.css atau di <style> Blade */
.bi.spin {
    display: inline-block;
    animation: button-icon-spin 1s linear infinite;
}

@keyframes button-icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cursor wait saat loading */
.cursor-wait {
    cursor: wait !important;
    opacity: 0.7;
    pointer-events: none; /* Extra safety: cegah click saat disabled */
}

/* =========================================
   🔘 TABLE ACTION BUTTONS (RESPONSIVE STACK)
   ========================================= */
.btn-action-group {
    display: inline-flex;
    flex-direction: row;       /* Default: Horizontal di layar lebar */
    align-items: center;
    gap: 8px;                  /* Ganti margin manual dengan gap */
}
.btn-action-group .btn-icon,
.btn-action-group .btn-sm-custom,
.btn-action-group .btn-custom {
    margin: 0 !important;      /* Hapus konflik margin bawaan/inline */
}

/* Saat viewport menyempit (Mobile / DevTools terbuka) */
@media (max-width: 1024px) {
    .btn-action-group {
        flex-direction: column; /* Tumpuk vertikal otomatis */
        gap: 6px;               /* Jarak vertikal antar tombol */
        align-items: center;    /* Rata tengah horizontal */
    }
}

.d-none{
    display: none !important;
}

/* =========================================
DETAIL PAGE (SHOW)
========================================= */
/* Breadcrumb */
.breadcrumb-custom {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-secondary); margin-bottom: 16px;
}
.breadcrumb-custom a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.breadcrumb-custom a:hover { color: var(--primary); }
.breadcrumb-custom .separator { color: var(--text-muted); }
.breadcrumb-custom .current { color: var(--text-primary); font-weight: 600; }

/* Detail Header */
.detail-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.detail-header-left { display: flex; align-items: center; gap: 16px; }
.detail-icon-box {
    width: 56px; height: 56px; border-radius: 14px;
    background: rgba(87,51,165,0.12); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.detail-title { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0; }
.detail-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.detail-header-right { display: flex; gap: 8px; flex-wrap: wrap; }

/* Section Card */
.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.detail-section.section-muted { background: #f8fafc; }

.section-title {
    font-size: 15px; font-weight: 700; color: #0f172a;
    margin: 0 0 20px 0; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--primary); font-size: 18px; }

.section-subtitle {
    font-size: 12px; font-weight: 600; color: #0f172a;
    margin: 0 0 5px 0; padding-bottom: 5px;
    display: flex; align-items: center; gap: 10px;
}

.section-subtitle i { color: var(--primary); font-size: 16px; }

/* Grid Form Detail */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}
.detail-grid .full-width { grid-column: 1 / -1; }
.detail-grid .form-group { margin-bottom: 0; }
.detail-grid label {
    font-size: 12px; font-weight: 600; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.detail-value {
    font-size: 14px; color: var(--text-primary); font-weight: 500;
    padding: 10px 14px; background: #f8fafc;
    border: 1px solid var(--border-color); border-radius: 10px;
    min-height: 42px; display: flex; align-items: center;
    word-break: break-word;
}
.detail-value.text-muted { color: var(--text-muted); font-style: italic; }
.detail-value.plain {
    background: transparent; border: none; padding: 4px 0;
}
.detail-value.pre-wrap { white-space: pre-wrap; line-height: 1.6; }

/* Summary Row */
.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.summary-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px; padding: 16px;
    border-left: 4px solid var(--primary);
}
.summary-item.warning { border-left-color: var(--warning); }
.summary-item.success { border-left-color: var(--success); }
.summary-item.info    { border-left-color: var(--info); }
.summary-item.danger  { border-left-color: var(--danger); }

.summary-label {
    font-size: 12px; color: var(--text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.summary-value { font-size: 18px; font-weight: 700; color: #0f172a; }
.summary-value.text-primary-color { color: var(--primary); }
.summary-value.text-warning-color { color: var(--warning); }
.summary-value.text-success-color { color: var(--success); }
.summary-value.text-info-color    { color: var(--info); }
.summary-value.text-danger-color  { color: var(--danger); }

/* =========================================
⏳ TIMELINE (FLEXBOX APPROACH)
========================================= */
.timeline {
    position: relative;
    /* overflow: hidden; */
}

.timeline-item {
    position: relative;
    display: flex;
    /* align-items: flex-start; */
    align-items: center; /* 🎯 Dot center terhadap seluruh content */
    gap: 16px;
    padding-bottom: 24px;
}
.timeline-item:last-child {
    padding-bottom: 0;
}

/* 🔵 Dot - Vertically aligned dengan title */
.timeline-dot {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--border-color);
    position: relative;
    z-index: 2;
    /* margin-top: 3px; */
    margin-top: 0; /* Reset margin karena sudah center */
}

/* Status variants */
.timeline-item.done .timeline-dot    { border-color: var(--success); background: var(--success); }
.timeline-item.active .timeline-dot  { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px rgba(87,51,165,0.15); }
.timeline-item.pending .timeline-dot { border-color: var(--border-color); }
.timeline-item.rejected .timeline-dot{ border-color: var(--danger); background: var(--danger); }

/* 📏 Garis penghubung - Presisi dari bawah dot ke dot berikutnya */
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;       /* 🎯 Center dot: (16px width / 2) - 1px = 7px */
    top: 40px;       /* 🎯 Mulai dari bawah dot: margin-top (3px) + height (16px) */
    bottom: -40px;    /* 🎯 Extend ke top dot berikutnya (padding-bottom 24px - margin-top 3px) */
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

/* Status line variants (opsional) */
.timeline-item.done:not(:last-child)::after    { background: var(--success); }
.timeline-item.active:not(:last-child)::after  { background: linear-gradient(to bottom, var(--primary) 0%, var(--border-color) 100%); }

/* 📦 Content */
.timeline-content {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.timeline-meta i {
    font-size: 11px;
    margin-right: 3px;
}

/* 📱 Responsive */
@media (max-width: 480px) {
    .timeline-item { gap: 12px; }
    .timeline-content { padding: 10px 12px; }
    .timeline-title { font-size: 13px; }
    .timeline-desc { font-size: 12px; }
    .timeline-item:not(:last-child)::after { top: 45px; bottom: -45px; }
}

/* =========================================
📎 PERMOHONAN FILES (PER FILE TYPE)
========================================= */
.file-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.file-type-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.file-type-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.file-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}
.file-type-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-type-header i {
    font-size: 20px;
    color: var(--primary);
}
.file-type-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.file-type-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-dark);
    padding: 3px 10px;
    border-radius: 20px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
}
@media (min-width: 769px) {
    .file-card { overflow: visible; }
}
@media (max-width: 768px) {
    .file-card { overflow: hidden; }
}
.file-card:hover {
    border-color: var(--primary);
    background: rgba(87,51,165,0.04);
    transform: translateY(-1px);
}

.file-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(87,51,165,0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.file-card-info {
    flex: 1;
    min-width: 0;
}
.file-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.file-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.file-card-meta .dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--text-muted);
}
.file-card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.file-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
}
.file-action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(87,51,165,0.06);
}
.file-action-btn.danger:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(187,33,36,0.06);
}

.file-empty-inline {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px dashed var(--border-color);
}
.file-empty-inline i {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .file-grid { grid-template-columns: 1fr; }
    .file-section { padding: 16px; }
}

/* Detail Page Responsive */
@media (max-width: 1024px) {
    .detail-header { flex-direction: column; align-items: flex-start; }
    .detail-header-right { width: 100%; }
}
@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; gap: 14px; }
    .summary-row { grid-template-columns: 1fr 1fr; }
    .file-list { grid-template-columns: 1fr; }
    .detail-section { padding: 16px; }
}
@media (max-width: 480px) {
    .summary-row { grid-template-columns: 1fr; }
    .detail-header-right .btn-custom { flex: 1; }
}

/* =========================================
 PASSWORD INPUT WRAPPER
========================================= */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control-custom {
    padding-right: 44px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 2;
}

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

.password-toggle i {
    font-size: 16px;
}

/* =========================================
📊 PASSWORD STRENGTH INDICATOR
========================================= */
.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-bar.weak { background: var(--danger); }
.strength-bar.fair { background: var(--warning); }
.strength-bar.good { background: var(--info); }
.strength-bar.strong { background: var(--success); }

.strength-text {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 100px;
    font-weight: 500;
}

.strength-text.weak { color: var(--danger); }
.strength-text.fair { color: var(--warning); }
.strength-text.good { color: var(--info); }
.strength-text.strong { color: var(--success); }

/* Password match message */
#passwordMatchMessage {
    font-size: 12px;
    font-weight: 500;
}

#passwordMatchMessage.match {
    color: var(--success);
}

#passwordMatchMessage.not-match {
    color: var(--danger);
}

/* =========================================
🔔 NOTIFICATION DROPDOWN ICONS
========================================= */
/* Ikon di dalam judul item notifikasi */
.notif-item-title i {
    margin-right: 6px;
    font-size: 14px;
    color: var(--primary);
    vertical-align: middle;
}

/* Warna spesifik untuk tipe notifikasi */
.notif-item-title i.bi-file-earmark-plus {
    color: var(--info); /* Biru untuk permohonan baru */
}

.notif-item-title i.bi-arrow-repeat {
    color: var(--warning); /* Kuning/Orange untuk update status */
}

/* Animasi bell icon di navbar saat ada notifikasi baru (opsional) */
.notification-btn.has-new i.bi-bell {
    animation: bellRing 1.8s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
    60% { transform: rotate(-2deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-1deg); }
    90% { transform: rotate(1deg); }
}