@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary: #065f32;
  --primary-light: #0d8b4e;
  --background: #f4f7f4;
  --surface: #ffffff;
  --surface-gradient: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --input-bg: #e5e7eb;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --primary: #0d8b4e;
  --background: #121212;
  --surface: #1e1e1e;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --input-bg: #374151;
}

body.dark-mode .glass-panel,
body.dark-mode .auth-card,
body.dark-mode .keuangan-card {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4);
}

body.dark-mode .sidebar {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .input-field {
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode .input-field:focus {
  background: #1e1e1e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

.glass-panel {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.input-icon-right {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.input-field {
  width: 100%;
  padding: 14px 16px 14px 40px;
  background: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  outline: none;
}

.input-field::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.input-field:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(6, 95, 50, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 95, 50, 0.2);
}

.btn-primary:hover {
  background: #054f2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(6, 95, 50, 0.3);
}

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

.btn-outline {
  background: var(--input-bg);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #d1d5db;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background-color: var(--background);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 32px;
  text-align: center;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

#loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

#loading.active {
  visibility: visible;
  opacity: 1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--input-bg);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile First Default (Bottom Nav) */

.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 70px;
  background-color: var(--background);
}

.sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--surface);
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.brand {
  display: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-around;
  gap: 0;
  overflow-x: hidden;
  padding: 0;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-item {
  padding: 8px 2px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  flex: 1;
  min-width: 0;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
}

.nav-item.active .nav-icon {
  color: var(--primary);
  fill: rgba(6, 95, 50, 0.1);
}

.btn-logout-container {
  display: none;
}

.main-content {
  padding: 20px 16px;
  overflow-x: hidden;
}

.header-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 8px;
  padding-top: 10px;
}

.profile-info h1 { font-size: 24px; margin-bottom: 2px; color: var(--text-main); font-weight: 800; }
.profile-info p { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 6px; height: 100%;
  background: var(--primary);
}

.stat-card.warning::before { background: var(--accent); }
.stat-card h3 { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; text-transform: uppercase; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.5px; }
.stat-card .value { font-size: 28px; font-weight: 800; color: var(--text-main); display: flex; align-items: baseline; gap: 6px;}
.stat-card .currency { font-size: 14px; color: var(--text-muted); font-weight: 600; }

.responsive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.section-wrapper {
  margin-bottom: 24px;
}

.laporan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.laporan-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--input-bg);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.laporan-item:hover {
  background: #d1d5db;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.laporan-item .pdf-icon {
  width: 40px; height: 40px;
  background: #fee2e2;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.laporan-item .pdf-icon svg { width: 22px; height: 22px; color: #dc2626; }
.laporan-item .laporan-info { flex: 1; min-width: 0; }
.laporan-item .laporan-title { color: var(--text-main); font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.laporan-item .laporan-date { color: var(--text-muted); font-size: 0.78rem; }
.laporan-item .laporan-badge { background: rgba(6, 95, 50, 0.1); color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }

.keuangan-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.keuangan-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.keuangan-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.keuangan-card-header .header-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.keuangan-card-header .header-icon svg { width: 18px; height: 18px; }
.keuangan-card-header h3 { font-weight: 700; font-size: 1rem; }
.keuangan-card-header .header-subtitle { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; margin-left: auto; flex-shrink: 0; }

.riwayat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 350px;
  overflow-y: auto;
}

.riwayat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--input-bg);
  border-radius: 10px;
  gap: 12px;
}

.riwayat-item .riwayat-info { flex: 1; min-width: 0; }
.riwayat-item .riwayat-date { font-weight: 500; font-size: 0.85rem; color: var(--text-main); margin-bottom: 2px; }
.riwayat-item .riwayat-status { font-size: 0.78rem; }
.riwayat-item .riwayat-nominal { font-weight: 700; font-size: 0.9rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; }

