/* ==========================================================================
   HARINI ONLINE — ADMIN DASHBOARD STYLESHEET
   Aesthetic: Warm sunflower gold, rich amber, deep slate ink, crisp white
   Directly matching Harini Online's landing page theme & design tokens
   ========================================================================== */

:root {
  /* Brand Palette — Warm Amber & Sunflower Gold (Matching style.css) */
  --primary-50: #FFFBEB;
  --primary-100: #FEF3C7;
  --primary-200: #FDE68A;
  --primary-300: #FCD34D;
  --primary-400: #FBBF24;
  --primary-500: #F59E0B; /* Core Sunflower Gold */
  --primary-600: #D97706; /* Rich Amber */
  --primary-700: #B45309;

  /* Accent — Warm Terracotta / Orange */
  --accent-500: #EA580C;
  --accent-600: #C2410C;
  --accent-light: #FFEDD5;

  /* Neutrals & Slate */
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-input: #CBD5E1;

  --text-main: #0F172A; /* Deep Slate Ink */
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Status Colors */
  --badge-completed-bg: #ECFDF5;
  --badge-completed-text: #065F46;

  --badge-progress-bg: #EFF6FF;
  --badge-progress-text: #1E40AF;

  --badge-pending-bg: #FEF3C7;
  --badge-pending-text: #B45309;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  --shadow-gold: 0 8px 20px -4px rgba(245, 158, 11, 0.35);
}

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

body.admin-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   LAYOUT GRID
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sidebar-brand {
  padding: 24px 22px 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--primary-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.nav-group {
  margin-bottom: 24px;
}

.nav-group-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 12px 10px;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--primary-50);
}

.nav-link.active {
  color: var(--text-main);
  background-color: var(--primary-50);
  font-weight: 700;
}

.nav-link.active .nav-icon {
  color: var(--primary-600);
}

.active-indicator {
  display: none;
  position: absolute;
  left: -16px;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background-color: var(--primary-500);
}

.nav-link.active .active-indicator {
  display: block;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-text {
  flex: 1;
}

.nav-badge {
  background-color: var(--primary-600);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Sidebar Promo Card */
.sidebar-bottom-promo {
  padding: 16px;
  margin-top: auto;
}

.promo-card {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 18px;
  padding: 18px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.promo-waves {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.promo-header {
  margin-bottom: 12px;
}

.promo-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: var(--primary-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-title {
  font-size: 14.5px;
  line-height: 1.3;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.promo-title strong {
  font-weight: 700;
  color: var(--primary-300);
}

.promo-sub {
  font-size: 11.5px;
  color: #94A3B8;
  margin-bottom: 14px;
}

.promo-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  border: none;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 0;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   TOP NAVIGATION
   ========================================================================== */
.main-content {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.top-nav {
  height: 76px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 6px;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
  width: 360px;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-input);
  background-color: #FFFFFF;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.kbd-badge {
  position: absolute;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-sync-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulseDot 2s infinite;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: #F8FAFC;
  color: var(--text-main);
  border-color: var(--primary-300);
}

.notification-indicator {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-500);
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-profile-pill:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
}

.avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.profile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-email {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   DASHBOARD BODY
   ========================================================================== */
.content-body {
  padding: 28px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header & Actions */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
}

.page-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: #FFFFFF;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background-color: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: var(--border-input);
}

/* ==========================================================================
   ROW 1: 4 STAT METRIC CARDS
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-card.primary-theme {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FFFFFF;
}

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

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.stat-card.primary-theme .stat-label {
  color: rgba(255, 255, 255, 0.85);
}

.stat-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-400);
  cursor: pointer;
}

.stat-arrow-btn.dark {
  border-color: var(--border-light);
  background: transparent;
  color: var(--text-muted);
}

.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  margin: 18px 0 14px;
  letter-spacing: -0.02em;
}

.stat-card.primary-theme .stat-number {
  color: var(--primary-400);
}

.stat-footer {
  display: flex;
  align-items: center;
}

.stat-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.stat-pill-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--primary-300);
}

.stat-pill-badge.green {
  background: var(--badge-completed-bg);
  color: var(--badge-completed-text);
}

.stat-pill-badge.amber {
  background: var(--badge-pending-bg);
  color: var(--badge-pending-text);
}

.stat-note-gray {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-600);
  background-color: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PANEL BASE STYLES
   ========================================================================== */
.dashboard-panel {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  margin-bottom: 18px;
}

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

.panel-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.btn-pill-action {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pill-action:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
}

/* ==========================================================================
   ROW 2: MIDDLE SECTION (3 COLUMNS)
   ========================================================================== */
.middle-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.35fr;
  gap: 18px;
}

/* Panel: Consultation Analytics Bar Chart */
.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 155px;
  padding-top: 25px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 36px;
  position: relative;
}

.bar-pill {
  width: 32px;
  border-radius: var(--radius-full);
  transition: height 0.3s ease;
}

.bar-striped {
  background: repeating-linear-gradient(
    45deg,
    #CBD5E1,
    #CBD5E1 3px,
    #FFFFFF 3px,
    #FFFFFF 8px
  );
  border: 1.5px solid #CBD5E1;
}

.bar-gold {
  background: linear-gradient(180deg, var(--primary-400) 0%, var(--primary-500) 100%);
}

.bar-amber {
  background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.bar-dark-slate {
  background-color: #0F172A;
}

.day-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
}

.chart-floating-badge {
  position: absolute;
  top: -24px;
  background-color: #FFFFFF;
  border: 1px solid var(--primary-300);
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.badge-arrow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background-color: #FFFFFF;
  border-right: 1px solid var(--primary-300);
  border-bottom: 1px solid var(--primary-300);
}

/* Panel: Reminders */
.reminder-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100% - 40px);
}

.reminder-tag-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--primary-100);
  color: var(--primary-700);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.reminder-event-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.reminder-time-label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 22px;
}

