/* ===== ISIT-MS ADMIN SHARED STYLES ===== */
/* Modern glassmorphism design with sidebar navigation */

:root {
  --primary: #0f766e;
  --primary-light: #14b8a6;
  --primary-dark: #0d5c56;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg: #f0f4f8;
  --text: #1e293b;
  --text-muted: #64748b;
  --sidebar-bg: #0d1b2a;
  --sidebar-hover: rgba(20, 184, 166, 0.12);
  --sidebar-active: rgba(20, 184, 166, 0.18);
  --card-bg: rgba(255,255,255,0.85);
  --card-border: rgba(255,255,255,0.5);
  --radius: 16px;
  --radius-sm: 12px;
  --sidebar-width: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #0d1b2a 0%, #1b2838 100%);
  z-index: 1000;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-header {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 64px;
}

.sidebar-logo {
  width: 40px; height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.sidebar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}

.sidebar-brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  font-family: 'Inter', sans-serif;
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  padding: 0.75rem 0.75rem 0.35rem;
  white-space: nowrap;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: 2px;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 0.95rem;
  min-width: 20px;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--primary-light);
  font-weight: 600;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-user:hover { background: rgba(255,255,255,0.06); }

.sidebar-avatar {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1b4b;
  font-weight: 700;
  font-size: 0.85rem;
}

.sidebar-user-info { flex: 1; overflow: hidden; }

.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.3s;
}

/* Top Bar */
.topbar {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

.topbar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-search {
  position: relative;
}

.topbar-search input {
  width: 240px;
  height: 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 1rem 0 2.5rem;
  font-size: 0.85rem;
  background: #f8fafc;
  transition: all 0.2s;
}

.topbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
  background: #fff;
  outline: none;
  width: 300px;
}

.topbar-search > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.jenjang-pills {
  display: flex;
  gap: 0.35rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
}

.jenjang-pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.jenjang-pill.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.jenjang-pill:hover:not(.active) { color: var(--text); }

