/* DCP L&O Command Center Stylesheet */

:root {
  --bg-primary: #0a0c14;
  --bg-secondary: #121625;
  --bg-card: rgba(22, 28, 45, 0.65);
  --border-color: rgba(0, 242, 254, 0.15);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  /* Luminous Pink Lights */
  --pink-glow: #ff007f;
  --pink-bright: #ff66b2;
  --pink-shadow: rgba(255, 0, 127, 0.4);
  
  /* Accent neon colors */
  --cyan-glow: #00f2fe;
  --cyan-bright: #4facfe;
  --cyan-shadow: rgba(0, 242, 254, 0.4);
  
  --text-primary: #f0f4f8;
  --text-secondary: #8e9bb2;
  --text-dim: #5c6984;
  
  --success: #39ff14;
  --warning: #ffb703;
  --danger: #ff0055;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Background Hex/Grid Pattern */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(18, 22, 37, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 37, 0.4) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(20, 24, 45, 0.2) 0%, rgba(10, 12, 20, 0.85) 100%);
  z-index: -1;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

/* --- LOGIN SCREEN --- */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  z-index: 10;
  animation: fadeIn 0.8s ease-out;
}

.login-card {
  background: rgba(18, 22, 37, 0.85);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.1), inset 0 0 15px rgba(0, 242, 254, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-glow), var(--pink-glow));
}

.logo-wrapper {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.police-logo {
  height: 110px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
  transition: transform 0.5s ease;
}

.logo-wrapper:hover .police-logo {
  transform: rotateY(180deg);
}

.login-card h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.subtitle {
  color: var(--cyan-bright);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 35px;
}

.input-group {
  text-align: left;
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  background: rgba(10, 12, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px 45px 14px 16px;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 4px;
  transition: all 0.3s ease;
}

.password-wrapper input:focus {
  outline: none;
  border-color: var(--pink-glow);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--cyan-glow);
}

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 6px;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.8) 0%, rgba(180, 0, 90, 0.9) 100%);
  border: 1px solid var(--pink-bright);
  border-radius: 6px;
  color: #fff;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
  font-family: 'Rajdhani', sans-serif;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
  background: linear-gradient(135deg, var(--pink-glow) 0%, #ff3399 100%);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 30px;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.login-footer i {
  color: var(--cyan-glow);
  margin-right: 4px;
  animation: pulse 2s infinite;
}

/* --- DASHBOARD LAYOUT --- */
.dashboard-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  animation: fadeIn 0.6s ease-out;
}

/* Header */
.dashboard-header {
  height: 70px;
  background: rgba(14, 18, 30, 0.9);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
  z-index: 5;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  height: 42px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.header-title-wrapper h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 1px;
}

.header-center {
  background: rgba(10, 12, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 20px;
}

.live-clock {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--cyan-glow);
}

.live-clock i {
  margin-right: 6px;
  animation: rotate 10s linear infinite;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.officer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-indicator.online {
  animation: pulse 1.5s infinite;
}

.officer-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.btn-logout {
  background: none;
  border: 1px solid rgba(255, 0, 127, 0.2);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: var(--pink-glow);
  color: var(--pink-glow);
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
}

/* Grid workspace */
.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 20px;
  padding: 20px;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 70px);
}

.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.panel-header h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--pink-glow);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--pink-glow);
  animation: pulse 1.2s infinite;
}

.pulse-dot.green {
  background-color: var(--cyan-glow);
  box-shadow: 0 0 6px var(--cyan-glow);
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbars styling */
.panel-content::-webkit-scrollbar,
.scrollable-feed::-webkit-scrollbar,
.diary-feed::-webkit-scrollbar {
  width: 4px;
}
.panel-content::-webkit-scrollbar-thumb,
.scrollable-feed::-webkit-scrollbar-thumb,
.diary-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.panel-content::-webkit-scrollbar-thumb:hover,
.scrollable-feed::-webkit-scrollbar-thumb:hover,
.diary-feed::-webkit-scrollbar-thumb:hover {
  background: var(--border-glow);
}

/* Card panels */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan-glow);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- FEED STYLES (Situation feed) --- */
.scrollable-feed {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  background: rgba(10, 12, 20, 0.4);
  border-left: 3px solid var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.3;
}

