/* 
   Emergency London — United Kingdom Emergency Roleplay Network
   Intranet and Public Portal stylesheet
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-darker: #050508;
  --bg-dark: #0a0b0e;
  --bg-panel: rgba(16, 20, 30, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.15);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Emergency Services Color Accents */
  --mps-blue: #0077e6;
  --mps-blue-glow: rgba(0, 119, 230, 0.5);
  --lfb-red: #e62222;
  --lfb-red-glow: rgba(230, 34, 34, 0.5);
  --las-green: #00b359;
  --las-green-glow: rgba(0, 179, 89, 0.5);
  --las-yellow: #e6c300;
  --civ-orange: #f07e13;
  --dispatch-gray: #718096;
}

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

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ------------------------------------------------------------
   EMERGENCY LIGHTS SWEEP ANIMATION
   ------------------------------------------------------------ */
.emergency-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--mps-blue) 0%, 
    transparent 35%, 
    var(--lfb-red) 50%, 
    transparent 65%, 
    var(--mps-blue) 100%
  );
  background-size: 200% auto;
  animation: sweep 4s linear infinite;
  z-index: 100;
}

@keyframes sweep {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Background Glowing Sirens Ambient */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 119, 230, 0.1) 0%, rgba(230, 34, 34, 0.08) 50%, transparent 100%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: ambientSweep 12s ease-in-out infinite alternate;
}

@keyframes ambientSweep {
  0% { filter: blur(80px) hue-rotate(0deg); opacity: 0.8; }
  100% { filter: blur(100px) hue-rotate(20deg); opacity: 1; }
}

/* ------------------------------------------------------------
   NAVBAR SECTION
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 11, 14, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--lfb-red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(230, 34, 34, 0.5);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.nav-logo-text span {
  color: var(--mps-blue);
  text-shadow: 0 0 10px var(--mps-blue-glow);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--mps-blue);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 119, 230, 0.3);
}

.btn-primary:hover {
  background: #0088ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 230, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--lfb-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(230, 34, 34, 0.3);
}

.btn-danger:hover {
  background: #ff3333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 34, 34, 0.5);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

/* User Profile Nav Block */
.nav-profile-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  padding: 6px 14px 6px 6px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: background 0.2s;
}

.nav-profile-block:hover {
  background: rgba(255,255,255,0.08);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--mps-blue);
}

.nav-user-details {
  display: flex;
  flex-direction: column;
}

.nav-user-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-user-role {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------
   HERO / HOME TAB
   ------------------------------------------------------------ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg-darker)), url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding: 100px 4% 40px 4%;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-clouds-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-darker) 15%, transparent 80%), rgba(5,5,8,0.55);
  pointer-events: none;
  z-index: 1;
}

.hero-left {
  position: relative;
  z-index: 10;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-right {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 119, 230, 0.12);
  border: 1px solid var(--mps-blue-glow);
  color: var(--mps-blue);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  width: fit-content;
  text-shadow: 0 0 10px var(--mps-blue-glow);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 16px;
}

.hero-title span {
  background: linear-gradient(to right, var(--mps-blue), var(--lfb-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  text-shadow: 0 0 25px rgba(0, 119, 230, 0.25);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 35px;
}

.hero-btns {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 45px;
}

/* Stats Block */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 650px;
}

/* FEATURED CAROUSEL DIVISION CARD (MOCKUP STYLED) */
.featured-card-wrapper {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.featured-card-container {
  position: relative;
  width: 100%;
  height: 450px;
}

.featured-division-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 20, 30, 0.6);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95) translateY(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.featured-division-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.featured-division-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* Card Glow Effect based on Division */
.division-card-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 119, 230, 0.15) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}

#feat-card-lfb .division-card-glow {
  background: radial-gradient(circle, rgba(230, 34, 34, 0.15) 0%, transparent 70%);
}

#feat-card-las .division-card-glow {
  background: radial-gradient(circle, rgba(0, 179, 89, 0.15) 0%, transparent 70%);
}

