/* ==========================================================================
   OCULUS EDUMANAGER - LIGHT THEME & CLEAN SAAS AESTHETICS
   ========================================================================== */

:root {
  /* Color Palette - Clean Light Mode */
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-sidebar: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #4f46e5;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Brand Accents - Vibrant Hot Pink & Purple Theme */
  --primary: #ec407a;
  --primary-hover: #d81b60;
  --primary-glow: rgba(236, 64, 122, 0.25);
  --accent-cyan: #29b6f6;
  --accent-pink: #ec407a;
  --accent-purple: #7e57c2;
  --accent-orange: #ff7043;

  /* Status Colors */
  --status-lead-bg: #eff6ff;
  --status-lead-fg: #2563eb;
  --status-demo-bg: #f3e8ff;
  --status-demo-fg: #9333ea;
  --status-followup-bg: #fef3c7;
  --status-followup-fg: #d97706;
  --status-penawaran-bg: #fce7f3;
  --status-penawaran-fg: #db2777;
  --status-deal-bg: #d1fae5;
  --status-deal-fg: #059669;
  --status-cancel-bg: #fee2e2;
  --status-cancel-fg: #dc2626;

  /* Device Status Colors */
  --dev-ready: #10b981;
  --dev-rented: #4f46e5;
  --dev-repair: #ef4444;
  --dev-charge: #f59e0b;

  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-main: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 14px rgba(79, 70, 229, 0.25);
  --glass-blur: blur(12px);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(2, 132, 199, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* App Container Layout */
#app {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR (LIGHT MODE)
   ========================================================================== */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 20px 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ec407a, #7e57c2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 64, 122, 0.35);
}

.brand-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.brand-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--primary);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(236, 64, 122, 0.32);
}

.nav-item.active i {
  color: #ffffff;
}

.nav-item i {
  width: 18px;
  height: 18px;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border-color);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.82rem;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.main-wrapper {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-header-title {
  max-width: calc(100% - 200px);
}

.page-header-title h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-header-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.quick-stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #047857;
  font-weight: 700;
}

.quick-stat-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px #059669;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Page Containers */
.content-body {
  padding: 24px 28px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.page-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-view.active {
  display: block;
}

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

/* ==========================================================================
   DASHBOARD KPI CARDS & CHARTS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

.stat-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-green { background: #d1fae5; color: #059669; }
.icon-orange { background: #fef3c7; color: #d97706; }

.stat-value {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

/* Vibrant Gradient Stat Cards (Inspired by Reference UI) */
.stat-card-gradient {
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 125px;
}

.stat-card-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.18);
}

.stat-card-gradient-pink {
  background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%);
}