.feed-item.urgent {
  border-left-color: var(--danger);
  background: rgba(255, 0, 85, 0.05);
}

.feed-item.warning {
  border-left-color: var(--warning);
  background: rgba(255, 183, 3, 0.05);
}

.feed-item.normal {
  border-left-color: var(--cyan-glow);
}

.feed-item .time {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Progress deployment elements */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--cyan-glow);
  box-shadow: 0 0 8px var(--cyan-glow);
  border-radius: 3px;
}

.progress-fill.warning {
  background: var(--pink-glow);
  box-shadow: 0 0 8px var(--pink-glow);
}

.progress-fill.success {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Comms Hotlines */
.comms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.comms-btn {
  background: rgba(18, 22, 37, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--text-secondary);
  padding: 8px 4px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.comms-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--cyan-glow);
  color: var(--cyan-glow);
}

/* --- CENTER PANEL: LUMINOUS COMMAND PORTAL --- */
.center-panel {
  align-items: center;
  justify-content: center;
}

.console-box {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.console-hud {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(18, 22, 37, 0.5);
  border: 2px solid rgba(255, 0, 127, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Glowing Neon Pink Ring */
.glowing-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--pink-glow);
  border-bottom-color: var(--pink-glow);
  animation: rotateClockwise 8s linear infinite;
  box-shadow: 0 0 25px var(--pink-shadow), inset 0 0 25px var(--pink-shadow);
}

.radar-sweep {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 0, 127, 0.15) 0deg, transparent 90deg);
  animation: rotateClockwise 4s linear infinite;
  pointer-events: none;
}

/* Core Master Button */
.master-control-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #25091a 0%, #0d020a 100%);
  border: 3px solid var(--pink-glow);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 35px var(--pink-shadow), inset 0 0 20px var(--pink-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  font-family: 'Rajdhani', sans-serif;
}

.master-control-btn i {
  font-size: 2.5rem;
  color: var(--pink-bright);
  text-shadow: 0 0 10px var(--pink-glow);
  transition: transform 0.4s ease;
}

.master-control-btn span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  color: #ffb3d9;
  text-shadow: 0 0 5px var(--pink-shadow);
}

.master-control-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 50px rgba(255, 0, 127, 0.85), inset 0 0 30px rgba(255, 0, 127, 0.6);
  border-color: #ff66b2;
}

.master-control-btn:hover i {
  transform: rotate(90deg) scale(1.1);
}

.master-control-btn:active {
  transform: scale(0.98);
}

.instructions-text {
  text-align: center;
}

.instructions-text h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.instructions-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Glowing Pink Commands Grid */
.command-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.command-btn {
  text-decoration: none;
  background: rgba(22, 28, 45, 0.7);
  border: 1px solid rgba(255, 0, 127, 0.2);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.05);
}

.command-btn i {
  font-size: 1.6rem;
  color: var(--pink-bright);
  transition: all 0.3s ease;
}

.command-btn .btn-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
}

.command-btn .btn-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Glowing Luminous Effect on Hover */
.command-btn:hover {
  background: rgba(35, 15, 30, 0.65);
  border-color: var(--pink-glow);
  box-shadow: 0 0 18px var(--pink-shadow), inset 0 0 12px rgba(255, 0, 127, 0.2);
  transform: translateY(-3px);
}

.command-btn:hover i {
  color: #fff;
  transform: scale(1.15);
  text-shadow: 0 0 8px var(--pink-glow);
}

/* --- RIGHT PANEL: METRICS & MOCK CAMERA FEEDS --- */
.camera-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cam-box {
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 6px;
}