/* Card Header styles */
.division-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.division-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.division-badge.mps {
  background: var(--mps-blue);
  box-shadow: 0 0 15px var(--mps-blue-glow);
}

.division-badge.lfb {
  background: var(--lfb-red);
  box-shadow: 0 0 15px var(--lfb-red-glow);
}

.division-badge.las {
  background: var(--las-green);
  box-shadow: 0 0 15px var(--las-green-glow);
}

.division-header-text {
  display: flex;
  flex-direction: column;
}

.division-category {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 1px;
}

.division-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

/* Image section */
.division-image-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.division-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-division-card:hover .division-image {
  transform: scale(1.08);
}

/* Body / Description styles */
.division-card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.division-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Meta info grid inside card */
.division-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.division-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.meta-value.mps-glow { color: var(--mps-blue); text-shadow: 0 0 5px var(--mps-blue-glow); }
.meta-value.lfb-glow { color: var(--lfb-red); text-shadow: 0 0 5px var(--lfb-red-glow); }
.meta-value.las-glow { color: var(--las-green); text-shadow: 0 0 5px var(--las-green-glow); }

.meta-value.status-open { color: var(--las-green); }

/* Footer action overlay */
.division-card-footer {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
}

.explore-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.featured-division-card:hover .explore-link {
  color: #fff;
}

/* Carousel Indicators and Controls Wrapper */
.carousel-indicators-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.carousel-indicators {
  display: flex;
  gap: 8px;
}

.indicator-btn {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.indicator-btn.active {
  width: 48px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.stat-num.glowing-blue {
  color: var(--mps-blue);
  text-shadow: 0 0 10px var(--mps-blue-glow);
}

.stat-num.glowing-red {
  color: var(--lfb-red);
  text-shadow: 0 0 10px var(--lfb-red-glow);
}

.stat-num.glowing-green {
  color: var(--las-green);
  text-shadow: 0 0 10px var(--las-green-glow);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ------------------------------------------------------------
   PAGE STRUCTURE CONTAINER
   ------------------------------------------------------------ */
.app-view-container {
  width: 100%;
  padding: 6rem 4rem 4rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-pretitle {
  font-size: 0.75rem;
  color: var(--mps-blue);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

/* ------------------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 50px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about-feat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  padding: 20px;
  border-radius: 8px;
}

.about-feat-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 2px solid var(--border-glass);
  padding-left: 20px;
  margin-top: 10px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mps-blue);
  border: 2px solid var(--bg-darker);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--mps-blue);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

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

/* ------------------------------------------------------------
   DEPARTMENTS SUB-PAGES
   ------------------------------------------------------------ */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dept-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dept-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.dept-banner-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background-color: #1a202c;
  position: relative;
}

.dept-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dept-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dept-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.dept-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.dept-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
  margin-top: auto;
}

.dept-status {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dept-status.open {
  color: var(--las-green);
}

.dept-status.closed {
  color: var(--lfb-red);
}

/* Individual Department Detail View */
.dept-detail-header {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-glass);
}

.dept-detail-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  z-index: 1;
}

.dept-detail-header-content {
  position: relative;
  z-index: 2;
}

.dept-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
}

.info-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.info-panel h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.pipeline-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.pipeline-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mps-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pipeline-text h5 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

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

/* ------------------------------------------------------------
   LIVE DISPATCH / MAP VIEW
   ------------------------------------------------------------ */
.cad-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  height: 620px;
}

/* Custom Interactive CAD Canvas Map */
.map-canvas-container {
  position: relative;
  background: #06070a;
  border: 1.5px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: inset 0 0 35px rgba(0,0,0,0.9);
}

/* High-tech Radar & CRT scanlines overlay */
.radar-sweep-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 102, 255, 0.0) 45%, 
    rgba(0, 102, 255, 0.08) 50%, 
    transparent 55%
  );
  pointer-events: none;
  z-index: 5;
  animation: radarSweep 5s linear infinite;
}

