
:root{
  --bg:#120708;
  --bg-deep:#0b0405;
  --panel:#1b0b0e;
  --panel-2:#241013;
  --panel-3:#2d1518;
  --border:rgba(221,151,47,.24);
  --border-strong:rgba(221,151,47,.46);
  --gold:#e3a33b;
  --gold-bright:#ffc857;
  --saffron:#f28c28;
  --red:#d94b3d;
  --green:#42d392;
  --text:#f7eee4;
  --muted:#a99a8d;
  --muted-2:#77665e;
  --sidebar:278px;
  --radius:10px;
  --shadow:0 18px 50px rgba(0,0,0,.30);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;min-height:100vh;background:var(--bg);color:var(--text);
  font-family:Inter,Arial,sans-serif;font-size:14px;
  overflow-x:hidden;
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-2;
  background:
    radial-gradient(circle at 15% 5%,rgba(178,55,25,.17),transparent 30%),
    radial-gradient(circle at 85% 0%,rgba(227,163,59,.10),transparent 28%),
    linear-gradient(180deg,#16090b 0%,#100608 100%);
}
.background-grid{
  position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.16;
  background-image:
    linear-gradient(rgba(227,163,59,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(227,163,59,.06) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,#000,transparent 88%);
}
.background-glow{position:fixed;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(60px);opacity:.12}
.background-glow-one{width:420px;height:420px;left:-180px;top:120px;background:#a63220}
.background-glow-two{width:360px;height:360px;right:-130px;top:40px;background:#d08a2e}

#app{min-height:100vh}
.sidebar{
  position:fixed;left:0;top:0;bottom:0;width:var(--sidebar);z-index:20;
  background:rgba(15,6,8,.96);border-right:1px solid var(--border);
  padding:22px 16px;display:flex;flex-direction:column;
  box-shadow:18px 0 45px rgba(0,0,0,.20);
}
.brand{
  padding:3px 10px 20px;border-bottom:1px solid var(--border);
  margin-bottom:18px;display:flex;gap:12px;align-items:center;
}
.brand-emblem{
  width:40px;height:40px;flex:none;border:1px solid var(--border-strong);
  border-radius:8px;display:grid;place-items:center;color:var(--gold-bright);
  background:linear-gradient(145deg,#3a1717,#1b090b);
  font-family:Cinzel,serif;font-weight:700;font-size:17px;
  box-shadow:inset 0 0 22px rgba(227,163,59,.07);
}
.brand-text{min-width:0}.brand-title{
  font-family:Cinzel,Georgia,serif;font-weight:700;font-size:17px;
  letter-spacing:.7px;color:var(--gold-bright);line-height:1.1;
}
.brand-subtitle{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin-top:5px}
.event-badge{
  display:inline-flex;align-items:center;gap:6px;margin:10px 0 0;
  padding:5px 8px;border:1px solid var(--border);border-radius:20px;
  color:#dfc8ad;background:#211013;font-size:9px;letter-spacing:.7px;
}
.event-dot{width:6px;height:6px;border-radius:50%;background:var(--saffron);box-shadow:0 0 8px rgba(242,140,40,.8)}
.event-date{color:var(--gold)}

.navigation{display:flex;flex-direction:column;gap:4px;overflow:auto}
.nav-section-title{
  color:#776057;font-size:9px;letter-spacing:1.8px;text-transform:uppercase;
  padding:13px 10px 5px;font-weight:700;
}
.nav-item{
  appearance:none;border:1px solid transparent;background:transparent;color:#c7b4a6;
  border-radius:7px;padding:10px 11px;width:100%;display:flex;align-items:center;
  gap:10px;text-align:left;cursor:pointer;font:600 12px Inter,Arial,sans-serif;
  transition:.18s ease;
}
.nav-item:hover{background:#241013;border-color:var(--border);color:var(--gold-bright)}
.nav-item.active{
  background:linear-gradient(90deg,#311416,#241013);
  border-color:var(--border-strong);color:var(--gold-bright);
  box-shadow:inset 3px 0 0 var(--saffron);
}
.nav-icon{width:18px;text-align:center;color:var(--gold);font-size:13px}
.sidebar-footer{margin-top:auto;padding:15px 9px 2px;border-top:1px solid var(--border);color:var(--muted-2);font-size:9px;line-height:1.7;letter-spacing:.6px}
.version{color:#8b7367}

.main{margin-left:var(--sidebar);min-height:100vh}
.topbar{
  height:68px;position:sticky;top:0;z-index:15;display:flex;align-items:center;
  justify-content:space-between;padding:0 28px;background:rgba(18,7,8,.91);
  border-bottom:1px solid var(--border);backdrop-filter:blur(12px);
}
.topbar-left{display:flex;align-items:center;gap:12px}
.topbar-left h1{font-family:Cinzel,Georgia,serif;font-size:17px;margin:0;color:var(--gold-bright)}
.topbar-right{display:flex;align-items:center;gap:18px}
.topbar-clock{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.admin-chip{
  display:flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--border);
  border-radius:20px;background:#1e0d10;font-size:10px;color:#d8c4b2;
}
.admin-avatar{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#39201d;color:var(--gold-bright);font-weight:700;font-size:9px}
.live-system{display:flex;align-items:center;gap:7px;color:#a9d8b5;font-size:10px}
.live-pulse{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 9px rgba(66,211,146,.8)}

.page-container{padding:26px 30px 50px;max-width:1700px;margin:0 auto}
.page{display:none}.page.active{display:block}
.page-introduction{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.page-kicker,.eyebrow{
  color:var(--saffron);font-size:9px;font-weight:700;letter-spacing:2px;text-transform:uppercase;
}
.page-introduction h2{font-family:Cinzel,Georgia,serif;font-size:26px;margin:6px 0 5px;color:var(--text)}
.page-introduction p{margin:0;color:var(--muted);font-size:12px}
.section-heading{
  display:flex;align-items:center;justify-content:space-between;gap:15px;
  margin:25px 0 12px;padding-bottom:9px;border-bottom:1px solid var(--border);
}
.section-heading h3{font-family:Cinzel,Georgia,serif;margin:0;font-size:15px;color:#ead8c3}
.section-heading span{font-size:9px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}

.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.summary-card{
  min-height:126px;padding:17px;border:1px solid var(--border);border-radius:var(--radius);
  background:linear-gradient(145deg,rgba(42,18,21,.94),rgba(25,10,12,.94));
  box-shadow:var(--shadow);position:relative;overflow:hidden;
}
.summary-card::after{content:"";position:absolute;right:-40px;bottom:-55px;width:140px;height:140px;border-radius:50%;border:1px solid rgba(227,163,59,.09)}
.summary-card.live{border-color:rgba(66,211,146,.27)}
.summary-card.duty{border-color:rgba(242,140,40,.34)}
.summary-icon{color:var(--gold);font-size:14px;margin-bottom:12px}
.summary-card .label{font-size:9px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}
.summary-card .value{font-size:28px;font-weight:700;color:var(--gold-bright);margin-top:7px;font-variant-numeric:tabular-nums}
.summary-card .sub{font-size:10px;color:var(--muted);margin-top:5px}

.drone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.drone-card{
  border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  background:#190a0d;box-shadow:0 14px 35px rgba(0,0,0,.22);
}
.drone-card-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border)}
.drone-card-title{font-weight:700;color:#ead8c3}.drone-card-location{font-size:10px;color:var(--muted);margin-top:3px}
.status-badge{font-size:9px;letter-spacing:.7px;padding:5px 7px;border-radius:15px;border:1px solid var(--border);color:var(--muted)}
.status-badge.live{color:#9ee5b0;border-color:rgba(66,211,146,.4);background:rgba(66,211,146,.06)}
.drone-video{height:270px;background:#060304;position:relative}
.drone-video iframe{width:100%;height:100%;border:0;display:block}
.drone-video video{width:100%;height:100%;object-fit:cover;background:#060304}
.empty-state{height:100%;display:grid;place-items:center;color:#78665d;font-size:11px}
.drone-card-footer{padding:12px 14px}
.drone-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;color:var(--muted);font-size:10px}
.drone-meta strong{display:block;color:#dfcbb8;font-size:11px;margin-top:3px}
.outline-button,.btn{
  appearance:none;border:1px solid var(--border-strong);background:#211013;color:#e3c9ad;
  padding:8px 11px;border-radius:5px;cursor:pointer;font-size:10px;font-weight:600;
}
.outline-button:hover,.btn:hover{color:var(--gold-bright);border-color:var(--gold);background:#2b1316}
.drone-card-actions{display:flex;gap:7px;margin-top:11px}

.map-layout{display:grid;grid-template-columns:1fr 310px;gap:14px}
.map-panel,.map-container{
  background:#18090c;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
}
.map-container{height:650px}.map-container #map{height:100%;min-height:100%}
.map-panel{padding:15px}
.panel-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:11px;border-bottom:1px solid var(--border);margin-bottom:10px}
.panel-title{font-weight:700;color:#ead8c3;font-size:12px}
.map-location{padding:10px 0;border-bottom:1px solid rgba(221,151,47,.12);cursor:pointer}
.map-location:hover{color:var(--gold-bright)}
.map-location strong{display:block;font-size:11px}.map-location span{font-size:9px;color:var(--muted)}

.analytics-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:14px}
.analytics-video{height:560px;background:#060304;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.analytics-video iframe{width:100%;height:100%;border:0}
.stat-panel{border:1px solid var(--border);background:#1a0b0e;border-radius:var(--radius);padding:15px}
.stat-panel h3{font-family:Cinzel,serif;color:var(--gold);font-size:14px;margin:0 0 13px}
.analytics-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.analytics-metric{padding:14px;border:1px solid var(--border);border-radius:7px;background:#210f12}
.analytics-metric small{display:block;color:var(--muted);font-size:8px;letter-spacing:1px}.analytics-metric strong{display:block;color:var(--gold-bright);font-size:27px;margin-top:6px}
.chart-placeholder{min-height:210px;border:1px dashed var(--border);border-radius:7px;display:grid;place-items:center;color:var(--muted-2);font-size:10px;text-align:center;padding:20px;margin-top:12px}

.statistics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.statistics-tabs{display:flex;gap:6px;margin-bottom:13px}
.statistics-tab{appearance:none;background:#1b0b0e;border:1px solid var(--border);color:var(--muted);padding:8px 13px;border-radius:5px;cursor:pointer;font-size:10px}
.statistics-tab.active{border-color:var(--gold);color:var(--gold-bright);background:#281215}
.statistics-table-container{border:1px solid var(--border);border-radius:var(--radius);overflow:auto;background:#18090c}
table{width:100%;border-collapse:collapse;font-size:11px}
th{padding:11px 12px;text-align:left;color:var(--gold);font-size:8px;letter-spacing:1.2px;text-transform:uppercase;background:#211013}
td{padding:11px 12px;border-top:1px solid rgba(221,151,47,.12);color:#d8c7b7}
tr:hover td{background:rgba(227,163,59,.025)}

.recordings-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex-wrap:wrap;padding:12px;border:1px solid var(--border);border-radius:var(--radius);
  background:#190a0d;margin-bottom:13px;
}
.dark-input,.dark-select{
  background:#120708;color:#e5d2bf;border:1px solid var(--border);
  padding:9px 10px;border-radius:5px;outline:none;font-size:10px;
}
.dark-input:focus,.dark-select:focus{border-color:var(--gold)}
.retention-badge{
  padding:6px 9px;border:1px solid var(--border);border-radius:15px;
  color:var(--gold);font-size:9px;letter-spacing:.6px
}
.recordings-table{border:1px solid var(--border);border-radius:var(--radius);overflow:auto;background:#18090c}

.system-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.system-panel{
  border:1px solid var(--border);border-radius:var(--radius);padding:17px;background:#190a0d;
}
.system-panel h3{font-family:Cinzel,serif;color:var(--gold);margin:0 0 14px;font-size:14px}
.system-info{display:grid;gap:9px}
.system-info div{display:flex;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid rgba(221,151,47,.10);font-size:10px}
.system-info span:first-child{color:var(--muted)}.system-info span:last-child{color:#e4d0bc}
.system-state{color:#9fe0af!important}.system-indicator{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:5px;box-shadow:0 0 7px rgba(66,211,146,.7)}

.mobile-menu{display:none;border:1px solid var(--border);background:#211013;color:var(--gold);padding:7px;border-radius:5px}

@media(max-width:1150px){
  :root{--sidebar:235px}
  .summary-grid{grid-template-columns:repeat(2,1fr)}
  .map-layout{grid-template-columns:1fr}
  .map-panel{display:none}
}
@media(max-width:850px){
  :root{--sidebar:0px}
  .sidebar{transform:translateX(-100%);width:280px;transition:.2s}
  .main{margin-left:0}
  .mobile-menu{display:block}
  .topbar{padding:0 17px}
  .page-container{padding:20px 16px 40px}
  .drone-grid,.analytics-grid,.statistics-grid,.system-grid{grid-template-columns:1fr}
  .page-introduction{align-items:flex-start;flex-direction:column}
}
@media(max-width:560px){
  .summary-grid{grid-template-columns:1fr}
  .topbar-clock{display:none}
  .admin-chip{display:none}
  .drone-meta{grid-template-columns:1fr}
  .drone-video{height:220px}
  .map-container{height:500px}
}

/* =========================================================
   LIVE HLS VIDEO
   ========================================================= */

.live-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  background: #060304;
  object-fit: contain;
  border: 0;
}

.drone-video .live-video {
  width: 100%;
  height: 100%;
  min-height: 270px;
}

.analytics-video .live-video {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: contain;
}


/* =========================================================
   AI LIVE STATUS
   ========================================================= */

.analytics-metric strong {
  font-variant-numeric: tabular-nums;
}

.ai-live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #18090c;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .7px;
}

.ai-live-status .system-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(227,163,59,.6);
}


/* =========================================================
   DRONE MAP MARKERS
   ========================================================= */

.leaflet-div-icon.drone-div-icon {
  background: transparent !important;
  border: 0 !important;
}

.drone-map-marker {
  position: relative;
  width: 76px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.drone-pin {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    145deg,
    #ffb51b,
    #d68b12
  );

  border: 3px solid #fff8e7;
  border-radius: 50%;

  box-shadow:
    0 4px 12px rgba(0,0,0,.40),
    0 0 0 2px rgba(91,17,24,.45);
}

.drone-pin svg {
  width: 27px;
  height: 27px;
  fill: #5b1118;
}

.drone-live-dot {
  position: absolute;
  top: 2px;
  right: 10px;

  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: #42d392;

  border: 2px solid #fff8e7;

  box-shadow:
    0 0 8px rgba(66,211,146,.9);
}

.drone-marker-label {
  margin-top: 5px;
  padding: 4px 7px;

  max-width: 150px;

  border-radius: 5px;

  background: rgba(24,9,12,.94);
  border: 1px solid rgba(227,163,59,.45);

  color: #f7eee4;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

.drone-map-marker.offline .drone-pin {
  background: #665b59;
  border-color: #d6ccc5;
  opacity: .8;
}

.drone-map-marker.offline .drone-pin svg {
  fill: #eee5df;
}

.drone-map-marker.offline .drone-live-dot {
  background: #8a7b76;
  box-shadow: none;
}

.drone-map-marker.offline .drone-marker-label {
  color: #c9bdb7;
  border-color: rgba(150,130,120,.3);
}


/* =========================================================
   MAP POPUP
   ========================================================= */

.leaflet-popup-content-wrapper {
  background: #18090c;
  color: #f7eee4;
  border: 1px solid rgba(227,163,59,.45);
}

.leaflet-popup-tip {
  background: #18090c;
}

.leaflet-popup-content {
  font-size: 11px;
}


/* =========================================================
   DUSSEHRA LIGHT THEME V2
   White + Light Maroon + Yellow
   ========================================================= */

:root{
  --bg:#fffaf3 !important;
  --bg-2:#fff4e5 !important;
  --panel:#fffdf9 !important;
  --panel-2:#fff7ed !important;

  --text:#4b151c !important;
  --text-bright:#651923 !important;
  --muted:#795d5f !important;
  --muted-2:#987c7d !important;

  --gold:#e6a400 !important;
  --gold-bright:#c98900 !important;
  --saffron:#f2a900 !important;

  --border:#ead7ce !important;
  --border-strong:#d7b5aa !important;

  --green:#229b68 !important;

  --radius:8px !important;
  --shadow:0 8px 24px rgba(83,35,30,.08) !important;
}

/* ---------- BASE ---------- */

html,
body{
  background:#fffaf3 !important;
  color:#4b151c !important;
}

body{
  background:
    linear-gradient(
      135deg,
      #fffdf9 0%,
      #fff8ef 55%,
      #fff3df 100%
    ) !important;
}

.background-glow-one,
.background-glow-two{
  opacity:.10 !important;
}

.background-glow-one{
  background:#8f2532 !important;
}

.background-glow-two{
  background:#f2b000 !important;
}

/* ---------- SIDEBAR ---------- */

.sidebar{
  background:#fffdf9 !important;
  border-right:1px solid #e5cfc5 !important;
  box-shadow:4px 0 18px rgba(79,30,27,.05) !important;
}

.brand{
  border-bottom:1px solid #ead7ce !important;
}

.brand-title{
  color:#8b2632 !important;
}

.brand-subtitle{
  color:#86686a !important;
}

.event-pill{
  background:#4b151c !important;
  border-color:#4b151c !important;
  color:#fff7ed !important;
}

.section-label,
.sidebar-section,
.nav-section-title{
  color:#8b2632 !important;
}

.nav-item{
  color:#5d3437 !important;
  background:transparent !important;
  border-color:transparent !important;
}

.nav-item:hover{
  background:#fff1df !important;
  color:#651923 !important;
  border-color:#ead0c4 !important;
}

.nav-item.active{
  background:#f7e7e5 !important;
  color:#741d28 !important;
  border-color:#e6a400 !important;
  box-shadow:inset 3px 0 0 #f2a900 !important;
}

.nav-item span{
  color:inherit !important;
}

.sidebar-footer{
  border-top:1px solid #ead7ce !important;
  color:#8d7070 !important;
}

/* ---------- MAIN ---------- */

.main{
  background:#fffaf3 !important;
}

.topbar{
  background:#f2a900 !important;
  border-bottom:3px solid #7b1d27 !important;
  color:#4b151c !important;
  box-shadow:0 3px 12px rgba(89,37,25,.10) !important;
}

.topbar-left h1{
  color:#4b151c !important;
}

.topbar-clock{
  color:#5b2528 !important;
}

.live-system{
  color:#4b151c !important;
}

.admin-chip{
  background:#5a1720 !important;
  border-color:#7b3037 !important;
  color:#fff8ef !important;
}

.admin-avatar{
  background:#7a202b !important;
  color:#ffd45a !important;
}

/* ---------- PAGE ---------- */

.page-container{
  background:#fffaf3 !important;
}

.page-introduction h2{
  color:#681b25 !important;
}

.page-introduction p{
  color:#795d5f !important;
}

.eyebrow{
  color:#a26b00 !important;
}

.event-date{
  color:#c98900 !important;
}

/* ---------- SECTION HEADINGS ---------- */

.section-heading{
  border-bottom-color:#ead7ce !important;
}

.section-heading h3{
  color:#681b25 !important;
}

.section-heading span{
  color:#8c6d6d !important;
}

/* ---------- SUMMARY CARDS ---------- */

.summary-card{
  background:#fffdf9 !important;
  border:1px solid #ead7ce !important;
  box-shadow:0 7px 20px rgba(79,30,27,.08) !important;
  color:#4b151c !important;
}

.summary-card::after{
  border-color:rgba(230,164,0,.20) !important;
}

.summary-card.live{
  border-color:#b8dcca !important;
}

.summary-card.duty{
  border-color:#e6c36c !important;
}

.summary-icon{
  color:#e0a000 !important;
}

.summary-card .label,
.summary-card span{
  color:#795d5f !important;
}

.summary-card .value,
.summary-card strong{
  color:#741d28 !important;
}

.summary-card .sub{
  color:#927475 !important;
}

/* ---------- DRONE CARDS ---------- */

.drone-card{
  background:#fffdf9 !important;
  border-color:#ead7ce !important;
  box-shadow:0 8px 22px rgba(79,30,27,.08) !important;
}

.drone-card-header{
  background:#fffaf3 !important;
  border-bottom-color:#ead7ce !important;
}

.drone-card-title{
  color:#681b25 !important;
}

.drone-card-location{
  color:#866b6c !important;
}

.status-badge{
  background:#fffaf3 !important;
  border-color:#dcc5bd !important;
  color:#806668 !important;
}

.status-badge.live{
  color:#168154 !important;
  background:#edf9f2 !important;
  border-color:#a9d9bf !important;
}

/* ---------- VIDEO ---------- */

.drone-video,
.analytics-video{
  background:#050505 !important;
}

.empty-state{
  color:#8b7774 !important;
}

.drone-card-footer{
  background:#fff8ef !important;
}

.drone-meta{
  color:#806768 !important;
}

.drone-meta strong{
  color:#651923 !important;
}

/* ---------- BUTTONS ---------- */

.outline-button,
.btn{
  background:#fffdf9 !important;
  color:#681b25 !important;
  border-color:#b98278 !important;
}

.outline-button:hover,
.btn:hover{
  background:#fff0d7 !important;
  color:#651923 !important;
  border-color:#e0a000 !important;
}

/* ---------- MAP ---------- */

.map-layout{
  background:#fffaf3 !important;
}

.map-panel,
.map-container{
  background:#fffdf9 !important;
  border-color:#ead7ce !important;
  box-shadow:0 7px 20px rgba(79,30,27,.07) !important;
}

.panel-header{
  border-bottom-color:#ead7ce !important;
}

.panel-title{
  color:#681b25 !important;
}

.map-location{
  border-bottom-color:#ead7ce !important;
  color:#5d3437 !important;
}

.map-location:hover{
  background:#fff5e8 !important;
}

.map-location strong{
  color:#681b25 !important;
}

.map-location span{
  color:#866b6c !important;
}

/* ---------- ANALYTICS ---------- */

.stat-panel{
  background:#fffdf9 !important;
  border-color:#ead7ce !important;
}

.stat-panel h3{
  color:#a16d00 !important;
}

.analytics-metric{
  background:#fff7ed !important;
  border-color:#ead7ce !important;
}

.analytics-metric small{
  color:#806768 !important;
}

.analytics-metric strong{
  color:#741d28 !important;
}

.chart-placeholder{
  color:#927475 !important;
  border-color:#e2cbc2 !important;
}

/* ---------- STATISTICS ---------- */

.statistics-card,
.stats-card,
.statistics-panel{
  background:#fffdf9 !important;
  border-color:#ead7ce !important;
  color:#4b151c !important;
}

.statistics-card h3,
.stats-card h3,
.statistics-panel h3{
  color:#681b25 !important;
}

.statistics-card p,
.stats-card p{
  color:#806768 !important;
}

/* ---------- TABS ---------- */

.stats-tab,
.statistics-tab{
  background:#fffdf9 !important;
  color:#681b25 !important;
  border-color:#dec8bf !important;
}

.stats-tab.active,
.statistics-tab.active{
  background:#5b1720 !important;
  color:#fff7ed !important;
  border-color:#5b1720 !important;
}

/* ---------- RECORDINGS ---------- */

.recording-card,
.recordings-card,
.recording-item{
  background:#fffdf9 !important;
  border-color:#ead7ce !important;
  color:#4b151c !important;
}

.recording-card strong,
.recording-item strong{
  color:#681b25 !important;
}

/* ---------- SYSTEM ---------- */

.system-state{
  color:#168154 !important;
}

.system-indicator{
  background:#22a66d !important;
}

/* ---------- LINKS ---------- */

a{
  color:#7b1d27;
}

a:hover{
  color:#c98900;
}

/* ---------- KEEP MAP / MEDIA DARK WHERE THEY SHOULD BE ---------- */

video,
iframe{
  background:#050505 !important;
}

/* ---------- MOBILE ---------- */

@media(max-width:900px){
  .sidebar{
    background:#fffdf9 !important;
  }

  .topbar{
    background:#f2a900 !important;
  }
}


/* =========================================================
   DUSSEHRA COMMAND CENTER — REFERENCE THEME
   White / Warm White / Light Maroon / Dussehra Yellow
   ========================================================= */

:root{
  --bg:#fffaf4 !important;
  --bg-2:#fff7ef !important;
  --panel:#ffffff !important;
  --panel-2:#fffaf5 !important;

  --text:#4f171e !important;
  --text-bright:#681c25 !important;

  --muted:#765b5d !important;
  --muted-2:#9a7c7d !important;

  --gold:#e9a800 !important;
  --gold-bright:#d59600 !important;
  --saffron:#f2aa00 !important;

  --border:#ead8d1 !important;
  --border-strong:#d8bbb3 !important;

  --green:#21a66b !important;

  --shadow:0 5px 18px rgba(78,30,27,.07) !important;
}

/* PAGE */

html,
body,
#app,
.main,
.page-container{
  background:#fffaf4 !important;
  color:#4f171e !important;
}

/* Remove the heavy atmospheric dark effect */

.background-glow-one,
.background-glow-two{
  opacity:.035 !important;
}

/* SIDEBAR */

.sidebar{
  background:#fffdf9 !important;
  border-right:1px solid #e5d4ce !important;
  box-shadow:none !important;
}

.brand{
  border-bottom:1px solid #eadbd5 !important;
}

.brand-title{
  color:#c28b17 !important;
}

.brand-subtitle{
  color:#806a6b !important;
}

.event-pill{
  background:#4d171e !important;
  color:#fff8ef !important;
  border-color:#4d171e !important;
}

.nav-item{
  background:#fffdf9 !important;
  color:#57272b !important;
  border:1px solid transparent !important;
}

.nav-item:hover{
  background:#fff4e9 !important;
  color:#671c25 !important;
  border-color:#ead6ce !important;
}

.nav-item.active{
  background:#f7e8e7 !important;
  color:#681c25 !important;
  border-color:#e7cfc9 !important;
  box-shadow:inset 3px 0 0 #f2a900 !important;
}

.section-label,
.sidebar-section,
.nav-section-title{
  color:#8a3037 !important;
}

.sidebar-footer{
  border-top:1px solid #eadbd5 !important;
}

/* TOP COMMAND BAR */

.topbar{
  background:#f2a900 !important;
  border-bottom:3px solid #721c26 !important;
  box-shadow:none !important;
}

.topbar-left h1{
  color:#4b151b !important;
}

.topbar-clock{
  color:#5b292b !important;
}

.live-system{
  color:#542328 !important;
}

.admin-chip{
  background:#541820 !important;
  border-color:#6c2930 !important;
  color:#fff8ef !important;
}

.admin-avatar{
  background:#72232c !important;
  color:#ffd15a !important;
}

/* PAGE INTRO */

.page-introduction h2{
  color:#651a24 !important;
  font-weight:700 !important;
}

.page-introduction p{
  color:#765e60 !important;
}

.eyebrow{
  color:#9b6900 !important;
}

.event-date{
  color:#d39200 !important;
}

/* SECTION HEADINGS */

.section-heading{
  border-bottom:1px solid #ead8d1 !important;
}

.section-heading h3{
  color:#681c25 !important;
}

.section-heading span{
  color:#806768 !important;
}

/* SUMMARY CARDS */

.summary-card{
  background:#ffffff !important;
  border:1px solid #ead8d1 !important;
  box-shadow:0 5px 16px rgba(78,30,27,.07) !important;
}

.summary-card::after{
  border-color:rgba(230,168,0,.15) !important;
}

.summary-card.live{
  border-top:3px solid #e9a800 !important;
  border-left:1px solid #ead8d1 !important;
  border-right:1px solid #ead8d1 !important;
  border-bottom:1px solid #ead8d1 !important;
}

.summary-card.duty{
  border-top:3px solid #e9a800 !important;
}

.summary-icon{
  color:#e0a000 !important;
}

.summary-card span,
.summary-card .label{
  color:#765b5d !important;
  font-weight:600 !important;
}

.summary-card strong,
.summary-card .value{
  color:#711c26 !important;
  font-weight:700 !important;
}

/* DRONE SECTION */

.drone-card{
  background:#ffffff !important;
  border:1px solid #e6d4ce !important;
  box-shadow:0 5px 18px rgba(78,30,27,.065) !important;
}

.drone-card-header{
  background:#ffffff !important;
  border-bottom:1px solid #ead8d1 !important;
}

.drone-card-title{
  color:#681c25 !important;
  font-weight:700 !important;
}

.drone-card-location{
  color:#866c6d !important;
}

.status-badge{
  background:#fffaf6 !important;
  color:#806668 !important;
  border-color:#decac3 !important;
}

.status-badge.live{
  background:#edf9f3 !important;
  color:#178354 !important;
  border-color:#acd8bd !important;
}

/* VIDEO */

.drone-video,
.analytics-video{
  background:#050505 !important;
}

.empty-state{
  color:#8b7774 !important;
}

/* FOOTER OF DRONE CARD */

.drone-card-footer{
  background:#fffaf4 !important;
}

.drone-meta{
  color:#806668 !important;
}

.drone-meta strong{
  color:#681c25 !important;
}

/* BUTTONS */

.outline-button,
.btn{
  background:#ffffff !important;
  color:#681c25 !important;
  border:1px solid #9e6864 !important;
}

.outline-button:hover,
.btn:hover{
  background:#fff2df !important;
  color:#641a23 !important;
  border-color:#e0a000 !important;
}

/* MAP */

.map-panel,
.map-container{
  background:#ffffff !important;
  border:1px solid #e6d4ce !important;
  box-shadow:0 5px 18px rgba(78,30,27,.06) !important;
}

.panel-header{
  border-bottom:1px solid #ead8d1 !important;
}

.panel-title{
  color:#681c25 !important;
}

.map-location{
  color:#5c3437 !important;
  border-bottom:1px solid #eee0db !important;
}

.map-location strong{
  color:#681c25 !important;
}

.map-location span{
  color:#866c6d !important;
}

/* ANALYTICS */

.stat-panel{
  background:#ffffff !important;
  border:1px solid #e6d4ce !important;
}

.stat-panel h3{
  color:#8b5e00 !important;
}

.analytics-metric{
  background:#fffaf4 !important;
  border:1px solid #ead8d1 !important;
}

.analytics-metric small{
  color:#806668 !important;
}

.analytics-metric strong{
  color:#711c26 !important;
}

.chart-placeholder{
  border-color:#e3d0c9 !important;
  color:#907576 !important;
}

/* STATS */

.statistics-card,
.stats-card,
.statistics-panel{
  background:#ffffff !important;
  border-color:#e6d4ce !important;
  color:#4f171e !important;
}

.statistics-card h3,
.stats-card h3,
.statistics-panel h3{
  color:#681c25 !important;
}

.stats-tab,
.statistics-tab{
  background:#ffffff !important;
  color:#681c25 !important;
  border-color:#decac3 !important;
}

.stats-tab.active,
.statistics-tab.active{
  background:#651b24 !important;
  color:#ffffff !important;
  border-color:#651b24 !important;
}

/* RECORDINGS */

.recording-card,
.recordings-card,
.recording-item{
  background:#ffffff !important;
  border-color:#e6d4ce !important;
  color:#4f171e !important;
}

/* SYSTEM */

.system-state{
  color:#168153 !important;
}

.system-indicator{
  background:#22a66d !important;
}

/* KEEP VIDEO BLACK */

video,
iframe{
  background:#050505 !important;
}


/* =========================================================
   TYPOGRAPHY / READABILITY PASS
   ========================================================= */

/* General text rendering */
body{
  -webkit-font-smoothing:antialiased !important;
  text-rendering:optimizeLegibility !important;
}

/* Main page headings */
.page-introduction h2{
  font-family:Cinzel, Georgia, serif !important;
  font-size:27px !important;
  line-height:1.15 !important;
  letter-spacing:.2px !important;
  color:#651923 !important;
}

.page-introduction p{
  font-size:12px !important;
  line-height:1.5 !important;
  color:#765c5d !important;
}

/* Eyebrows / section labels */
.eyebrow,
.section-heading span,
.section-label,
.sidebar-section,
.nav-section-title{
  font-size:9px !important;
  font-weight:700 !important;
  letter-spacing:1.8px !important;
  color:#8b5b00 !important;
}

/* Section heading */
.section-heading h3{
  font-family:Cinzel,Georgia,serif !important;
  font-size:15px !important;
  font-weight:700 !important;
  letter-spacing:.2px !important;
  color:#651923 !important;
}

/* =========================================================
   SUMMARY CARDS
   ========================================================= */

/* The HTML uses span + strong without label/value classes */
.summary-card > div:last-child{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:0 !important;
}

.summary-card > div:last-child > span,
.summary-card .label{
  display:block !important;
  font-size:9px !important;
  line-height:1.25 !important;
  letter-spacing:1.35px !important;
  font-weight:700 !important;
  text-transform:uppercase !important;
  color:#75585a !important;
  margin:0 !important;
}

.summary-card > div:last-child > strong,
.summary-card .value{
  display:block !important;
  margin-top:7px !important;
  font-size:27px !important;
  line-height:1 !important;
  font-weight:800 !important;
  letter-spacing:-.3px !important;
  color:#711c26 !important;
  font-variant-numeric:tabular-nums !important;
}

.summary-icon{
  font-size:12px !important;
  line-height:1 !important;
  margin-bottom:13px !important;
}

/* =========================================================
   DRONE CARDS
   ========================================================= */

.drone-card-title{
  font-size:12px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:#681c25 !important;
}

.drone-card-location{
  font-size:10px !important;
  line-height:1.35 !important;
  color:#806668 !important;
}

.status-badge{
  font-size:8px !important;
  line-height:1 !important;
  letter-spacing:.8px !important;
  font-weight:700 !important;
}

/* Metadata */
.drone-meta{
  font-size:9px !important;
  line-height:1.3 !important;
}

.drone-meta strong{
  font-size:10px !important;
  line-height:1.25 !important;
  font-weight:700 !important;
  color:#681c25 !important;
}

/* Metadata labels */
.drone-meta > div{
  color:#806668 !important;
}

.drone-meta > div::first-line{
  color:#806668 !important;
}

/* Buttons */
.outline-button,
.btn{
  font-size:9px !important;
  line-height:1 !important;
  font-weight:700 !important;
  letter-spacing:.25px !important;
  white-space:nowrap !important;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.brand-title{
  font-family:Cinzel,Georgia,serif !important;
  font-size:15px !important;
  font-weight:700 !important;
  letter-spacing:.5px !important;
}

.brand-subtitle{
  font-size:8px !important;
  line-height:1.35 !important;
  letter-spacing:1.2px !important;
}

.event-pill{
  font-size:8px !important;
  font-weight:700 !important;
  letter-spacing:.4px !important;
}

.nav-item{
  font-size:10px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
}

.sidebar-footer{
  font-size:8px !important;
  line-height:1.5 !important;
}

/* Drone names in sidebar */
#sidebar .nav-item[data-drone-id],
.sidebar .nav-item[data-drone-id]{
  font-size:10px !important;
  font-weight:600 !important;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar-left h1{
  font-family:Cinzel,Georgia,serif !important;
  font-size:17px !important;
  font-weight:700 !important;
  letter-spacing:.2px !important;
}

.live-system{
  font-size:8px !important;
  font-weight:700 !important;
  letter-spacing:.7px !important;
}

.topbar-clock{
  font-size:10px !important;
  font-weight:600 !important;
}

.admin-chip{
  font-size:8px !important;
  font-weight:700 !important;
  letter-spacing:.5px !important;
}

/* =========================================================
   MAP / ANALYTICS / STATS
   ========================================================= */

.panel-title{
  font-size:12px !important;
  font-weight:700 !important;
}

.map-location strong{
  font-size:10px !important;
  line-height:1.3 !important;
  font-weight:700 !important;
  color:#681c25 !important;
}

.map-location span{
  font-size:9px !important;
  line-height:1.35 !important;
  color:#806668 !important;
}

.analytics-metric small{
  font-size:8px !important;
  font-weight:700 !important;
  letter-spacing:1px !important;
}

.analytics-metric strong{
  font-size:26px !important;
  line-height:1 !important;
  font-weight:800 !important;
}

/* Empty video text */
.empty-state{
  font-size:10px !important;
  font-weight:500 !important;
  letter-spacing:.3px !important;
  color:#806f6d !important;
}

/* =========================================================
   KEEP TEXT FROM COLLIDING
   ========================================================= */

.summary-card{
  min-width:0 !important;
}

.summary-card > div{
  min-width:0 !important;
}

.summary-card strong,
.summary-card span{
  white-space:nowrap !important;
}


/* =========================================================
   TEMPLE AUDIO CONTROL
   ========================================================= */

#temple-audio-toggle{
  appearance:none;
  border:1px solid rgba(91,24,30,.35);
  background:rgba(255,255,255,.25);
  color:#5b1b22;
  height:30px;
  padding:0 11px;
  border-radius:15px;
  cursor:pointer;
  font-size:8px;
  font-weight:700;
  letter-spacing:.7px;
  transition:.18s ease;
}

#temple-audio-toggle:hover{
  background:rgba(255,255,255,.45);
  border-color:#6c2028;
}

#temple-audio-toggle.audio-on{
  background:#5b1820;
  border-color:#5b1820;
  color:#ffd45c;
  box-shadow:0 0 10px rgba(91,24,30,.20);
}

@media(max-width:900px){
  #temple-audio-toggle{
    padding:0 8px;
    font-size:7px;
  }
}


/* YouTube temple audio player */

#temple-youtube-audio{
  position:fixed;
  width:1px;
  height:1px;
  left:-10px;
  bottom:-10px;
  border:0;
  opacity:0;
  pointer-events:none;
}

#temple-audio-toggle{
  appearance:none;
  border:1px solid rgba(91,24,30,.35);
  background:rgba(255,255,255,.25);
  color:#5b1b22;
  height:30px;
  padding:0 11px;
  border-radius:15px;
  cursor:pointer;
  font-size:8px;
  font-weight:700;
  letter-spacing:.7px;
}

#temple-audio-toggle:hover{
  background:rgba(255,255,255,.45);
  border-color:#6c2028;
}

#temple-audio-toggle.audio-on{
  background:#5b1820;
  border-color:#5b1820;
  color:#ffd45a;
}

