/* ═══════════════════════════════════════════════════════════════════
   UMG DASHBOARD — Visual Polish Layer
   Loaded after dashboard.css — enhances without breaking
   ═══════════════════════════════════════════════════════════════════ */

/* ── Enhanced Dark Theme Variables ─────────────────────────────── */
:root {
  --shimmer-angle: 135deg;
  --card-border-glow: rgba(201,168,76,0.12);
  --gold-glow: 0 0 24px rgba(201,168,76,0.08);
  --accent-glow-strong: 0 0 32px rgba(52,211,153,0.15);
  --serif-display: 'Instrument Serif', 'Georgia', serif;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Global Color Transitions for Theme Switch ─────────────────── */
body,
body .app,
.sidebar,
.main,
.card,
.form-section,
.table-wrap,
.chart-container,
.checklist-container,
.insights-panel,
.mission-item,
.health-item,
.goal-card,
.campaign-card,
.campaign-status-card,
.exec-action-btn,
.search-modal,
.toast,
.ramadan-banner,
.date-range-bar,
.confirm-box,
.exec-modal,
.audit-checklist,
.org-node,
.alerts-banner,
.attention-panel,
.login-box,
.login-container,
th, td, tr,
.btn,
input, select, textarea,
.sidebar a {
  transition:
    background 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════════════════════════════════ */
body.light-theme {
  --bg: #f5f2ec;
  --bg-mesh: radial-gradient(ellipse at 15% 5%, rgba(20,135,122,0.04) 0%, transparent 50%),
             radial-gradient(ellipse at 85% 15%, rgba(201,168,76,0.03) 0%, transparent 40%),
             radial-gradient(ellipse at 50% 95%, rgba(20,135,122,0.02) 0%, transparent 45%);
  --surface: #ffffff;
  --surface2: #f0ede6;
  --surface3: #e8e4dc;
  --surface-glass: rgba(255,255,255,0.82);
  --border: #ddd7cc;
  --border-subtle: rgba(20,135,122,0.1);
  --border-hover: rgba(20,135,122,0.3);
  --text: #1a2a3a;
  --text-muted: #5a6b7c;
  --text-dim: #8a9aaa;
  --accent: #0f8a7d;
  --accent-bright: #14a594;
  --accent-dim: rgba(15,138,125,0.1);
  --cyan: #0d7c8c;
  --green: #1a8a4a;
  --red: #c43c50;
  --orange: #c48a1a;
  --purple: #7a5abf;
  --gold: #c49a2a;
  --islamic-gold: #a88a3c;
  --islamic-gold-bright: #c9a84c;
  --islamic-gold-dim: rgba(168,138,60,0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 16px rgba(15,138,125,0.06);
  --bg-card: #ffffff;
  --card-border-glow: rgba(201,168,76,0.15);
  --gold-glow: 0 0 16px rgba(201,168,76,0.06);
  --accent-glow-strong: 0 0 24px rgba(15,138,125,0.08);
}

/* Light theme: disable dark-mode pseudo backgrounds */
body.light-theme::before {
  opacity: 0.08;
}
body.light-theme::after {
  background: radial-gradient(circle, rgba(15,138,125,0.04) 0%, rgba(201,168,76,0.02) 40%, transparent 70%);
}

body.light-theme .app::before {
  opacity: 0.03;
}

/* Light theme: sidebar stays dark for brand consistency */
body.light-theme .sidebar {
  background: linear-gradient(180deg, #0a3a3a 0%, #061e1e 100%);
  border-right-color: rgba(201,168,76,0.15);
}
body.light-theme .sidebar a { color: rgba(240,244,248,0.55); }
body.light-theme .sidebar a:hover { color: #f0f4f8; background: rgba(52,211,153,0.08); }
body.light-theme .sidebar a.active {
  color: #6ee7b7;
  background: linear-gradient(90deg, rgba(52,211,153,0.12) 0%, transparent 100%);
}
body.light-theme .sidebar-brand h2 {
  background: linear-gradient(135deg, #6ee7b7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}
body.light-theme .sidebar-brand small { color: rgba(240,244,248,0.3); }
body.light-theme .sidebar-footer { background: rgba(0,0,0,0.2); border-top-color: rgba(255,255,255,0.06); }
body.light-theme .sidebar-footer small,
body.light-theme .sidebar-footer a { color: rgba(240,244,248,0.35); }
body.light-theme .user-badge { border-bottom-color: rgba(255,255,255,0.06); }
body.light-theme .user-badge-avatar { background: rgba(201,168,76,0.2); color: #c9a84c; }
body.light-theme .user-badge-name { color: #f0f4f8; }
body.light-theme .user-badge-role { color: #6ee7b7; }
body.light-theme .user-badge-chevron { color: rgba(240,244,248,0.4); }
body.light-theme .user-menu { background: #0f2e2e; border-color: rgba(201,168,76,0.12); }
body.light-theme .user-menu-header { background: rgba(201,168,76,0.06); border-bottom-color: rgba(255,255,255,0.06); }
body.light-theme .user-menu-name { color: #f0f4f8; }
body.light-theme .user-menu-email { color: rgba(240,244,248,0.5); }
body.light-theme .user-menu-divider { background: rgba(255,255,255,0.06); }
body.light-theme .user-menu-item { color: rgba(240,244,248,0.6); }
body.light-theme .user-menu-item:hover { background: rgba(52,211,153,0.08); color: #f0f4f8; }
body.light-theme .user-menu-signout { color: #fb7185; }
body.light-theme .user-menu-signout:hover { background: rgba(251,113,133,0.1); }
body.light-theme .sidebar-actions { border-bottom-color: rgba(255,255,255,0.04); }
body.light-theme .sidebar-action-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.06); color: rgba(240,244,248,0.5); }
body.light-theme .sidebar-action-pill:hover { background: rgba(255,255,255,0.08); color: #f0f4f8; }
body.light-theme .sidebar-section-label { color: rgba(240,244,248,0.2); }

/* Light theme: login screen */
body.light-theme .login-container {
  background:
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a88a3c' stroke-width='0.3' opacity='0.06'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 20%, rgba(15,138,125,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(201,168,76,0.04) 0%, transparent 50%),
    #f5f2ec !important;
  background-size: 80px 80px, auto, auto, auto !important;
}
body.light-theme .login-box {
  background: rgba(255,255,255,0.85);
  border-color: #ddd7cc;
  box-shadow: 0 12px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(201,168,76,0.08);
}
body.light-theme .login-box h1 {
  background: linear-gradient(135deg, #0f8a7d, #0d7c8c, #14a594);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
body.light-theme .login-box p { color: #5a6b7c; }
body.light-theme .login-box input {
  background: rgba(0,0,0,0.03);
  border-color: #ddd7cc;
  color: #1a2a3a;
}
body.light-theme .login-box input:focus {
  border-color: #0f8a7d;
  box-shadow: 0 0 0 3px rgba(15,138,125,0.1);
  background: rgba(0,0,0,0.02);
}
body.light-theme .login-box input::placeholder { color: #8a9aaa; }
body.light-theme .login-box button {
  background: linear-gradient(135deg, #0f8a7d, #14a594);
  color: #fff;
}
body.light-theme .login-container::before {
  background: radial-gradient(circle, rgba(15,138,125,0.06), transparent 70%);
}
body.light-theme .login-container::after {
  background: radial-gradient(circle, rgba(201,168,76,0.05), transparent 70%);
}

/* Light theme: specific component overrides */
body.light-theme .card::before { display: none; }
body.light-theme .card::after {
  background: linear-gradient(90deg, transparent 10%, rgba(168,138,60,0.15) 30%, rgba(168,138,60,0.22) 50%, rgba(168,138,60,0.15) 70%, transparent 90%);
}
body.light-theme .card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(15,138,125,0.08);
}

body.light-theme .gauge-value {
  background: linear-gradient(135deg, #1a2a3a, #0f8a7d);
  -webkit-background-clip: text;
  background-clip: text;
}
body.light-theme .gauge-fill {
  background: linear-gradient(90deg, #0f8a7d, #14a594);
  box-shadow: 0 0 8px rgba(15,138,125,0.2);
}
body.light-theme .page-header h1 {
  background: linear-gradient(135deg, #1a2a3a 60%, #5a6b7c);
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-theme .date-btn { background: rgba(0,0,0,0.03); border-color: #ddd7cc; color: #5a6b7c; }
body.light-theme .date-btn:hover { border-color: #0f8a7d; color: #1a2a3a; background: rgba(15,138,125,0.04); }
body.light-theme .date-btn.active {
  background: linear-gradient(135deg, #0f8a7d, #14a594);
  color: #fff;
  border-color: transparent;
}

body.light-theme ::selection { background: rgba(201,168,76,0.2); color: #1a2a3a; }

body.light-theme .live-dot { background: #1a8a4a; box-shadow: 0 0 6px rgba(26,138,74,0.4); }

body.light-theme .badge-live { background: rgba(26,138,74,0.08); color: #1a8a4a; border-color: rgba(26,138,74,0.2); }

body.light-theme .ramadan-banner {
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23a88a3c' stroke-width='0.3' opacity='0.1'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #e8f5e9 100%);
  border-color: rgba(168,138,60,0.2);
}
body.light-theme .ramadan-info h3 {
  background: linear-gradient(135deg, #1a8a4a, #a88a3c);
  -webkit-background-clip: text;
  background-clip: text;
}
body.light-theme .ramadan-days {
  background: linear-gradient(135deg, #1a8a4a, #0f8a7d);
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-theme th {
  background: var(--surface2);
  border-bottom-color: rgba(168,138,60,0.2);
}

body.light-theme .skeleton-line {
  background: linear-gradient(90deg, #f0ede6 25%, #e8e4dc 50%, #f0ede6 75%);
  background-size: 200% 100%;
}

body.light-theme .search-modal { background: #fff; }
body.light-theme .search-input-wrap input { color: #1a2a3a; }

/* Light theme scrollbar */
body.light-theme ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
body.light-theme ::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); }

body.light-theme .sidebar ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════════════════════════════
   ENHANCED DARK THEME REFINEMENTS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Richer Aurora Background ──────────────────────────────────── */
body::after {
  width: 800px;
  height: 800px;
  background:
    radial-gradient(circle at 30% 40%, rgba(52,211,153,0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(201,168,76,0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 30%, rgba(34,211,238,0.03) 0%, transparent 45%);
  animation: aurora-drift 30s ease-in-out infinite alternate;
}

/* ── Enhanced Islamic Geometric Pattern ────────────────────────── */
body .app::before {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='0.35' opacity='0.055'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M40 12L68 40L40 68L12 40Z'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Cpath d='M40 0v80M0 40h80'/%3E%3Cpath d='M20 20L60 20L60 60L20 60Z' transform='rotate(45 40 40)'/%3E%3Cpath d='M40 5L75 40L40 75L5 40Z' stroke-dasharray='4 4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ── Selection Color ──────────────────────────────────────────── */
::selection { background: rgba(201,168,76,0.2); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY ELEVATION
   ═══════════════════════════════════════════════════════════════════ */

/* Large metric numbers get editorial serif */
.card-value,
.gauge-value,
.ramadan-days,
.goal-metric,
.attention-counter-num,
.csc-metric-value {
  font-family: var(--serif-display);
  font-style: italic;
  font-feature-settings: 'tnum' 1;
}

/* Section headers: tighter, more authoritative */
.section-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  position: relative;
  padding-bottom: 8px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--islamic-gold), transparent);
  border-radius: 1px;
}

/* Page header refinement */
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR REFINEMENT
   ═══════════════════════════════════════════════════════════════════ */

.sidebar {
  background: linear-gradient(180deg, rgba(12,18,32,0.97) 0%, rgba(5,8,16,0.99) 100%);
  border-right: 1px solid rgba(201,168,76,0.06);
}

/* Crescent glow halo */
.sidebar-crescent {
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.35)) drop-shadow(0 0 16px rgba(201,168,76,0.12));
}

/* Active indicator: subtle pulsing glow via box-shadow */
.sidebar a.active {
  animation: sidebar-active-glow 2.5s ease-in-out infinite alternate;
}
@keyframes sidebar-active-glow {
  0% { box-shadow: inset 3px 0 6px rgba(201,168,76,0.12); }
  100% { box-shadow: inset 3px 0 10px rgba(201,168,76,0.22); }
}

/* ── Theme Toggle ──────────────────────────────────────────────── */
.sidebar-action-pill.theme-toggle {
  color: var(--islamic-gold, #c9a84c);
}
.sidebar-action-pill.theme-toggle:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.2);
}
.theme-toggle .toggle-icon {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}
body.light-theme .theme-toggle .toggle-icon {
  transform: rotate(360deg);
}

/* ═══════════════════════════════════════════════════════════════════
   CARD SYSTEM UPGRADE
   ═══════════════════════════════════════════════════════════════════ */

/* Always-visible gold top accent */
.card::after {
  opacity: 0.35;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--islamic-gold-dim) 20%, rgba(201,168,76,0.2) 50%, var(--islamic-gold-dim) 80%, transparent 95%);
}
.card:hover::after {
  opacity: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,0.3) 20%, rgba(201,168,76,0.45) 50%, rgba(201,168,76,0.3) 80%, transparent 95%);
}

/* Stronger glass effect */
.card {
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-color: rgba(28,40,66,0.6);
}

/* Enhanced hover: higher lift, stronger glow */
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--accent-glow-strong), var(--gold-glow);
  border-color: var(--card-border-glow);
}

/* Animated gradient border on hover */
.card:hover::before {
  background: linear-gradient(var(--shimmer-angle), rgba(201,168,76,0.15), rgba(52,211,153,0.1), rgba(34,211,238,0.08), rgba(201,168,76,0.15));
  animation: shimmer-border 3s linear infinite;
}
@keyframes shimmer-border {
  0% { --shimmer-angle: 0deg; }
  100% { --shimmer-angle: 360deg; }
}

/* Card value: editorial serif */
.card-value {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Card label: decorative dash */
.card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 1.2px;
}
.card-label::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--islamic-gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Card stagger animation */
.cards .card:nth-child(1) { animation-delay: 0ms; }
.cards .card:nth-child(2) { animation-delay: 40ms; }
.cards .card:nth-child(3) { animation-delay: 80ms; }
.cards .card:nth-child(4) { animation-delay: 120ms; }
.cards .card:nth-child(5) { animation-delay: 160ms; }
.cards .card:nth-child(6) { animation-delay: 200ms; }
.cards .card:nth-child(7) { animation-delay: 240ms; }
.cards .card:nth-child(8) { animation-delay: 280ms; }
.cards .card {
  animation: cardReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════
   TABLE POLISH
   ═══════════════════════════════════════════════════════════════════ */

/* Header gold accent */
th {
  border-bottom: 2px solid var(--border);
  position: relative;
}
.table-wrap th:first-child::after,
.data-table th:first-child::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
}
table th {
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 rgba(201,168,76,0.1);
}

/* Alternating row tint */
tbody tr:nth-child(even) td {
  background: rgba(52,211,153,0.015);
}
body.light-theme tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.015);
}

/* Row hover: left accent bar */
tbody tr {
  position: relative;
}
tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--islamic-gold);
}

/* Table wrap refinement */
.table-wrap {
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTON & FORM REFINEMENT
   ═══════════════════════════════════════════════════════════════════ */

/* Primary button: animated shine */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transition: left 0.5s ease;
}
.btn-primary:hover::after {
  left: 100%;
}

/* Button press: tactile scale */
.btn:active,
.btn-primary:active,
.exec-action-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Form inputs: gold-tinted focus */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--islamic-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1), 0 0 16px rgba(201,168,76,0.05);
}

/* Login input focus override */
.login-box input:focus {
  border-color: var(--islamic-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 0 20px rgba(201,168,76,0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   LOGIN SCREEN ELEVATION
   ═══════════════════════════════════════════════════════════════════ */

/* Bismillah gentle float */
.bismillah {
  animation: bismillah-float 6s ease-in-out infinite;
}
@keyframes bismillah-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Login box: animated border shimmer */
.login-box {
  border: 1px solid rgba(201,168,76,0.15);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(201,168,76,0.04), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Crescent enhanced glow */
.login-crescent {
  filter: drop-shadow(0 0 24px rgba(201,168,76,0.35)) drop-shadow(0 0 48px rgba(201,168,76,0.15));
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════════ */

/* Section tags: refined pill shape */
.section-tag {
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.6rem;
  letter-spacing: 1px;
}

/* Insights panel: refined */
.insights-panel {
  border-left: 2px solid rgba(201,168,76,0.15);
}

/* ═══════════════════════════════════════════════════════════════════
   MISSION ITEMS
   ═══════════════════════════════════════════════════════════════════ */

.mission-item {
  border-left: 3px solid transparent;
}
.mission-item:hover {
  border-left-color: var(--islamic-gold);
}

.mission-priority {
  background: linear-gradient(135deg, var(--islamic-gold), var(--islamic-gold-bright));
  box-shadow: 0 2px 12px rgba(201,168,76,0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   EXEC QUICK ACTIONS
   ═══════════════════════════════════════════════════════════════════ */

.exec-action-btn {
  border: 1px solid rgba(201,168,76,0.08);
}
.exec-action-btn:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: var(--shadow-md), var(--gold-glow);
}
.exec-action-btn .action-icon {
  color: var(--islamic-gold);
  font-size: 1.5rem;
  font-family: var(--serif-display);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   HEALTH GRID
   ═══════════════════════════════════════════════════════════════════ */

.health-dot.green {
  animation: health-pulse 2.5s ease-in-out infinite;
}
@keyframes health-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(74,222,128,0.4); }
  50% { transform: scale(1.15); box-shadow: 0 0 12px rgba(74,222,128,0.6); }
}

/* ═══════════════════════════════════════════════════════════════════
   GAUGE
   ═══════════════════════════════════════════════════════════════════ */

.gauge-value {
  font-size: 3rem;
  letter-spacing: -2px;
}

.gauge-fill {
  background: linear-gradient(90deg, var(--islamic-gold), var(--accent), var(--cyan));
  box-shadow: 0 0 16px rgba(52,211,153,0.3), 0 0 4px rgba(201,168,76,0.2);
}

.gauge-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--surface2);
  position: relative;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════════════
   RAMADAN BANNER
   ═══════════════════════════════════════════════════════════════════ */

.ramadan-banner {
  border: 1px solid rgba(201,168,76,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 32px rgba(201,168,76,0.04), inset 0 1px 0 rgba(201,168,76,0.1);
}

.ramadan-banner::after {
  background: linear-gradient(90deg, transparent, var(--islamic-gold), var(--islamic-gold-bright), var(--islamic-gold), transparent);
  opacity: 0.5;
  animation: gold-shimmer 4s ease-in-out infinite;
}
@keyframes gold-shimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS: Spring physics
   ═══════════════════════════════════════════════════════════════════ */

.toast {
  animation: toastSpring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastSpring {
  0% { opacity: 0; transform: translateX(80px) scale(0.85); }
  60% { transform: translateX(-8px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════ */

/* Main content scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(201,168,76,0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201,168,76,0.3);
}

/* Sidebar scrollbar stays subtle */
.sidebar-nav-scroll::-webkit-scrollbar { width: 3px; }
.sidebar-nav-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }

/* ═══════════════════════════════════════════════════════════════════
   FOCUS & ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--islamic-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   ISLAMIC DIVIDERS
   ═══════════════════════════════════════════════════════════════════ */

.islamic-divider {
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='16' viewBox='0 0 200 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' opacity='0.3'%3E%3Cpath d='M0 8Q12.5 2 25 8Q37.5 14 50 8Q62.5 2 75 8Q87.5 14 100 8Q112.5 2 125 8Q137.5 14 150 8Q162.5 2 175 8Q187.5 14 200 8' stroke='%23c9a84c' stroke-width='0.6'/%3E%3Ccircle cx='25' cy='8' r='2' fill='%23c9a84c' opacity='0.4'/%3E%3Ccircle cx='75' cy='8' r='2' fill='%23c9a84c' opacity='0.4'/%3E%3Ccircle cx='100' cy='8' r='3' fill='%23c9a84c' opacity='0.5'/%3E%3Ccircle cx='125' cy='8' r='2' fill='%23c9a84c' opacity='0.4'/%3E%3Ccircle cx='175' cy='8' r='2' fill='%23c9a84c' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
  margin: 12px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   DAILY 5 PANEL ENHANCEMENT
   ═══════════════════════════════════════════════════════════════════ */

/* If Daily 5 cards exist, elevate them */
#daily5-panel .card {
  border-color: rgba(201,168,76,0.15);
}
#daily5-panel .card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-md), 0 0 20px rgba(201,168,76,0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   CAMPAIGN STATUS CARDS
   ═══════════════════════════════════════════════════════════════════ */

.campaign-status-card {
  border-left: 3px solid transparent;
}
.campaign-status-card:hover {
  border-left-color: var(--islamic-gold);
}

/* ═══════════════════════════════════════════════════════════════════
   ORG CHART NODES
   ═══════════════════════════════════════════════════════════════════ */

.org-node {
  border-top: 2px solid transparent;
}
.org-node:hover {
  border-top-color: var(--islamic-gold);
}
.org-node-name {
  font-family: 'Syne', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH MODAL
   ═══════════════════════════════════════════════════════════════════ */

.search-modal {
  border: 1px solid rgba(201,168,76,0.12);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(201,168,76,0.04);
}

/* ═══════════════════════════════════════════════════════════════════
   ATTENTION PANEL
   ═══════════════════════════════════════════════════════════════════ */

.attention-panel {
  border-left: 1px solid rgba(201,168,76,0.1);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE REFINEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .card-value { font-size: 1.6rem; }
  .gauge-value { font-size: 2.4rem; }
  .page-header h1 { font-size: 1.3rem; }

  /* Tighter card padding on mobile */
  .card { padding: 18px; }

  /* No hover effects on touch */
  .card:hover { transform: none; }
  .mission-item:hover { transform: none; }

  .exec-actions { gap: 8px; }
  .exec-action-btn { min-width: 140px; padding: 12px 14px; }
}

@media (max-width: 480px) {
  .card-value { font-size: 1.4rem; }
  .gauge-value { font-size: 2rem; }
  .exec-action-btn .action-icon { font-size: 1.1rem; }
  .exec-action-btn .action-title { font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT MODE — Clean for both themes
   ═══════════════════════════════════════════════════════════════════ */

/* === Property Command Center === */

/* ── Sidebar Group (Properties) ─────────────────────────────── */
.sidebar-section-label.sidebar-group-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.sidebar-section-label.sidebar-group-toggle:hover { color: var(--text-muted); }
.sidebar-group-arrow { font-size: 0.5rem; transition: transform 0.2s; display: inline-block; }
.sidebar-group-items a {
  padding-left: 36px !important; font-size: 0.75rem !important;
  opacity: 0.8; transition: opacity 0.15s;
}
.sidebar-group-items a:hover { opacity: 1; }
.sidebar-group-items a.active { opacity: 1; }

.prop-section-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-muted); margin: 24px 0 10px;
  padding-bottom: 4px; border-bottom: 1px solid var(--border);
}

.prop-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px; margin-bottom: 8px;
}
.prop-info-item {
  display: flex; justify-content: space-between; padding: 6px 12px;
  background: var(--surface); border-radius: 6px; font-size: 0.72rem;
}
.prop-info-key { color: var(--text-muted); font-weight: 600; }
.prop-info-val { color: var(--text); font-family: 'Syne', monospace; }

.prop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.prop-action-btn {
  background: var(--surface2) !important; border: 1px solid var(--border) !important;
  color: var(--accent) !important; font-size: 0.72rem !important;
  display: flex; align-items: center; gap: 4px; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.prop-action-btn:hover { background: var(--surface3) !important; border-color: var(--accent) !important; }
.prop-action-info {
  background: transparent !important; border: 1px dashed var(--border) !important;
  color: var(--text-muted) !important; font-size: 0.68rem !important; cursor: default;
  display: flex; align-items: center; gap: 4px;
}

.prop-chart-container {
  background: var(--surface); border-radius: 10px; padding: 16px;
  margin: 12px 0; border: 1px solid var(--border);
}
.prop-chart-title {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px;
}

/* Notes */
.prop-notes-add {
  display: flex; gap: 8px; margin-bottom: 12px; align-items: center;
}
.prop-note-select {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); padding: 6px 10px; font-size: 0.72rem; cursor: pointer;
}
.prop-note-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); padding: 6px 12px; font-size: 0.75rem;
}
.prop-note-input::placeholder { color: var(--text-muted); }
.prop-note-input:focus { outline: none; border-color: var(--accent); }
.prop-notes-list { display: flex; flex-direction: column; gap: 6px; }
.prop-note {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--surface); border-radius: 8px; border: 1px solid var(--border);
  font-size: 0.75rem; position: relative; transition: background 0.15s;
}
.prop-note:hover { background: var(--surface2); }
.prop-note-pinned { border-left: 3px solid var(--accent); }
.prop-note-type-badge {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap; letter-spacing: 0.5px;
}
.prop-note-content { flex: 1; color: var(--text); }
.prop-note-meta { color: var(--text-muted); font-size: 0.62rem; white-space: nowrap; }
.prop-note-delete {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1rem; padding: 0 4px; opacity: 0; transition: opacity 0.15s;
}
.prop-note:hover .prop-note-delete { opacity: 1; }
.prop-note-delete:hover { color: var(--red); }

@media print {
  body, body.light-theme {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --border: #ddd;
  }
  .sidebar, .theme-toggle { display: none !important; }
  .card::after, .card::before { display: none; }
  .card { box-shadow: 0 0 0 1px #ddd; }
}