.cam-name {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.cam-feed {
  height: 90px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* Background image overrides for feeds using gradients / abstract canvas styling */
.feed-vyttila {
  background: radial-gradient(circle, rgba(16, 25, 48, 0.9) 0%, rgba(3, 5, 12, 0.95) 100%), 
              repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
}

.feed-mgroad {
  background: radial-gradient(circle, rgba(24, 18, 38, 0.9) 0%, rgba(5, 3, 12, 0.95) 100%),
              repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
}

/* Scanning scanline overlay */
.scanline {
  width: 100%;
  height: 4px;
  background: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  animation: scan 3s linear infinite;
}

.feed-mgroad .scanline {
  background: rgba(255, 0, 127, 0.25);
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
  animation-duration: 2.4s;
}

/* Snapshot mini status box */
.mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.m-stat {
  background: rgba(10, 12, 20, 0.4);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
}

.m-stat.alert {
  border-color: rgba(255, 0, 127, 0.2);
  background: rgba(255, 0, 127, 0.02);
}

.m-stat .val {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan-glow);
  margin-bottom: 2px;
}

.m-stat.alert .val {
  color: var(--pink-glow);
}

.m-stat .lbl {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* General Diary Entry Stream */
.diary-feed {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diary-item {
  padding: 6px 10px;
  background: rgba(10, 12, 20, 0.3);
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.diary-item .tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--cyan-glow);
  display: inline-block;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.diary-item p {
  color: var(--text-primary);
}

/* --- PROJECT PORTAL DIALOG/MODAL --- */
.project-modal {
  position: fixed;
  top: 5vh;
  left: 5vw;
  width: 90vw;
  height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--pink-glow);
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.35);
  border-radius: 10px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalOpen 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-header {
  height: 50px;
  background: rgba(14, 18, 30, 0.95);
  border-bottom: 1px solid rgba(255, 0, 127, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.modal-header h3 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--pink-bright);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
}

.modal-controls button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.modal-controls button:hover {
  color: var(--danger);
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #07090e;
}

.mock-browser-bar {
  background: #141724;
  padding: 8px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.address-bar {
  display: block;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  color: var(--cyan-glow);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-family: monospace;
}

.iframe-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview-screen {
  text-align: center;
  color: var(--text-secondary);
  max-width: 450px;
  padding: 20px;
}

.project-preview-screen i {
  font-size: 4rem;
  color: var(--pink-glow);
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--pink-shadow);
}

.project-preview-screen h2 {
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  margin-bottom: 10px;
}

.project-preview-screen p {
  font-size: 0.85rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.btn-open-external {
  background: transparent;
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

.btn-open-external:hover {
  background: var(--cyan-glow);
  color: #000;
  box-shadow: 0 0 15px var(--cyan-shadow);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

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

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes modalOpen {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
}

/* --- News Overlay Styles (Matching daily project) --- */
#newsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.news-feed-counter {
  position: absolute;
  top: 25px;
  left: 30px;
  z-index: 10012;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid #ffcc00;
  color: #ffcc00;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.5);
  font-family: 'Segoe UI', Arial, sans-serif;
  pointer-events: none;
  transition: all 0.3s ease;
}
.news-feed-counter i {
  color: #ff3b30;
  animation: counterPulse 1.5s infinite alternate;
}
@keyframes counterPulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.15); opacity: 1; }
}

.news-header-reveal-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 10014;
  background: transparent;
}

#newsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10016;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.news-header-reveal-zone:hover + #newsHeader,
#newsHeader:hover {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.news-close-btn {
  background: rgba(220, 38, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
.news-close-btn:hover {
  background: rgb(220, 38, 38);
  transform: scale(1.05);
}

.news-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10015;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.news-nav-btn:hover {
  background: rgba(255, 59, 48, 0.25);
  border-color: #ff3b30;
  color: #ffcc00;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.6), inset 0 0 10px rgba(255, 59, 48, 0.3);
  transform: translateY(-50%) scale(1.1);
}
.news-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(255, 59, 48, 0.4);
}
.news-nav-btn.prev-btn {
  left: 40px;
}
.news-nav-btn.next-btn {
  right: 40px;
}