.btn-logout {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 1.5rem;
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.glass-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glass-card-header h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glass-card-header h6 i {
  color: var(--primary);
  font-size: 0.9rem;
}

.glass-card-body { padding: 1.25rem; }

/* ===== STAT CARDS ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.stat-card .stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Card color variants */
.stat-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-blue .stat-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.stat-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-green .stat-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.stat-amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-amber .stat-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stat-red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-red .stat-icon { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.stat-purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-purple .stat-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.stat-cyan::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.stat-cyan .stat-icon { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.data-table td {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
}

/* ===== BADGES ===== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-hadir { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-sakit { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge-izin { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.badge-alfa { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-draft { background: rgba(100,116,139,0.1); color: #475569; }
.badge-active { background: rgba(16, 185, 129, 0.1); color: #059669; }
.badge-inactive { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* ===== FORMS ===== */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid #e2e8f0;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline-custom {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== TABS ===== */
.nav-modern {
  display: flex;
  gap: 0.35rem;
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.nav-modern .nav-tab {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-modern .nav-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-modern .nav-tab:hover:not(.active) {
  color: var(--text);
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.toast-modern {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  margin-top: 0.5rem;
}

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

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== ROW ITEM (for lists) ===== */
.row-item {
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #fff;
  transition: all 0.2s;
}

.row-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.badge-id {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary);
  font-family: monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* ===== ALERT ===== */
.alert-modern {
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* ===== GRID HELPERS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar-search input { width: 160px; }
  .topbar-search input:focus { width: 200px; }
  .jenjang-pills { display: none; }
}

/* ================================================================
   MICRO-INTERACTIONS
   ================================================================ */

/* ===== CUSTOM TOOLTIPS ===== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.2s ease;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::before {
  opacity: 1;
}

/* Tooltip bottom variant */
[data-tooltip-bottom] {
  position: relative;
}

[data-tooltip-bottom]::after {
  content: attr(data-tooltip-bottom);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #1e293b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

[data-tooltip-bottom]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
}

.skeleton-text.sm { width: 40%; }
.skeleton-text.md { width: 65%; }
.skeleton-text.lg { width: 85%; }
.skeleton-text.xl { width: 100%; }

.skeleton-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.skeleton-rect {
  height: 120px;
}

.skeleton-stat {
  height: 90px;
  border-radius: var(--radius);
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.skeleton-row .skeleton-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
}

.skeleton-row .skeleton-lines {
  flex: 1;
}

.skeleton-row .skeleton-lines .skeleton-text:last-child {
  margin-bottom: 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== SKELETON FADE-OUT ===== */
.skeleton-fade {
  animation: skeletonFadeOut 0.4s ease forwards;
}

@keyframes skeletonFadeOut {
  from { opacity: 1; }
  to { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
}

/* ===== PAGE TRANSITIONS ===== */
.page-enter {
  animation: pageEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.page-fade {
  animation: pageFade 0.3s ease;
}

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

/* ===== STAGGER REVEAL ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ===== HOVER LIFT ===== */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* ===== HOVER GLOW ===== */
.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), 0 8px 24px rgba(0,0,0,0.06);
}

/* ===== ICON BOUNCE ON HOVER ===== */
.bounce-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-icon:hover {
  transform: scale(1.2);
}

/* ===== BUTTON ACTIVE PRESS ===== */
.btn-primary-custom:active,
.btn-outline-custom:active,
.btn-logout:active {
  transform: scale(0.97);
}

/* ===== SMOOTH FOCUS RING ===== */
.form-control:focus,
.form-select:focus,
.nav-tab:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1), 0 0 0 6px rgba(15, 118, 110, 0.04);
}

/* ===== PULSE NOTIFICATION ===== */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ===== PROGRESS BAR ANIMATION ===== */
.animated-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.animated-progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.animated-progress .bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== FLOATING LABEL ===== */
.float-label-group {
  position: relative;
}

.float-label-group .float-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  background: #fff;
  padding: 0 0.25rem;
}

.float-label-group .form-control:focus ~ .float-label,
.float-label-group .form-control:not(:placeholder-shown) ~ .float-label {
  top: 0;
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 600;
}

/* ===== TABLE ROW HOVER ===== */
.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.03);
}

/* ===== BADGE PULSE ===== */
.badge-active {
  position: relative;
}

.badge-active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  margin-right: 0.35rem;
  animation: pulseDot 2s ease-in-out infinite;
}

/* ===== SIDEBAR LINK INDICATOR ===== */
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary-light);
  border-radius: 0 3px 3px 0;
}

.sidebar-link {
  position: relative;
}

/* ===== NUMBER COUNTER ANIMATION ===== */
.count-up {
  display: inline-block;
}

