/* PWS Shrimp Fishery Dashboard - "Deep Waters" Editorial Design */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* Color Palette - Modern Cohesive System */
:root {
  /* Primary - Deep Ocean */
  --navy-950: #020617;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;

  /* Primary Data Colors */
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --indigo-500: #6366f1;

  /* Warm Accent */
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;

  /* Status */
  --green-500: #22c55e;
  --green-400: #4ade80;
  --rose-500: #ef4444;
  --rose-400: #f87171;

  /* Neutrals - Ocean-tinted for warmth */
  --slate-50: #f0f9f8;   /* Very light teal tint */
  --slate-100: #e6f4f3;  /* Light seafoam */
  --slate-200: #d0e8e6;  /* Soft teal border */
  --slate-300: #a8c9c6;  /* Muted sea green */
  --slate-400: #6b9a96;  /* Ocean gray */
  --slate-500: #4d7a77;  /* Deep sea gray */
  --slate-600: #3d5f5c;  /* Dark teal gray */
  --white: #ffffff;

  /* Accent backgrounds */
  --bg-warm: #fef7f0;    /* Warm cream */
  --bg-cool: #f0f7fe;    /* Cool sky blue */
  --bg-ocean: linear-gradient(135deg, #f0f9f8 0%, #e8f4fe 100%);

  /* Chart colors */
  --chart-commercial: #3b82f6;
  --chart-noncomm: #14b8a6;
  --chart-harvest: #f97316;
  --chart-area1: #3b82f6;
  --chart-area2: #14b8a6;
  --chart-area3: #f97316;
  --chart-heatwave: rgba(239, 68, 68, 0.12);

  /* Typography */
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Shadows - tinted for depth */
  --shadow-sm: 0 1px 3px rgba(20, 100, 100, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 100, 100, 0.08), 0 2px 4px rgba(20, 100, 100, 0.04);
  --shadow-lg: 0 12px 40px rgba(20, 80, 100, 0.12), 0 4px 12px rgba(20, 80, 100, 0.06);
  --shadow-xl: 0 24px 60px rgba(20, 80, 100, 0.15), 0 8px 20px rgba(20, 80, 100, 0.08);
  --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.2);
  --shadow-card: 0 4px 20px rgba(20, 120, 140, 0.08), 0 1px 3px rgba(20, 120, 140, 0.04);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(165deg, #f0f9f8 0%, #e8f4fe 50%, #fef9f5 100%);
  background-attachment: fixed;
  color: var(--navy-800);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 9999;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
  color: var(--slate-600);
}

a {
  color: var(--teal-500);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--teal-400);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-10);
  }
}

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav {
  display: flex;
  gap: var(--space-2);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid rgba(20, 184, 166, 0.15);
}

.nav-link {
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--space-2) var(--space-4);
  position: relative;
  transition: all 0.2s var(--ease-out);
  border-radius: var(--radius-full);
  background: transparent;
}

.nav-link:hover {
  color: var(--teal-700);
  background: rgba(20, 184, 166, 0.1);
}

.nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #f0f9f8 0%, transparent 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--slate-300);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-2xl);
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-lg);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-lg); }
  50% { box-shadow: var(--shadow-lg), 0 0 30px currentColor; }
}

.status-badge.closed {
  background: linear-gradient(135deg, var(--rose-600) 0%, var(--rose-500) 100%);
  color: var(--white);
}

.status-badge.caution {
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--coral-500) 100%);
  color: var(--white);
}

.status-badge.healthy {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-400) 100%);
  color: var(--white);
}

/* Key Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.metric-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Main Content */
.main {
  padding: var(--space-8) 0 var(--space-16);
  position: relative;
  margin-top: -60px;
}

/* Pages without hero section need top padding to clear sticky header */
.main.no-hero {
  margin-top: 0 !important;
  padding-top: 4rem !important;
}

/* Section */
.section {
  margin-bottom: var(--space-16);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(20, 184, 166, 0.3) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%) 1;
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--slate-500);
  font-weight: 400;
  margin-top: var(--space-1);
}