.news-title-badge {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff3b30;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

#newsOverlayBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(35px) brightness(0.22);
  opacity: 0.9;
  z-index: 1;
  transition: background-image 0.8s ease-in-out;
  pointer-events: none;
}

#newsSlideshowContainer {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding-bottom: 133px;
  box-sizing: border-box;
  z-index: 2;
}

#newsImageDisplay {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 120px 20px;
  box-sizing: border-box;
}

.news-slide {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.news-slide.active {
  opacity: 1;
  transform: scale(1);
}

.news-text-card {
  position: absolute;
  width: 92%;
  max-width: 1100px;
  max-height: 80%;
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 45px 50px;
  box-sizing: border-box;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 59, 48, 0.4);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
}

.news-text-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #ff3b30, #ffcc00, #00e5ff);
  box-shadow: 0 2px 10px rgba(255, 59, 48, 0.5);
  z-index: 5;
}

.news-card-bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.25);
  opacity: 0.85;
  z-index: -1;
  border-radius: 24px;
  transform: scale(1.08);
  pointer-events: none;
}

.news-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #ff3b30;
  color: #fff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
  position: relative;
  z-index: 2;
}

.news-card-title {
  font-weight: 850;
  margin: 0 0 12px 0;
  color: #ffcc00;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.news-card-title.title-large {
  font-size: 3.0rem;
  font-weight: 900;
}
.news-card-title.title-medium {
  font-size: 2.4rem;
  font-weight: 900;
}

.news-card-meta {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  position: relative;
  z-index: 2;
}

.news-card-meta i {
  color: #00e5ff;
}

.news-card-body {
  overflow-y: auto;
  flex: 1;
  font-family: 'Segoe UI', Arial, sans-serif;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
  line-height: 1.5;
}

.news-card-body.text-large {
  font-size: 2.4rem;
  line-height: 1.45;
  font-weight: 800;
  color: #ffffff;
}
.news-card-body.text-medium {
  font-size: 1.9rem;
  line-height: 1.5;
  color: #f8fafc;
  font-weight: 700;
}
.news-card-body.text-small {
  font-size: 1.5rem;
  line-height: 1.55;
  color: #e2e8f0;
  font-weight: 700;
}

.news-card-body::-webkit-scrollbar {
  width: 6px;
}
.news-card-body::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.news-card-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 3px;
}
.news-card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.45);
}

.news-translation-card {
  border-color: #00e5ff !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.25) !important;
}

.news-translation-card::before {
  background: linear-gradient(90deg, #00e5ff, #0077ff, #00ffaa) !important;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.5) !important;
}

.news-translation-card .translation-badge {
  background: #00e5ff !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4) !important;
}

.news-translation-card .news-card-title {
  color: #00ffcc !important;
}

iframe.news-slide {
  width: 90%;
  height: 90%;
  border: 3px solid #222;
  background: #ffffff;
  border-radius: 8px;
}

video.news-slide {
  width: 90%;
  height: 90%;
  border: 3px solid #222;
  background: #000000;
  border-radius: 8px;
  object-fit: contain;
}

#newsFlashOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 10020;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

#newsFlashOverlay.flash {
  opacity: 1;
  transition: opacity 0.05s ease-in;
}

.news-no-image {
  color: #475569;
  font-size: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.news-no-image i {
  font-size: 4rem;
  color: #334155;
}

#newsTickerWrapper {
  height: 100px;
  background: rgba(17, 17, 17, 0.95);
  border-top: 3px solid #ff3b30;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10010;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.ticker-label-container {
  background: #ff3b30;
  color: #fff;
  padding: 10px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  box-shadow: 5px 0 15px rgba(0,0,0,0.4);
  z-index: 10011;
}

.ticker-label {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  text-align: center;
}

#bottomNewsTime {
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffcc00;
  margin-top: 4px;
}

.ticker-content-container {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

#newsTickerContent {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  left: 100%;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  padding-right: 50px;
  letter-spacing: 0.5px;
}

