/* ==========================================================================
   BBVSS Institutional & Government Grant Compliance Stylesheet
   Clean Indian NGO & Administrative Design System (Govt of India / WB Norms)
   ========================================================================== */

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

:root {
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-display: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: var(--font-sans);

  /* Clean National Institutional Palette */
  --gov-green: #14532d;
  --gov-green-dark: #0f3e2b;
  --gov-green-light: #15803d;
  --gov-saffron: #c2410c;
  --gov-gold: #b45309;
  --gov-parchment: #fcfbf7;
  --gov-parchment-dark: #f8fafc;
  --gov-navy: #1e293b;
  --border-subtle: #e2e8f0;
}

/* Institutional & Government Color Utilities (Guaranteed CSS Fallbacks) */
.bg-gov-green, [class*="bg-gov-green"] { background-color: #14532d !important; }
.bg-gov-green-dark { background-color: #0f3e2b !important; }
.bg-gov-parchment { background-color: #fcfbf7 !important; }
.bg-gov-parchment-dark { background-color: #f8fafc !important; }
.text-gov-green { color: #14532d !important; }
.border-gov-green { border-color: #14532d !important; }

.bg-navy-900 { background-color: #0f172a !important; }
.bg-navy-950 { background-color: #020617 !important; }
.bg-brand-700 { background-color: #15803d !important; }
.bg-brand-800 { background-color: #166534 !important; }
.bg-brand-900 { background-color: #14532d !important; }
.bg-brand-950 { background-color: #0f3e2b !important; }
.text-brand-400 { color: #4ade80 !important; }
.text-brand-700 { color: #15803d !important; }
.border-brand-500 { border-color: #22c55e !important; }
.border-brand-800 { border-color: #166534 !important; }

body {
  font-family: var(--font-sans);
  background-color: var(--gov-parchment);
  color: #1e293b;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-serif);
}

/* Force clean sans-serif on all mono classes for NGO elegance */
.font-mono, [class*="font-mono"] {
  font-family: var(--font-sans) !important;
  letter-spacing: normal !important;
}

/* Indian National Tri-Color Border Ribbon (Full width continuous) */
.tricolor-strip {
  height: 5px;
  background: linear-gradient(180deg, #ea580c 0%, #ea580c 38%, #ffffff 38%, #ffffff 62%, #15803d 62%, #15803d 100%);
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Institutional Header & Paper Card Style */
.gov-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.gov-card-inset {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
}

/* Administrative Notice Ticker */
.notice-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.notice-marquee-content {
  display: inline-block;
  animation: marquee-scroll 32s linear infinite;
}

.notice-marquee:hover .notice-marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Official Government Stamp Badge */
.official-stamp {
  border: 1.5px solid #c2410c;
  color: #9a3412;
  background: #fff7ed;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

/* Clean Institutional CCTV Viewport */
.cctv-feed-container {
  position: relative;
  background-color: #0f172a;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease-in-out;
}

.cctv-feed-container:hover {
  border-color: #0284c7;
}

.watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 15;
  text-transform: uppercase;
}

/* Status Indicators */
.status-pulse-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse-live 1.8s infinite;
}

.status-pulse-rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  animation: pulse-rec 1.8s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes pulse-rec {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Clean Professional Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