@keyframes radarSweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  z-index: 6;
  opacity: 0.5;
}

/* Blueprint Grid Background */
.map-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.cad-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-control-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 11, 14, 0.85);
  border: 1px solid var(--border-glass);
  padding: 10px 16px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  display: flex;
  gap: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

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

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-indicator.blue { background: var(--mps-blue); box-shadow: 0 0 8px var(--mps-blue); }
.dot-indicator.red { background: var(--lfb-red); box-shadow: 0 0 8px var(--lfb-red); }
.dot-indicator.green { background: var(--las-green); box-shadow: 0 0 8px var(--las-green); }
.dot-indicator.orange { background: var(--civ-orange); box-shadow: 0 0 8px var(--civ-orange); }

.cad-feed-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.cad-log-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: calc(100% - 170px);
}

.cad-log-box h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #fff;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.cad-logs-feed {
  flex-grow: 1;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: #38bdf8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 8px;
}

.cad-log-line {
  line-height: 1.3;
}

/* Callouts list */
.cad-callouts-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  height: 150px;
  overflow-y: auto;
}

.cad-callouts-box h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #fff;
}

.cad-callout-item {
  font-size: 0.72rem;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--lfb-red);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   APPLICATIONS TAB
   ------------------------------------------------------------ */
.app-form-panel {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 40px;
}

.app-form-step {
  display: none;
}

.app-form-step.active {
  display: block;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(5,5,8,0.7);
  border: 1px solid var(--border-glass);
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--mps-blue);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

/* ------------------------------------------------------------
   MEMBER DASHBOARD
   ------------------------------------------------------------ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 30px;
}

.dash-user-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.dash-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  border: 2px solid var(--mps-blue);
  object-fit: cover;
}

.dash-user-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 4px;
}

.dash-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(0, 119, 230, 0.15);
  color: var(--mps-blue);
  margin-bottom: 20px;
}

.dash-details-list {
  text-align: left;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.dash-detail-label {
  color: var(--text-secondary);
}

.dash-detail-val {
  font-weight: 700;
  color: #fff;
}

.dash-content-panels {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dash-action-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-action-info h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

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

/* Warnings strikes tracker */
.strikes-grid {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.strike-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.strike-box.active {
  background: rgba(230, 34, 34, 0.2);
  border-color: var(--lfb-red);
  color: var(--lfb-red);
}

/* ------------------------------------------------------------
   STAFF PANEL
   ------------------------------------------------------------ */
.staff-container {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 30px;
}

.staff-sidebar-menu {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-sidebar-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.staff-sidebar-btn:hover, .staff-sidebar-btn.active {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.staff-sidebar-btn.active {
  border-left: 3px solid var(--mps-blue);
}

.staff-panel-view {
  display: none;
}

.staff-panel-view.active {
  display: block;
}

/* Lists and Tables */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

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

.data-table th {
  background: rgba(255,255,255,0.02);
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  border-bottom: 1.5px solid var(--border-glass);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.01);
}

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

.toast {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  padding: 16px 20px;
  border-radius: 8px;
  min-width: 300px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.toast-close {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

.toast.success { border-left: 4px solid var(--las-green); }
.toast.error { border-left: 4px solid var(--lfb-red); }
.toast.info { border-left: 4px solid var(--mps-blue); }

/* ------------------------------------------------------------
   FOOTER SECTION
   ------------------------------------------------------------ */
.footer {
  width: 100%;
  background: #050508;
  border-top: 1px solid var(--border-glass);
  padding: 4rem;
  text-align: center;
  margin-top: 50px;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--mps-blue);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   COMPREHENSIVE EXPANDED PAGE TRANSITIONS
   ------------------------------------------------------------ */
.faq-header:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-img {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-img:hover {
  transform: scale(1.06);
}

.service-content-view {
  display: none;
  opacity: 0;
}

.service-content-view.active {
  display: block;
  opacity: 1;
  animation: fadeInServices 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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