.ticker-item .bullet {
  color: #ff3b30;
  font-size: 2rem;
  margin-right: 15px;
  text-shadow: 0 0 10px rgba(255, 59, 48, 0.8);
}

.ticker-item .time-badge {
  background: #00e5ff;
  color: #000;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  margin-right: 12px;
  box-shadow: 0 0 8px rgba(0,229,255,0.4);
}

.ticker-item .event-title-badge {
  color: #ffcc00;
  font-weight: 900;
  margin-right: 8px;
}

#newsHeadlineBar {
  position: absolute;
  bottom: 110px;
  left: 20px;
  width: calc(100% - 40px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  height: 45px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 10009;
  transition: all 1.3s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}

.headline-badge {
  background: #ffcc00;
  color: #000;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.headline-text-container {
  flex: 1;
  padding: 0 15px;
  overflow: hidden;
}

#headlineText {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

/* Headline Intro Active State */
#newsHeadlineBar.intro-active {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  width: 70%;
  max-width: 900px;
  height: auto;
  min-height: 140px;
  background: rgba(0, 0, 0, 0.95);
  border: 3px solid #ffcc00;
  box-shadow: 0 0 50px rgba(255, 204, 0, 0.6), 0 20px 40px rgba(0, 0, 0, 0.8);
  border-radius: 20px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  z-index: 10017;
  opacity: 0;
}

#newsHeadlineBar.intro-active.zoom-in {
  transform: translate(-50%, -50%) scale(1.0);
  opacity: 1;
}

#newsHeadlineBar.intro-active .headline-badge {
  background: #ffcc00;
  color: #000;
  height: 45px;
  width: 100%;
  justify-content: center;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  font-size: 1.2rem;
}

#newsHeadlineBar.intro-active .headline-text-container {
  padding: 25px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#newsHeadlineBar.intro-active #headlineText {
  font-size: 1.8rem;
  color: #fff;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
}

/* --- Zatta Scroll View Styles (Matching daily project) --- */
#scrollOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  color: #fff;
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace; /* Airport display style */
}

#scrollHeader {
  background: rgba(17, 17, 17, 0.98);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid #333;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.2);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10005;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header-reveal-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 10006;
  background: transparent;
}

.header-reveal-zone:hover + #scrollHeader,
#scrollHeader:hover {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lang-toggle-btn {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: #222;
  color: #ff9800;
  border: 2px solid #ff9800;
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s;
  z-index: 10002;
}

.lang-toggle-btn:hover {
  background: #ff9800;
  color: #000;
}

.speed-control-container {
  position: absolute;
  left: 200px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10002;
}

.speed-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.speed-slider {
  -webkit-appearance: none;
  width: 120px;
  height: 6px;
  background: #333;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ff9800;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.count-control-container {
  position: absolute;
  right: 250px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10002;
}

.count-input {
  width: 60px;
  background: #222;
  border: 1px solid #ff9800;
  color: #fff;
  border-radius: 5px;
  padding: 5px;
  font-weight: bold;
  text-align: center;
  font-size: 1rem;
  outline: none;
}

.count-input:focus {
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}

#scrollHeader h1 {
  position: absolute;
  right: 480px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin: 0;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

#scrollContainer {
  flex: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
}

#scrollContainer:active {
  background: rgba(255, 255, 255, 0.05);
}

#scrollContent {
  position: absolute;
  width: 100%;
  top: 100%;
}

.scroll-item {
  position: relative;
  padding: 40px 40px;
  border-bottom: 1px solid #222;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: color 0.3s ease;
}

.crime-case-text {
  color: #ff3d00 !important;
  text-shadow: 0 0 10px rgba(255, 61, 0, 0.5);
  font-weight: 900;
}

.sticky-note {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 280px;
  background: #ffeb3b;
  padding: 25px 20px 20px 20px;
  box-shadow: 10px 10px 20px rgba(0,0,0,0.4);
  transform: rotate(2deg);
  border-bottom-right-radius: 100px 10px;
  font-family: 'Permanent Marker', 'Poppins', cursive, sans-serif;
  font-size: 1.3rem;
  color: #222;
  z-index: 100;
  border: 1px solid #fdd835;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
  text-align: left;
  display: block;
  border-top: 1px solid #fff9c4;
}