/* Cards */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfefe 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(20, 120, 140, 0.07), 0 1px 3px rgba(20, 120, 140, 0.04);
  border: 1px solid rgba(20, 184, 166, 0.1);
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(20, 120, 140, 0.1), 0 2px 8px rgba(20, 120, 140, 0.05);
  border-color: rgba(20, 184, 166, 0.2);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--slate-200);
  background: linear-gradient(135deg, #f0f9f8 0%, #f8fffe 50%, #fefefe 100%);
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-1);
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 0;
}

/* Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
  padding: var(--space-4);
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.stat-item {
  text-align: center;
  padding: var(--space-5);
  background: linear-gradient(145deg, #f5fbfa 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 184, 166, 0.12);
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 2px 8px rgba(20, 140, 140, 0.04);
}

.stat-item:hover {
  transform: scale(1.02);
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow: 0 4px 16px rgba(20, 140, 140, 0.08);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal-500);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-value.negative {
  color: var(--rose-500);
}

.stat-value.positive {
  color: var(--green-500);
}

/* Participation Section - Feature Card */
.participation-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  border: none;
  position: relative;
  overflow: hidden;
}

.participation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.participation-card .card-header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  position: relative;
}

.participation-card .card-title {
  color: var(--white);
}

.participation-card .card-subtitle {
  color: var(--slate-400);
}

.participation-card .card-body {
  position: relative;
}

/* Participation Stats */
.participation-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (max-width: 768px) {
  .participation-stats {
    grid-template-columns: 1fr;
  }
}

.participation-stat {
  text-align: center;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.participation-stat .stat-value {
  color: var(--teal-400);
}

.participation-stat .stat-label {
  color: var(--slate-400);
}

.participation-stat.commercial .stat-value {
  color: var(--teal-400);
}

.participation-stat.noncommercial .stat-value {
  color: var(--green-400);
}

.participation-stat.harvest .stat-value {
  color: var(--coral-400);
}

/* Tabs */
.tabs-hint {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-500);
  margin-bottom: var(--space-2);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #e6f4f3 0%, #f0f9f8 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-1);
  margin-bottom: var(--space-6);
  gap: var(--space-1);
  box-shadow: inset 0 1px 3px rgba(20, 100, 100, 0.08);
}

.tab {
  padding: var(--space-3) var(--space-5);
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease-out);
  position: relative;
}

.tab::after {
  display: none;
}

.tab:hover {
  color: var(--teal-500);
  background: rgba(255, 255, 255, 0.6);
}

.tab.active {
  color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(20, 120, 140, 0.12), 0 1px 2px rgba(20, 120, 140, 0.08);
}

.tab.active::after {
  display: none;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s var(--ease-out);
}

.tab-content.active {
  display: block;
}

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal-500), var(--slate-200));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
  padding-left: var(--space-4);
  animation: slideIn 0.4s var(--ease-out) backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal-500);
  transition: transform 0.2s var(--ease-spring);
}

.timeline-item:hover::before {
  transform: scale(1.2);
}

.timeline-item.climate::before {
  background: var(--coral-500);
  box-shadow: 0 0 0 2px var(--coral-500);
}

.timeline-item.closure::before {
  background: var(--rose-500);
  box-shadow: 0 0 0 2px var(--rose-500);
}

.timeline-item.reform::before {
  background: var(--green-500);
  box-shadow: 0 0 0 2px var(--green-500);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy-900);
  margin: var(--space-1) 0;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
}

.data-table th {
  background: linear-gradient(180deg, #e6f4f3 0%, #f0f9f8 100%);
  font-weight: 600;
  color: var(--slate-600);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  border-bottom: 2px solid rgba(20, 184, 166, 0.2);
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: linear-gradient(90deg, #f0fdfb 0%, #f8fffe 100%);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(20, 184, 166, 0.02);
}

.data-table tbody tr:nth-child(even):hover {
  background: linear-gradient(90deg, #f0fdfb 0%, #f8fffe 100%);
}

.data-table .number {
  font-family: 'SF Mono', 'Fira Code', monospace;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* Stock Gauge */
.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6);
}

.gauge-container canvas {
  width: 100% !important;
  max-width: 280px;
  height: auto !important;
}

.gauge-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.8125rem;
}

.gauge-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gauge-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* CPUE Chart Legend */
.cpue-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: 0.8125rem;
  color: var(--slate-600);
}