.btn-start-meeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-start-meeting:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Panel: Active Requests List */
.project-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.project-item:hover {
  background-color: #F8FAFC;
}

.project-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F1F5F9;
  flex-shrink: 0;
}

.project-meta {
  display: flex;
  flex-direction: column;
}

.project-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.project-due {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Accent Box Colors */
.gold-crescent { background-color: var(--primary-100); }
.orange-circle { background-color: var(--accent-light); }
.slate-square  { background-color: #EFF6FF; }
.green-circle  { background-color: #ECFDF5; }
.purple-dots   { background-color: #FAF5FF; }

/* ==========================================================================
   ROW 3: BOTTOM SECTION (3 COLUMNS)
   ========================================================================== */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.05fr 1.05fr;
  gap: 18px;
}

/* Panel: Incoming Consultation Leads */
.team-header-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-leads-badge {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.team-row:hover {
  background-color: #F8FAFC;
  border-color: var(--border-light);
}

.team-user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.team-avatar-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.team-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-task-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

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

.status-badge.in_progress,
.status-badge.in-progress {
  background-color: var(--badge-progress-bg);
  color: var(--badge-progress-text);
}

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

/* Panel: Conversion Rate Gauge */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

.gauge-chart-box {
  position: relative;
  width: 200px;
  height: 120px;
}

.gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-center-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.gauge-percent {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.gauge-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
}

.gauge-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

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

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.gold { background-color: var(--primary-500); }
.legend-dot.dark-slate { background-color: #0F172A; }

.legend-pattern-box.striped-gold {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    45deg,
    #FBBF24,
    #FBBF24 2px,
    #FFFFFF 2px,
    #FFFFFF 5px
  );
  border: 1px solid #FBBF24;
}

.legend-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Panel: Consultation Focus Timer */
.panel-time-tracker {
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.time-waves-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-radial-gradient(
    circle at 50% 90%,
    rgba(245, 158, 11, 0.08) 0,
    rgba(245, 158, 11, 0.08) 15px,
    transparent 15px,
    transparent 30px
  );
  pointer-events: none;
}

.tracker-header {
  position: relative;
  z-index: 2;
}

.tracker-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.tracker-clock-display {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary-400);
  font-family: 'JetBrains Mono', 'Outfit', monospace;
  text-align: center;
  margin: 18px 0;
  position: relative;
  z-index: 2;
}

.tracker-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.tracker-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tracker-btn.pause-btn {
  background-color: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.tracker-btn.pause-btn:hover {
  transform: scale(1.06);
}

.tracker-btn.stop-btn {
  background-color: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.tracker-btn.stop-btn:hover {
  transform: scale(1.06);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.admin-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  padding: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-overlay.active .admin-modal-card {
  transform: translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-input,
.modal-select,
.modal-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border 0.2s ease;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.modal-textarea {
  min-height: 80px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* Lead Detail View */
.lead-detail-head-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.detail-business {
  font-size: 13px;
  color: var(--primary-700);
  font-weight: 600;
}

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

.detail-cell {
  background-color: #F8FAFC;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--border-light);
}

.detail-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.detail-value.link {
  color: var(--primary-600);
  text-decoration: none;
}

.detail-value.link:hover {
  text-decoration: underline;
}

.modal-select-sm {
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-input);
  background-color: #FFFFFF;
}

.detail-notes-box {
  background-color: #F8FAFC;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.detail-notes-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
  margin-top: 6px;
}

.detail-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-quick-action {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-quick-action.whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-quick-action.whatsapp:hover {
  background-color: #1EBE5D;
}

.btn-quick-action.email {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: #FFFFFF;
}

.btn-quick-action.email:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-quick-action.delete {
  background-color: #FEE2E2;
  color: #DC2626;
}

.btn-quick-action.delete:hover {
  background-color: #FCDCDC;
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0F172A;
  color: #FFFFFF;
  border: 1px solid var(--primary-400);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  z-index: 120;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1280px) {
  .middle-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-project-list {
    grid-column: span 2;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-time-tracker {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: -290px;
    width: 270px;
    transition: left 0.3s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .sidebar-backdrop.open {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 45;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .middle-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .panel-project-list,
  .panel-time-tracker {
    grid-column: span 1;
  }
  .search-box {
    width: 190px;
  }
  .top-nav {
    padding: 0 16px;
  }
  .content-body {
    padding: 16px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