.scroll-item.has-note .scroll-item-row {
  padding-right: 320px;
}

.sticky-note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 30px 30px 0;
  border-style: solid;
  border-color: #fbc02d #111;
  display: block;
  width: 0;
}

.sticky-note i.pin {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #d32f2f;
  font-size: 2.5rem;
  text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
  z-index: 101;
}

.modern-cal-icon {
  display: inline-flex;
  flex-direction: column;
  width: 45px;
  height: 48px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 15px;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), 0 0 15px rgba(224, 176, 255, 0.4);
  border: 1px solid #ddd;
  position: relative;
}

.modern-cal-header {
  background: #9370db;
  height: 15px;
  width: 100%;
  position: relative;
}

.modern-cal-header::after, .modern-cal-header::before {
  content: '';
  position: absolute;
  top: -4px;
  width: 4px;
  height: 8px;
  background: #444;
  border-radius: 2px;
}
.modern-cal-header::before { left: 8px; }
.modern-cal-header::after { right: 8px; }

.modern-cal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b68ee;
  font-size: 1.2rem;
  font-weight: 900;
}

.modern-cal-body i {
  font-size: 1.2rem;
}

.scroll-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.scroll-serial {
  font-size: 3.5rem;
  color: #ff00ff;
  font-weight: 900;
  min-width: 80px;
  margin-right: 15px;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.scroll-time {
  font-size: 2.5rem;
  color: #00ff00;
  font-weight: bold;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 255, 0, 0.1);
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-radius: 15px;
  padding: 5px 15px;
  box-shadow: inset 0 0 15px rgba(0, 255, 0, 0.1), 0 0 10px rgba(0, 255, 0, 0.2);
}

.scroll-ps {
  font-size: 2.8rem;
  color: #00e5ff;
  font-weight: 900;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.scroll-head-pill {
  font-size: 1.4rem;
  background: rgba(0, 229, 255, 0.1);
  color: #00e5ff;
  padding: 2px 12px;
  border-radius: 5px;
  margin-top: 5px;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.scroll-subhead {
  color: #b0bec5;
  font-size: 1.2rem;
  margin-left: 10px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scroll-subhead i {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.priority-alert {
  animation: alert-shake 0.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes alert-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.latest-badge {
  background: #00ff00;
  color: #000;
  font-size: 1.5rem;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 900;
  margin-left: 25px;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: 0 0 30px #00ff00;
  animation: pulse-transmit 1.2s infinite ease-out;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  height: fit-content;
  z-index: 100;
}

@keyframes pulse-transmit {
  0% { 
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.9), 0 0 0 0 rgba(0, 255, 0, 0.4);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 255, 0, 0), 0 0 0 30px rgba(0, 255, 0, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 0, 0), 0 0 0 0 rgba(0, 255, 0, 0);
    transform: scale(1);
  }
}

/* --- Dashboard Grid Responsive Media Query --- */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow-y: auto !important;
    gap: 20px;
    padding: 15px;
  }
  
  .panel {
    max-height: none !important;
    height: auto !important;
  }
  
  .left-panel {
    order: 2;
  }
  
  .center-panel {
    order: 1;
    margin-bottom: 20px;
  }
  
  .right-panel {
    order: 3;
  }
  
  .console-box {
    max-width: 100%;
  }
  
  /* Prevent screen height scrolling blockages */
  body {
    overflow-y: auto !important;
  }
}

/* Light Theme Variable Overrides */
body.light-theme {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --border-color: rgba(99, 102, 241, 0.2);
  --border-glow: rgba(99, 102, 241, 0.4);
  
  --pink-glow: #4f46e5;
  --pink-bright: #6366f1;
  --pink-shadow: rgba(99, 102, 241, 0.15);
  
  --cyan-glow: #0284c7;
  --cyan-bright: #0ea5e9;
  --cyan-shadow: rgba(14, 165, 233, 0.15);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-dim: #94a3b8;
  
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
}
body.light-theme::before {
  background-image: 
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
}
body.light-theme::after {
  background: radial-gradient(circle at 50% 50%, rgba(203, 213, 225, 0.2) 0%, rgba(241, 245, 249, 0.9) 100%);
}
body.light-theme .card, 
body.light-theme .panel {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}
body.light-theme .command-btn {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}
body.light-theme .command-btn:hover {
  background: #f1f5f9 !important;
  border-color: #4f46e5 !important;
}
body.light-theme .header-title-wrapper h1 {
  color: #1e293b;
}

/* Selective Blue Theme Variable Overrides */
body.selective-theme {
  --bg-primary: #090a0f;
  --bg-secondary: #0e111a;
  --bg-card: rgba(17, 20, 28, 0.85);
  --border-color: #1e2330;
  --border-glow: #2b3245;
  
  /* Mute pink signals in favor of selective blue */
  --pink-glow: #475569;
  --pink-bright: #64748b;
  --pink-shadow: rgba(71, 85, 105, 0.1);
  
  /* Luminous Cyber Blue is the ONLY highlighted color */
  --cyan-glow: #38bdf8;
  --cyan-bright: #0ea5e9;
  --cyan-shadow: rgba(14, 165, 233, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #64748b;
  --text-dim: #334155;
  
  --success: #38bdf8;
  --warning: #475569;
  --danger: #94a3b8;
}
body.selective-theme::before {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.5) 1px, transparent 1px);
}
body.selective-theme .badge {
  background: #0ea5e9;
  color: #000;
}
body.selective-theme .pulse-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0.4);
}