.stat-card-gradient-purple {
  background: linear-gradient(135deg, #7e57c2 0%, #512da8 100%);
}

.stat-card-gradient-cyan {
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
}

.stat-card-gradient-orange {
  background: linear-gradient(135deg, #ff7043 0%, #f57c00 100%);
}

.stat-card-gradient .stat-label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-card-gradient .stat-value {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.stat-card-gradient .stat-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.74rem;
}

.stat-card-gradient .card-sparkline-bg {
  position: absolute;
  right: -10px;
  bottom: -10px;
  opacity: 0.28;
  pointer-events: none;
  width: 110px;
  height: 60px;
}

/* Mini Stat Pill Bar below main chart */
.mini-stat-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.mini-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.mini-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mini-icon-pink { background: linear-gradient(135deg, #ec407a, #d81b60); }
.mini-icon-purple { background: linear-gradient(135deg, #7e57c2, #512da8); }
.mini-icon-cyan { background: linear-gradient(135deg, #29b6f6, #0288d1); }
.mini-icon-orange { background: linear-gradient(135deg, #ff7043, #f57c00); }

/* Charts Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
}

.card-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.015em;
}

.chart-wrapper {
  position: relative;
  height: 280px;
  width: 100%;
}

/* Upcoming Follow Up List */
.followup-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.followup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.followup-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.school-name-sm {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.school-meta-sm {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-lead { background: var(--status-lead-bg); color: var(--status-lead-fg); border: 1px solid #bfdbfe; }
.badge-demo { background: var(--status-demo-bg); color: var(--status-demo-fg); border: 1px solid #e9d5ff; }
.badge-followup { background: var(--status-followup-bg); color: var(--status-followup-fg); border: 1px solid #fde68a; }
.badge-penawaran { background: var(--status-penawaran-bg); color: var(--status-penawaran-fg); border: 1px solid #fbcfe8; }
.badge-deal { background: var(--status-deal-bg); color: var(--status-deal-fg); border: 1px solid #a7f3d0; }
.badge-cancel { background: var(--status-cancel-bg); color: var(--status-cancel-fg); border: 1px solid #fecaca; }
.badge-tier-a { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; font-size: 0.68rem; font-weight: bold; }
.badge-tier-b { background: #f3e8ff; color: #6b21a8; border: 1px solid #e9d5ff; font-size: 0.68rem; font-weight: bold; }
.badge-tier-c { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; font-size: 0.68rem; font-weight: bold; }

/* ==========================================================================
   CRM KANBAN & SCHOOL MANAGEMENT
   ========================================================================== */
.crm-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  min-width: 280px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrapper .form-control {
  padding-left: 42px;
}

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

.form-select {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.form-select option {
  background: #ffffff;
  color: var(--text-main);
}

.view-toggle {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Kanban Board Layout */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, 280px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-behavior: smooth;
  align-items: stretch;
}

.kanban-column {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}

.col-lead .column-header { border-color: var(--status-lead-fg); }
.col-demo .column-header { border-color: var(--status-demo-fg); }
.col-followup .column-header { border-color: var(--status-followup-fg); }
.col-penawaran .column-header { border-color: var(--status-penawaran-fg); }
.col-deal .column-header { border-color: var(--status-deal-fg); }

.column-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
}

/* Kanban Cards */
.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: grab;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.kanban-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-main);
}

.card-school-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-jenjang-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  display: inline-block;
  font-weight: 700;
}

.card-contact {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.card-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 8px;
  border-radius: 6px;
  line-height: 1.3;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.btn-icon {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Data Table View */
.data-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: #1e293b;
  padding: 14px 18px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: none;
}

.data-table td {
  padding: 14px 18px;
  font-size: 0.86rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.data-table tr:hover {
  background: #f8fafc;
}

/* ==========================================================================
   MONITORING UNIT OCULUS (DEVICE MANAGEMENT)
   ========================================================================== */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.device-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-id-badge {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dev-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

.dev-badge-ready { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.dev-badge-rented { background: #e0e7ff; color: #4338ca; border: 1px solid #c7d2fe; }
.dev-badge-repair { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.dev-badge-charge { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.device-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
}

.battery-bar-container {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.battery-track {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.battery-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.battery-high { background: var(--dev-ready); }
.battery-mid { background: var(--dev-charge); }
.battery-low { background: var(--dev-repair); }

.device-location {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.accessories-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.acc-tag {
  font-size: 0.65rem;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 600;
}

.acc-tag.missing {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
  text-decoration: line-through;
  opacity: 0.7;
}

.device-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
  color: var(--text-muted);
  font-weight: 600;
}

.acc-tag.missing {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.device-location {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   VR/AR CURRICULUM CATALOG
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-main);
}

.catalog-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.catalog-banner {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
}

.catalog-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 80%);
}

.type-badge-vr {
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.type-badge-ar {
  background: linear-gradient(135deg, var(--accent-cyan), #0d9488);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.jenjang-badge {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.catalog-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.catalog-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.catalog-subject {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.catalog-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   MODAL DIALOGS (LIGHT THEME)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: all 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}

/* Notifications Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--primary);
  border-left: 4px solid var(--primary);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-main);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
    padding: 16px 10px;
  }
  .brand-title, .brand-tag, .nav-item span, .user-info {
    display: none;
  }
  .brand {
    justify-content: center;
    padding: 0 0 20px 0;
  }
  .main-wrapper {
    margin-left: 80px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kanban-board {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .kanban-card {
    padding: 12px;
  }
  .card-note {
    display: none;
  }
  .column-title {
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0 16px;
  }
  .content-body {
    padding: 16px;
  }
  .crm-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-wrapper {
    min-width: 100%;
  }
}

/* ==========================================================================
   MARKETING TRACKING & URGENCY ENHANCEMENTS
   ========================================================================== */

/* Urgency Card Borders */
.kanban-card.urgency-overdue {
  border: 2px solid #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15) !important;
}

.kanban-card.urgency-today {
  border: 2px solid #f97316 !important;
  background: #fff7ed !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.15) !important;
}

.kanban-card.urgency-week {
  border: 1.5px solid #eab308 !important;
  background: #fefce8 !important;
}

/* Urgency Badges */
.badge-urgency-overdue {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  animation: pulse-overdue 2s infinite;
}

@keyframes pulse-overdue {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-urgency-today {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.badge-urgency-week {
  background: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

/* Sidebar Alert Badge */
.nav-badge-alert {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Agenda Widget Dashboard */
.agenda-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-main);
}

.agenda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.agenda-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.agenda-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.agenda-card.overdue {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.agenda-card.today {
  border-left: 4px solid #f97316;
  background: #fff7ed;
}

.agenda-card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.agenda-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-quick-act {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-act-wa {
  background: #22c55e;
  color: white;
}

.btn-act-wa:hover {
  background: #16a34a;
}

.btn-act-done {
  background: var(--primary);
  color: white;
}

/* Activity Log History */
.activity-log-container {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.activity-log-item {
  font-size: 0.78rem;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.activity-log-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Filter Timing Pills */
.filter-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Trip Planner Card Styles */
.planner-mini-card {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
  height: auto !important;
  min-height: auto !important;
  transition: all 0.2s ease !important;
}

.planner-mini-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08) !important;
  transform: translateY(-1px);
}

.planner-mini-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.planner-mini-title-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.planner-mini-idx {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.planner-mini-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
}

.planner-mini-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.planner-mini-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.planner-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-trip-act {
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-trip-act svg {
  width: 12px;
  height: 12px;
}

.btn-trip-edit {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.btn-trip-edit:hover {
  background: #c7d2fe;
  color: #3730a3;
}

.btn-trip-delete {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-trip-delete:hover {
  background: #fca5a5;
  color: #991b1b;
}

.btn-trip-checkin {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-trip-checkin:hover {
  background: #e2e8f0;
}

.btn-trip-checkin.done {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.btn-trip-checkin.done:hover {
  background: #bbf7d0;
}

/* Master Schools Filter Card & Responsive Grid */
.master-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.master-filter-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.3fr 1.1fr 1.4fr;
  gap: 10px;
  align-items: center;
}

@media (max-width: 1200px) {
  .master-filter-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .master-filter-grid {
    grid-template-columns: 1fr;
  }
}

.master-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   DISPATCHES CALENDAR VIEW (KALENDER PENAYANGAN LAPANGAN VR/AR)
   ========================================================================== */
.dispatch-calendar-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.calendar-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-legend-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.78rem;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  padding: 2px 8px;
  border-radius: 6px;
}

.legend-badge-red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 6px;
}

.legend-badge-today {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  padding: 2px 8px;
  border-radius: 6px;
}

/* 7-column Calendar Grid */
.dispatch-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  min-height: 600px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .dispatch-calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .dispatch-calendar-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-day-header {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calendar-day-cell {
  min-height: 125px;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.calendar-day-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
}

/* Day Cell States */
.calendar-day-cell.day-filled {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  color: #14532d;
}

.calendar-day-cell.day-filled:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 25px -4px rgba(34, 197, 94, 0.25);
}

.calendar-day-cell.day-empty {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border: 1.5px solid #fecaca;
  color: #7f1d1d;
}

.calendar-day-cell.day-empty:hover {
  border-color: #f87171;
  box-shadow: 0 10px 25px -4px rgba(239, 68, 68, 0.2);
}

.calendar-day-cell.day-outside {
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  opacity: 0.45;
  cursor: default;
}

.calendar-day-cell.day-today {
  outline: 3px solid #6366f1;
  outline-offset: -2px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.day-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.day-cell-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.day-cell-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.badge-filled-count {
  background: #16a34a;
  color: #ffffff;
}

.badge-empty-count {
  background: #ef4444;
  color: #ffffff;
}

.day-cell-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.74rem;
  overflow: hidden;
}

.day-school-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 4px 6px;
  border-radius: 6px;
  font-weight: 700;
  color: #15803d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.day-empty-text {
  font-size: 0.72rem;
  color: #991b1b;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.day-cell-footer {
  font-size: 0.68rem;
  font-weight: 700;
  text-align: right;
  margin-top: 6px;
  opacity: 0.85;
}

/* ==========================================================================
   SEGMENTASI PELUANG & SKEMA PENAWARAN (EDTECH CRM)
   ========================================================================== */
.badge-quick-win {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.badge-high-friction {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.badge-offer-subscription {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

.badge-offer-event {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

/* ==========================================================================
   INTERACTIVE MAP WIDGET STYLES (LEAFLET CUSTOMIZATIONS)
   ========================================================================== */
#dashboard-map {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  border: 2px solid #ffffff;
}

.custom-map-pin:hover {
  transform: scale(1.2);
  z-index: 1000 !important;
}

.pin-deal {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

.pin-demo {
  background: linear-gradient(135deg, #7e57c2, #512da8);
  box-shadow: 0 0 12px rgba(126, 87, 194, 0.5);
}

.pin-lead {
  background: linear-gradient(135deg, #29b6f6, #0288d1);
  box-shadow: 0 0 10px rgba(41, 182, 246, 0.4);
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 4px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
}

.map-popup-header {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.map-popup-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 8px;
}