/* ===== STAT VALUE ANIMATION ===== */
.stat-value {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-value.animating {
  animation: countBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Staggered entrance for stat cards */
.stat-grid .stat-card {
  opacity: 0;
  transform: translateY(16px);
  animation: statCardEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-grid .stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-grid .stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-grid .stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-grid .stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-grid .stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-grid .stat-card:nth-child(6) { animation-delay: 0.3s; }

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

/* ===== TOAST ENHANCED ===== */
.toast-modern {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-modern.toast-enter {
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-modern.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(30px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(30px) scale(0.95); }
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION COLOR ===== */
::selection {
  background: rgba(15, 118, 110, 0.15);
  color: var(--text);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   DARK MODE
   ================================================================ */

.dark-mode {
  --bg: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.85);
  --card-border: rgba(51, 65, 85, 0.5);
  --sidebar-bg: #020617;
  --sidebar-hover: rgba(20, 184, 166, 0.15);
  --sidebar-active: rgba(20, 184, 166, 0.2);
}

.dark-mode body { background: var(--bg); color: var(--text); }

/* Sidebar */
.dark-mode .sidebar {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.dark-mode .sidebar-header { border-bottom-color: rgba(255,255,255,0.04); }
.dark-mode .sidebar-footer { border-top-color: rgba(255,255,255,0.04); }
.dark-mode .sidebar-user:hover { background: rgba(255,255,255,0.04); }

/* Topbar */
.dark-mode .topbar {
  background: rgba(15, 23, 42, 0.85);
  border-bottom-color: rgba(255,255,255,0.04);
}

.dark-mode .topbar-title { color: #e2e8f0; }
.dark-mode .topbar-subtitle { color: #94a3b8; }

.dark-mode .topbar-search input {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

.dark-mode .topbar-search input::placeholder { color: #64748b; }
.dark-mode .topbar-search input:focus {
  background: #1e293b;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.dark-mode .topbar-search > i { color: #64748b; }

.dark-mode .menu-toggle { color: #e2e8f0; }

/* Buttons */
.dark-mode .btn-logout {
  border-color: #334155;
  color: #94a3b8;
}
.dark-mode .btn-logout:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}

.dark-mode .btn-primary-custom {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #0f172a;
}
.dark-mode .btn-primary-custom:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dark-mode .btn-outline-custom {
  border-color: var(--primary-light);
  color: var(--primary-light);
}
.dark-mode .btn-outline-custom:hover {
  background: var(--primary-light);
  color: #0f172a;
}

/* Cards */
.dark-mode .glass-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.5);
}
.dark-mode .glass-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.dark-mode .glass-card-header {
  border-bottom-color: rgba(255,255,255,0.04);
}
.dark-mode .glass-card-header h6 { color: #e2e8f0; }

/* Stat Cards */
.dark-mode .stat-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(51, 65, 85, 0.5);
}
.dark-mode .stat-card .stat-value { color: #e2e8f0; }

/* Tables */
.dark-mode .data-table th {
  color: #94a3b8;
  border-bottom-color: #334155;
}
.dark-mode .data-table td {
  color: #cbd5e1;
  border-bottom-color: rgba(51, 65, 85, 0.5);
}
.dark-mode .data-table tbody tr:hover {
  background: rgba(20, 184, 166, 0.05);
}

/* Forms */
.dark-mode .form-control,
.dark-mode .form-select {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}
.dark-mode .form-control::placeholder { color: #64748b; }
.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
  background: #1e293b;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
  color: #e2e8f0;
}
.dark-mode .form-label { color: #94a3b8; }
.dark-mode .form-text { color: #64748b; }
.dark-mode .form-check-label { color: #cbd5e1; }
.dark-mode .form-check-input { background-color: #1e293b; border-color: #475569; }
.dark-mode .form-check-input:checked { background-color: var(--primary-light); border-color: var(--primary-light); }

/* Tabs */
.dark-mode .nav-modern { background: #1e293b; }
.dark-mode .nav-modern .nav-tab { color: #94a3b8; }
.dark-mode .nav-modern .nav-tab.active {
  background: #0f172a;
  color: var(--primary-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.dark-mode .nav-modern .nav-tab:hover:not(.active) { color: #e2e8f0; }

/* Jenjang Pills */
.dark-mode .jenjang-pills { background: #1e293b; }
.dark-mode .jenjang-pill { color: #94a3b8; }
.dark-mode .jenjang-pill.active {
  background: #0f172a;
  color: var(--primary-light);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* Row Items */
.dark-mode .row-item {
  background: #1e293b;
  border-color: rgba(51, 65, 85, 0.5);
}
.dark-mode .row-item:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Badge */
.dark-mode .badge-id {
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary-light);
}

/* Toast */
.dark-mode .toast-modern {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

/* Loading */
.dark-mode .loading-overlay {
  background: rgba(15, 23, 42, 0.85);
}
.dark-mode .loading-spinner {
  border-color: #334155;
  border-top-color: var(--primary-light);
}

/* Skeleton */
.dark-mode .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #273449 50%, #1e293b 75%);
  background-size: 200% 100%;
}

/* Alert */
.dark-mode .alert-modern { color: #e2e8f0; }

/* Dropdowns / Modals */
.dark-mode .modal-content {
  background: #1e293b;
  border-color: #334155;
  color: #e280f0;
}
.dark-mode .modal-header { border-bottom-color: #334155; }
.dark-mode .modal-footer { border-top-color: #334155; }
.dark-mode .modal-title { color: #e2e8f0; }

/* Tooltip dark */
.dark-mode [data-tooltip]::after { background: #e2e8f0; color: #0f172a; }
.dark-mode [data-tooltip]::before { border-top-color: #e2e8f0; }

/* Select dropdown */
.dark-mode .form-select option { background: #1e293b; color: #e2e8f0; }

/* Toggle switch dark */
.dark-mode .toggle-slider { background: #334155; }
.dark-mode .toggle-switch input:checked + .toggle-slider { background: var(--primary-light); }

/* Quick stat */
.dark-mode .quick-stat { background: #1e293b; }
.dark-mode .quick-stat .value { color: var(--primary-light); }

/* Settings nav */
.dark-mode .settings-nav { background: rgba(30, 41, 59, 0.85); border-color: rgba(51, 65, 85, 0.5); }
.dark-mode .settings-nav-item { color: #94a3b8; }
.dark-mode .settings-nav-item:hover { background: rgba(20, 184, 166, 0.08); color: #e2e8f0; }
.dark-mode .settings-nav-item.active { background: rgba(20, 184, 166, 0.12); color: var(--primary-light); }

/* Security item */
.dark-mode .security-item { border-color: rgba(51, 65, 85, 0.5); background: transparent; }
.dark-mode .security-item:hover { border-color: var(--primary-light); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.dark-mode .security-title { color: #e2e8f0; }

/* Activity item */
.dark-mode .activity-item { border-bottom-color: rgba(51, 65, 85, 0.5); }
.dark-mode .activity-text { color: #cbd5e1; }

/* Setting row */
.dark-mode .setting-row { border-bottom-color: rgba(51, 65, 85, 0.5); }
.dark-mode .setting-label { color: #e2e8f0; }

/* Import page */
.dark-mode .drop-zone { background: #0f172a; border-color: #334155; }
.dark-mode .drop-zone:hover { border-color: var(--primary-light); background: rgba(20, 184, 166, 0.03); }
.dark-mode .drop-zone.drag-over { border-color: var(--primary-light); background: rgba(20, 184, 166, 0.06); }
.dark-mode .drop-zone-title { color: #e2e8f0; }
.dark-mode .file-info-card { background: rgba(20, 184, 166, 0.06); border-color: rgba(20, 184, 166, 0.15); }
.dark-mode .preview-wrapper { border-color: #334155; }
.dark-mode .preview-table th { background: #0f172a; color: #94a3b8; border-bottom-color: #334155; }
.dark-mode .preview-table td { color: #cbd5e1; border-bottom-color: rgba(51, 65, 85, 0.5); }
.dark-mode .preview-table tbody tr:nth-child(even) { background: rgba(15, 23, 42, 0.5); }
.dark-mode .preview-table tbody tr:hover { background: rgba(20, 184, 166, 0.05); }
.dark-mode .import-type-toggle { background: #1e293b; }
.dark-mode .import-type-btn { color: #94a3b8; }
.dark-mode .import-type-btn.active { background: #0f172a; color: var(--primary-light); }
.dark-mode .import-result-card.success { background: rgba(16,185,129,0.08); }
.dark-mode .import-result-card.partial { background: rgba(245,158,11,0.08); }
.dark-mode .import-result-card.error { background: rgba(239,68,68,0.08); }
.dark-mode .result-stat { background: rgba(15, 23, 42, 0.5); }
.dark-mode .result-errors { background: rgba(15, 23, 42, 0.5); }
.dark-mode .result-title { color: #e2e8f0; }
.dark-mode .history-item { border-color: rgba(51, 65, 85, 0.5); background: transparent; }
.dark-mode .history-item:hover { border-color: var(--primary-light); }
.dark-mode .history-title { color: #e2e8f0; }

/* Template modal */
.dark-mode .modal-content { background: #1e293b; }

/* Dark mode toggle button */
.dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dark-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 118, 110, 0.06);
}

.dark-mode .dark-toggle {
  border-color: #475569;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.dark-mode .dark-toggle:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.dark-toggle .icon-sun,
.dark-toggle .icon-moon {
  position: absolute;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.dark-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.dark-mode .dark-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
.dark-mode .dark-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Smooth transition for dark mode */
.dark-mode-transition,
.dark-mode-transition *,
.dark-mode-transition *::before,
.dark-mode-transition *::after {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION
   ================================================================ */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 0.35rem 0;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.dark-mode .bottom-nav {
  background: rgba(15, 23, 42, 0.92);
  border-top-color: rgba(255,255,255,0.04);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  min-width: 52px;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

.bottom-nav-item i {
  font-size: 1.15rem;
  transition: all 0.2s ease;
}

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

.bottom-nav-item.active i {
  transform: scale(1.1);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
}

/* Menu button (center) */
.bottom-nav-menu {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
  transition: all 0.2s ease;
  margin-top: -12px;
  border: 3px solid rgba(255,255,255,0.9);
}

.dark-mode .bottom-nav-menu {
  border-color: rgba(15, 23, 42, 0.9);
}

.bottom-nav-menu:active {
  transform: scale(0.92);
}

.bottom-nav-menu:hover {
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.4);
}

/* Ripple on bottom nav items */
.bottom-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}

.bottom-nav-item:active::after {
  opacity: 0.08;
}

/* Show on mobile */
@media (max-width: 768px) {
  .bottom-nav { display: block; }
  .page-content { padding-bottom: 5rem !important; }
  .main-content { padding-bottom: 0; }
}

@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}

/* ================================================================
   NOTIFICATION BELL & PANEL
   ================================================================ */

.notif-wrapper { position: relative; }

.notif-bell {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  position: relative;
}

.notif-bell:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 118, 110, 0.06);
}

.notif-bell.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
}

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  animation: notifPulse 2s ease-in-out infinite;
}

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

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 9999;
  display: none;
  overflow: hidden;
  animation: notifSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-panel.show { display: block; }

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.notif-header h6 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.notif-mark-read {
  background: none;
  border: none;
  font-size: 0.7rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
}

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

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

.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.notif-item:hover { background: #f8fafc; }

.notif-item.unread { background: rgba(15, 118, 110, 0.03); }

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.notif-icon {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

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

.notif-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.35;
}

.notif-text strong { font-weight: 600; }

.notif-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
}

.notif-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.notif-empty i {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.3;
}

.notif-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.notif-footer button {
  background: none;
  border: none;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
}

.notif-footer button:hover { color: #ef4444; }

.notif-poll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 0.35rem;
  animation: notifPulse 2s ease-in-out infinite;
}

/* Dark mode notifications */
.dark-mode .notif-bell { border-color: #334155; color: #94a3b8; }
.dark-mode .notif-bell:hover { border-color: var(--primary-light); color: var(--primary-light); }
.dark-mode .notif-panel { background: #1e293b; border-color: #334155; }
.dark-mode .notif-header { border-bottom-color: #334155; }
.dark-mode .notif-header h6 { color: #e2e8f0; }
.dark-mode .notif-item { border-bottom-color: rgba(51,65,85,0.5); }
.dark-mode .notif-item:hover { background: rgba(51,65,85,0.3); }
.dark-mode .notif-item.unread { background: rgba(20,184,166,0.06); }
.dark-mode .notif-text { color: #cbd5e1; }
.dark-mode .notif-footer { border-top-color: #334155; }