.cpue-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cpue-legend-color {
  width: 24px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cpue-legend-marker {
  color: #dc2626;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* FMSY Model Legend */
.fmsy-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-4);
  font-size: 0.8125rem;
}

.fmsy-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.fmsy-legend-line {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.fmsy-legend-line.dashed {
  background: repeating-linear-gradient(
    90deg,
    currentColor 0px,
    currentColor 4px,
    transparent 4px,
    transparent 8px
  );
  height: 2px;
}

.fmsy-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* FMSY Zones Legend */
.fmsy-zones-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--slate-200);
  font-size: 0.75rem;
}

.fmsy-zone-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.fmsy-zone-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #f0fdfb 0%, #e6f7f5 100%);
  border-left: 4px solid var(--teal-500);
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-5) 0;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.06);
}

.info-box.warning {
  border-left-color: var(--amber-500);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.info-box.danger {
  border-left-color: var(--rose-500);
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}

.info-box.success {
  border-left-color: var(--green-500);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

.info-box-title {
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-2);
  font-size: 0.9375rem;
}

.info-box p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.info-box ul {
  margin: 0;
  padding-left: var(--space-5);
}

.info-box li {
  margin-bottom: var(--space-1);
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Help Section */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.help-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
  border: 1px solid rgba(20, 184, 166, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 2px 12px rgba(20, 120, 140, 0.05);
}

.help-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.12);
  transform: translateY(-2px);
}

.help-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--navy-900);
}

.help-card ul {
  list-style: none;
  padding: 0;
}

.help-card li {
  padding: var(--space-2) 0;
  padding-left: var(--space-5);
  position: relative;
  color: var(--slate-600);
  font-size: 0.9375rem;
}

.help-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: var(--white);
  padding: var(--space-10) 0;
  margin-top: var(--space-16);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 184, 166, 0.4) 50%, transparent 100%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-text {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-400) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--slate-300);
  color: var(--navy-800);
}

.btn-outline:hover {
  border-color: var(--teal-500);
  color: var(--teal-500);
  background: rgba(20, 184, 166, 0.05);
}

/* Action Cards */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.action-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.action-card:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.action-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--navy-900);
}

.action-card-desc {
  color: var(--slate-500);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
}

/* About Page */
.about-section {
  margin-bottom: var(--space-12);
}

.lifecycle-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.lifecycle-stage {
  text-align: center;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--white) 0%, var(--slate-50) 100%);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all 0.2s var(--ease-out);
}

.lifecycle-stage:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-md);
}

.lifecycle-stage::after {
  content: '\2192';
  position: absolute;
  right: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  font-size: 1.25rem;
  font-weight: bold;
}

.lifecycle-stage:last-child::after {
  display: none;
}

.lifecycle-age {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.lifecycle-title {
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: var(--space-1);
}

.lifecycle-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy-800);
  padding: var(--space-2);
  transition: color 0.2s;
}

.nav-toggle:hover {
  color: var(--teal-500);
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    border-top: 1px solid var(--slate-200);
    margin-top: var(--space-4);
    background: transparent;
    border-radius: 0;
    border: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-align: center;
    background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.1);
  }

  .nav-link.active {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  }

  .hero {
    padding: var(--space-10) 0 var(--space-16);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  h2 {
    font-size: 1.375rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Print Styles */
@media print {
  .header,
  .nav,
  .footer,
  .btn,
  body::before {
    display: none;
  }

  .hero {
    background: var(--white);
    color: var(--navy-900);
    padding: var(--space-6) 0;
  }

  .hero h1,
  .hero-subtitle {
    color: var(--navy-900);
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--slate-300);
    break-inside: avoid;
  }

  .section {
    break-inside: avoid;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--slate-500); }
.text-small { font-size: 0.875rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-4); }
.mb-2 { margin-bottom: var(--space-6); }
.mt-1 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-6); }

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.5s var(--ease-out);
}

.slide-up {
  animation: slideUp 0.5s var(--ease-out);
}

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