.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-wrapper:hover { border-color: var(--primary); background: rgba(6, 95, 50, 0.02); }
.file-upload-wrapper input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload-wrapper .upload-icon { width: 36px; height: 36px; background: rgba(6, 95, 50, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-upload-wrapper .upload-icon svg { width: 18px; height: 18px; color: var(--primary); }
.file-upload-text { font-size: 0.85rem; color: var(--text-muted); }
.file-upload-text strong { color: var(--primary); }

/* Desktop Layout (Sidebar) */

@media (min-width: 769px) {
  .dashboard-layout {
    grid-template-columns: 260px 1fr;
    flex-direction: row;
    padding-bottom: 0;
    display: grid;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--surface);
    border-top: none;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    justify-content: flex-start;
    align-items: stretch;
    box-shadow: none;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
  }
  .brand svg { width: 32px; height: 32px; }
  .brand h2 { color: var(--primary); font-size: 20px; font-weight: 800; }

  .nav-menu {
    flex-direction: column;
    gap: 8px;
  }

  .nav-item {
    padding: 14px 16px;
    font-size: 0.95rem;
    flex-direction: row;
    border-radius: 12px;
  }
  .nav-item:hover, .nav-item.active {
    background: rgba(6, 95, 50, 0.08);
  }

  .btn-logout-container {
    display: block;
    margin-top: auto;
  }

  .main-content {
    padding: 40px 48px;
  }
  .header-area {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 0;
  }
  .profile-info h1 { font-size: 32px; }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  .responsive-grid {
    grid-template-columns: minmax(auto, 600px) 1fr;
    align-items: start;
  }
  .grid-2-col-desktop {
    grid-template-columns: 1fr 1fr;
  }
  .keuangan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* Utility & Component Classes */

.darkmode-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border: 1px solid rgba(0,0,0,0.1);
  transition: var(--transition);
}

.darkmode-toggle-row:hover {
  background: var(--input-bg);
  border-color: var(--primary);
}

.auth-header-wrapper { text-align: left; margin-bottom: 30px; }
.auth-brand-flex { display: inline-flex; margin-bottom: 16px; }
.auth-brand-logo { width: 48px; object-fit: contain; }
.auth-title { color: var(--primary); font-size: 28px; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.auth-form-group { text-align: left; }
.auth-btn-submit { width: 100%; margin-top: 10px; }
.auth-divider { display: flex; align-items: center; margin: 24px 0; }
.auth-divider-line { flex-grow: 1; height: 1px; background: #e5e7eb; }
.auth-divider-text { padding: 0 12px; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }
.auth-footer { margin-top: 30px; padding-top: 20px; }
.auth-footer-logos { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; align-items: center; }
.auth-footer-text-main { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.auth-footer-text-sub { font-size: 0.6rem; color: #9ca3af; }

.header-profile-flex { display: flex; align-items: center; gap: 16px; }
.avatar-container { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--input-bg); border: 2px solid var(--primary); flex-shrink: 0; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-name-title { margin-bottom: 4px; }
.profile-badge-text { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

.section-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-weight: 800; font-size: 1.2rem; }
.section-title-lg { margin-bottom: 20px; font-weight: 800; }

.preview-see-all {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(6, 95, 50, 0.08);
  transition: var(--transition);
  white-space: nowrap;
}

.preview-see-all:hover {
  background: rgba(6, 95, 50, 0.15);
}

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-grid .glass-panel h4 { color: var(--text-main) !important; }
.news-grid .glass-panel { overflow: visible !important; }

/* Hide ID badge and unwanted elements from third-party scripts */
span[style*="z-index: 100"], 
span[style*="z-index:100"],
#kegiatan-list span[style*="fit-content"],
.glass-panel span[style*="fit-content"] {
  display: none !important;
}

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.digilib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.digilib-grid .glass-panel { display: flex; flex-direction: column; height: 100%; }
.digilib-grid .glass-panel h4 { flex-grow: 1; }
.digilib-grid .glass-panel .btn { margin-top: auto; }

/* Mobile: Berita & Digilib scroll horizontal */
@media (max-width: 768px) {
  .news-grid,
  .digilib-grid,
  .schedule-list.horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 8px;
  }

  .news-grid::-webkit-scrollbar,
  .digilib-grid::-webkit-scrollbar,
  .schedule-list.horizontal::-webkit-scrollbar {
    height: 4px;
  }

  .news-grid::-webkit-scrollbar-track,
  .digilib-grid::-webkit-scrollbar-track,
  .schedule-list.horizontal::-webkit-scrollbar-track {
    background: transparent;
  }

  .news-grid::-webkit-scrollbar-thumb,
  .digilib-grid::-webkit-scrollbar-thumb,
  .schedule-list.horizontal::-webkit-scrollbar-thumb {
    background: rgba(6, 95, 50, 0.2);
    border-radius: 10px;
  }

  .news-grid > *,
  .digilib-grid > *,
  .schedule-list.horizontal > * {
    flex: 0 0 75%;
    min-width: 220px;
    max-width: 280px;
    scroll-snap-align: start;
  }
}

.form-input-readonly { opacity: 0.6; cursor: not-allowed; }
.form-select-pointer { cursor: pointer; }
.form-msg-text { margin-bottom: 15px; font-weight: 600; font-size: 0.85rem; }
.form-msg-text-center { margin-bottom: 15px; font-weight: 600; font-size: 0.85rem; text-align: center; }

.reset-pwd-area { margin-top: 30px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.btn-reset-toggle { width: 100%; border: 1px solid var(--accent); color: var(--accent); }
.reset-pwd-form-container { display: none; margin-top: 20px; background: #fffbeb; padding: 20px; border-radius: 12px; border: 1px solid #fde68a; }
.reset-pwd-label { color: var(--accent); }
.reset-pwd-msg { font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.btn-save-pwd { width: 100%; background: var(--accent); color: white; }

.referral-card { padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.referral-icon-box { background: rgba(6, 95, 50, 0.1); color: var(--primary); padding: 20px; border-radius: 50%; width: 80px; height: 80px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.referral-icon-box svg { width: 40px; height: 40px; }
.referral-title { margin-bottom: 8px; color: var(--text-main); font-weight: 800; }
.referral-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.referral-code-box { background: #f3f4f6; padding: 16px 30px; border-radius: 12px; border: 2px dashed #9ca3af; }
.referral-code-text { color: var(--primary); letter-spacing: 4px; font-weight: 800; }

.scanner-card { padding: 24px; text-align: center; }
.scanner-title { margin-bottom: 6px; }
.scanner-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.qr-reader-container { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; }
.qr-result-box { background: #f8fafc; padding: 12px; border-radius: 8px; margin-top: 16px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.qr-result-text { font-weight: 700; color: var(--text-main); font-size: 0.9rem; word-break: break-all; margin: 0; }
.scanner-controls { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.btn-scan { flex: 1; }
.btn-scan svg { width: 18px; height: 18px; margin-right: 8px; }
.btn-stop-scan { flex: 1; background-color: var(--danger); color: white; display: none; }

.schedule-title { margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; padding-bottom: 10px; }
.schedule-list { display: flex; flex-direction: column; gap: 16px; }

.finance-input-prefix { position: absolute; left: 16px; font-weight: 700; color: var(--text-muted); }
.finance-input-with-prefix { padding-left: 45px; }
.finance-file-name { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-top: 8px; }

.btn-full-width { width: 100%; }
.btn-danger-bold { background: #fee2e2; color: #dc2626; font-weight: 700; }
.text-muted { color: var(--text-muted); }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.w-100 { display: block; width: 100%; }

/* ── Notification System ─────────────────────────────── */

.notif-wrapper {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.notif-btn {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
  padding: 0;
}

.notif-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.notif-btn svg {
  width: 22px;
  height: 22px;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  animation: notif-pop 0.3s ease-out;
}

@keyframes notif-pop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 500;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.notif-panel-header h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.notif-mark-read {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.notif-mark-read:hover { text-decoration: underline; }

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}

.notif-item:hover { background: var(--input-bg); }

.notif-item.unread { background: rgba(6, 95, 50, 0.04); }

.notif-item.unread:hover { background: rgba(6, 95, 50, 0.08); }

.notif-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 95, 50, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon-box svg { width: 18px; height: 18px; }

.notif-icon-box.warning { background: rgba(217, 119, 6, 0.1); color: var(--accent); }
.notif-icon-box.danger  { background: rgba(220, 38, 38, 0.1); color: var(--danger); }

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

.notif-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 4px;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  align-self: center;
}

/* Responsive: on desktop, panel goes left if near right edge */
@media (max-width: 480px) {
  .notif-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