/* Login Card Light Mode Styles */
body.light-theme .login-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  color: #1e293b !important;
}
body.light-theme .login-card h2 {
  color: #1e293b !important;
}
body.light-theme .login-card .subtitle {
  color: #64748b !important;
}
body.light-theme .login-card label {
  color: #475569 !important;
}
body.light-theme .login-card input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}
body.light-theme .login-card input::placeholder {
  color: #94a3b8 !important;
}
body.light-theme .login-card .toggle-password {
  color: #64748b !important;
}
body.light-theme .login-card .btn-login {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}
body.light-theme .login-card .btn-login:hover {
  background: #4338ca !important;
}
body.light-theme .login-card .login-footer {
  border-top-color: #e2e8f0 !important;
  color: #94a3b8 !important;
}

/* Selective theme login card styles */
body.selective-theme .login-card {
  background: rgba(17, 20, 28, 0.95) !important;
  border-color: #1e2330 !important;
}
body.selective-theme .login-card .btn-login {
  background: #0ea5e9 !important;
  color: #000 !important;
  border-color: #0ea5e9 !important;
  font-weight: bold !important;
}

/* Charcoal & Green Theme Variable Overrides */
body.green-theme {
  --bg-primary: #181b22;
  --bg-secondary: #22262f;
  --bg-card: rgba(34, 38, 47, 0.7);
  --border-color: rgba(16, 185, 129, 0.15);
  --border-glow: rgba(16, 185, 129, 0.35);
  
  --pink-glow: #10b981;
  --pink-bright: #34d399;
  --pink-shadow: rgba(16, 185, 129, 0.2);
  
  --cyan-glow: #10b981;
  --cyan-bright: #059669;
  --cyan-shadow: rgba(16, 185, 129, 0.3);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-dim: #475569;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}
body.green-theme::before {
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
}
body.green-theme::after {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, rgba(24, 27, 34, 0.95) 100%);
}
body.green-theme .badge {
  background: #10b981;
  color: #000;
}
body.green-theme .pulse-dot {
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
}
body.green-theme .login-card {
  background: rgba(34, 38, 47, 0.95) !important;
  border-color: #10b981 !important;
}
body.green-theme .login-card .btn-login {
  background: #10b981 !important;
  color: #000 !important;
  border-color: #10b981 !important;
  font-weight: bold !important;
}




