/* ===== CSS VARIABLES AND BASE STYLES ===== */
:root {
  --background: #ffffff;
  --text: #0f172a;
  --muted: #e5e7eb;
  --overlay: rgba(255, 255, 255, 0.85);
  --header-height: 80px;
}

/* Reset and base styles */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  position: relative;
}


/* ===== HEADER STYLES ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(240, 240, 240, 0.1);
  backdrop-filter: saturate(180%) blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  padding: 28px clamp(10px, 2vw, 20px);
  min-height: 88px;
}

.site-header:hover {
  background: rgba(240, 240, 240, 0.25);
  padding: 28px clamp(10px, 2vw, 20px);
  transform: scale(1);
}

/* Brand section: logo and title */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-left: 32px;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header .brand:hover {
  opacity: 0.9;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.brand-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(24px, 4.2vw, 34px);
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
}

.brand-logo-dot {
  position: relative;
  display: inline-block;
}

.brand-logo-dot .logo-dot {
  position: absolute;
  top: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.6em;
  height: 0.6em;
  object-fit: contain;
  transition: all 0.3s ease;
  z-index: 10;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}


.site-header:hover .brand-logo {
  height: 28px;
  transform: scale(1);
}

.site-header:hover .brand-title {
  font-size: clamp(24px, 4.2vw, 34px);
  transform: scale(1);
}

.site-header:hover .brand-logo-dot .logo-dot {
  width: 0.6em;
  height: 0.6em;
  transform: translateX(-50%) scale(1);
}

.brand-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  color: var(--text);
  opacity: 0.7;
  letter-spacing: 0.1px;
}

/* ===== NAVIGATION MENU STYLES ===== */
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateX(0);
  transition: all 0.3s ease;
  margin-left: 48px;
}

.site-header:hover .site-nav {
  opacity: 1;
  transform: scale(1);
  margin-left: 48px;
}

/* Sign in section */
.sign-in-section {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header:hover .sign-in-section {
  opacity: 1;
  transform: scale(1);
}

.sign-in-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #000000;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: system-ui, -apple-system, sans-serif;
}

.sign-in-button:hover {
  color: #333333;
}

.person-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-button {
  background: var(--overlay);
  color: var(--text);
  border: 1px solid var(--muted);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: saturate(180%) blur(10px);
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button:hover {
  background: var(--muted);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-button:active {
  transform: scale(1);
}

/* Nav button as link */
a.nav-button {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.export-button {
  background: var(--overlay);
  border-color: var(--muted);
  color: var(--text);
}

.export-button:hover {
  background: var(--muted);
  border-color: var(--muted);
}

.download-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile responsiveness for navigation */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    height: auto;
    min-height: 160px;
  }
  
  .site-nav {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    opacity: 1;
    transform: scale(1);
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .nav-button {
    font-size: 12px;
    padding: 6px 12px;
    min-height: 32px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  
  /* Ensure buttons are easily tappable on mobile */
  .nav-button:active {
    transform: scale(0.95);
    background: rgba(240, 240, 240, 0.3);
  }
  
  .brand-logo {
    height: 24px;
  }
  
  .brand-logo-dot .logo-dot {
    width: 0.5em;
    height: 0.5em;
    top: -0.1em;
  }
  
  .site-header:hover .brand-logo-dot .logo-dot {
    width: 0.5em;
    height: 0.5em;
  }
  
  /* Add padding to main content to account for taller mobile header */
  .page-content {
    padding-top: 180px;
  }
  
  /* Mobile legend positioning */
  .thermal-legend {
    bottom: 20px;
    left: 10px;
    right: 10px;
    max-width: none;
    font-size: 11px;
    padding: 12px;
    border-radius: 6px;
  }
  
  .thermal-legend h4 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .transmission-legend {
    bottom: 20px;
    left: 10px;
    right: 10px;
    max-width: none;
    font-size: 11px;
    padding: 12px;
    border-radius: 6px;
  }
  
  .transmission-legend h4 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .legend-item {
    gap: 6px;
  }
  
  .legend-item span {
    font-size: 10px;
  }
  
  .legend-tooltip {
    font-size: 9px;
    margin-top: 8px;
    line-height: 1.3;
  }
}

/* ===== MAP AND CONTENT STYLES ===== */
.page-content { 
  min-height: 100vh; 
  position: relative;
}
#map { 
  height: 100vh; 
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.stereographic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: 
    /* Subtle grid lines */
    linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px),
    /* Stereographic projection lines */
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.1) 2px, transparent 4px),
    radial-gradient(circle at 25% 25%, transparent 0%, rgba(0, 0, 0, 0.08) 1px, transparent 2px),
    radial-gradient(circle at 75% 75%, transparent 0%, rgba(0, 0, 0, 0.08) 1px, transparent 2px),
    /* Meridian lines */
    linear-gradient(45deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 
    80px 80px,
    80px 80px,
    200px 200px,
    150px 150px,
    150px 150px,
    120px 120px,
    120px 120px;
  background-position: 
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  /* Create a gradient mask that fades lines toward center */
  mask: radial-gradient(circle at center, transparent 0%, transparent 60%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.7) 80%, black 90%);
  -webkit-mask: radial-gradient(circle at center, transparent 0%, transparent 60%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.7) 80%, black 90%);
}

/* ===== COPYRIGHT NOTICE ===== */
.copyright {
  position: fixed;
  bottom: 10px;
  left: 40px;
  z-index: 150;
  font-size: 10px;
  color: #000000;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 300;
  letter-spacing: 0.5px;
  pointer-events: auto;
}

/* ===== SIGN-IN PAGE STYLES ===== */
.signin-page {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
  display: flex;
  flex-direction: column;
}



.signin-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.signin-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  width: 100%;
  align-items: start;
}

.signin-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.signin-heading {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 8px 0;
  text-align: center;
}

.signin-subtitle {
  color: #666666;
  opacity: 0.8;
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 16px;
}

.google-signin-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

/* Custom Google Sign-In Button */
.custom-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  min-width: 240px;
}

.custom-google-button:hover {
  background: #f5f5f5;
  border-color: #999999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-google-button:active {
  transform: scale(1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
}

.divider span {
  background: rgba(255, 255, 255, 0.9);
  padding: 0 16px;
  color: #666666;
  opacity: 0.8;
  font-size: 14px;
}

.email-signin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}

.form-input {
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: #000000;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #000000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder {
  color: #999999;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #000000;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #000000;
  border-color: #000000;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgot-password {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #000000;
  text-decoration: underline;
}

.signin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.signin-button:hover {
  background: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.signin-button:active {
  transform: scale(1);
}

.signin-icon {
  width: 18px;
  height: 18px;
}

.signup-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.signup-link p {
  margin: 0;
  color: #666666;
  opacity: 0.8;
}

.signup-link a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  text-decoration: underline;
}

.signin-info {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.signin-info h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 20px 0;
}

.signin-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.signin-info li {
  padding: 8px 0;
  color: #666666;
  opacity: 0.8;
  position: relative;
  padding-left: 24px;
}

.signin-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: bold;
}

.signin-footer {
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.signin-footer .copyright {
  text-align: center;
  font-size: 12px;
  color: #666666;
  opacity: 0.6;
}

/* Mobile responsive for sign-in page */
@media (max-width: 768px) {
  .signin-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
  }
  
  
  .signin-content {
    padding: 180px 20px 20px 20px;
  }
  
  .signin-form {
    padding: 24px;
  }
  
  .signin-info {
    padding: 24px;
  }
  
  .signin-heading {
    font-size: 28px;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ===== THERMAL POWER PLANTS LEGEND ===== */
.thermal-legend {
  position: fixed;
  bottom: 60px;
  left: 40px;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 1.0) !important;
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 320px;
}

.thermal-legend h4 {
  margin: 0 0 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

/* Hover effect for thermal legend (desktop only) */
@media (min-width: 769px) {
  .thermal-legend:hover {
    transform: scale(1);
    background: rgba(255, 255, 255, 1.0);
  }
  
  .thermal-legend:hover h4 {
    font-size: 13px;
  }
}

.legend-items {
  position: relative;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-items::before {
  content: '';
  position: absolute;
  left: 76px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #000;
}

.legend-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #333;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 280px;
  border: 1px solid #e0e0e0;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.legend-tooltip a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
}

.legend-tooltip a:hover {
  color: #004499;
  text-decoration: none;
}

.legend-items:hover .legend-tooltip {
  opacity: 1;
  visibility: visible;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.legend-emissions {
  font-size: 10px;
  color: var(--text);
  opacity: 0.8;
  min-width: 60px;
  text-align: right;
  margin-right: 16px;
  cursor: help;
  position: relative;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.legend-item span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.3;
  margin-left: 8px;
}

/* Mapbox GL JS Controls Styling */
.mapboxgl-ctrl-group {
  background: var(--overlay);
  border: 1px solid var(--muted);
}

.mapboxgl-ctrl-group button {
  background: var(--overlay);
  color: var(--text);
  border: none;
}

.mapboxgl-ctrl-attrib {
  display: none !important;
}

.mapboxgl-ctrl-logo {
  display: none !important;
}

.mapboxgl-ctrl-bottom-right {
  bottom: 20px !important;
  right: 20px !important;
}

/* Minimal Map Control */
.map-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 50;
}

.map-controls button {
  background: var(--overlay);
  color: var(--text);
  border: 1px solid var(--muted);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: saturate(180%) blur(10px);
  transition: all 0.2s ease;
}

.map-controls button:hover {
  background: var(--muted);
}

/* ===== TRANSMISSION LINES LEGEND ===== */
.transmission-legend {
  position: fixed;
  bottom: 60px;
  right: 40px;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 1.0) !important;
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 16px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 320px;
}

.transmission-legend h4 {
  margin: 0 0 12px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

/* Hover effect for transmission legend (desktop only) */
@media (min-width: 769px) {
  .transmission-legend:hover {
    transform: scale(1);
    background: rgba(255, 255, 255, 1.0);
  }
  
  .transmission-legend:hover h4 {
    font-size: 13px;
  }
}

/* ===== SIDE-BY-SIDE LEGEND POSITIONING ===== */
/* When both legends are active, position them side by side */
@media (min-width: 769px) {
  .thermal-legend.side-by-side {
    left: 20px !important;
    right: auto !important;
    max-width: 280px !important;
  }
  
  .transmission-legend.side-by-side {
    right: 20px !important;
    left: auto !important;
    max-width: 280px !important;
  }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-page {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
  display: flex;
  flex-direction: column;
}



.about-content {
  flex: 1;
  padding: 100px 20px 40px 20px;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.about-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.about-heading {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 8px 0;
  text-align: center;
}

.about-subtitle {
  color: #666666;
  opacity: 0.8;
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 18px;
}

.about-description {
  line-height: 1.7;
  color: #333333;
}

.about-description h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  margin: 32px 0 16px 0;
}

.about-description p {
  margin: 0 0 20px 0;
  font-size: 16px;
}

.about-description ul {
  margin: 0 0 20px 0;
  padding-left: 24px;
}

.about-description li {
  margin: 8px 0;
  font-size: 16px;
}

.about-description a {
  color: #0066cc;
  text-decoration: underline;
}

.about-description a:hover {
  color: #004499;
  text-decoration: none;
}

.features-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.features-section h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 32px 0;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 12px 0;
}

.feature-card p {
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.contact-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.contact-section h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 24px 0;
  text-align: center;
}

.contact-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}

.contact-text a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
}

.contact-text a:hover {
  color: #004499;
  text-decoration: none;
}

.about-footer {
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-footer .copyright {
  text-align: center;
  font-size: 12px;
  color: #666666;
  opacity: 0.6;
}

/* Mobile responsive for about page */
@media (max-width: 768px) {
  .about-content {
    padding: 180px 20px 20px 20px;
  }
  
  .about-section,
  .features-section {
    padding: 24px;
  }
  
  .about-heading {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== RESET PASSWORD PAGE STYLES ===== */
.reset-password-page {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
  display: flex;
  flex-direction: column;
}

.reset-password-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.reset-password-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.reset-password-brand:hover {
  transform: scale(1);
  opacity: 0.8;
}

.reset-password-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.reset-password-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #000000;
}

.reset-password-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px 20px;
}

.reset-password-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  width: 100%;
  align-items: start;
}

.reset-password-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.reset-password-heading {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 8px 0;
  text-align: center;
}

.reset-password-subtitle {
  color: #666666;
  opacity: 0.8;
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 16px;
}

.new-password-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reset-password-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.reset-password-button:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.reset-password-button:active {
  transform: scale(1);
}

.reset-password-icon {
  width: 18px;
  height: 18px;
}

.back-to-signin {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-to-signin p {
  margin: 0;
  color: #666666;
  opacity: 0.8;
}

.back-to-signin a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.back-to-signin a:hover {
  text-decoration: underline;
}

.reset-password-info {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.reset-password-info h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 300;
  color: #000000;
  margin: 0 0 20px 0;
}

.reset-password-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reset-password-info li {
  padding: 8px 0;
  color: #666666;
  opacity: 0.8;
  position: relative;
  padding-left: 24px;
}

.reset-password-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10B981;
  font-weight: bold;
}

.reset-password-footer {
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.reset-password-footer .copyright {
  text-align: center;
  font-size: 12px;
  color: #666666;
  opacity: 0.6;
}

/* Mobile responsive for reset password page */
@media (max-width: 768px) {
  .reset-password-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
  }
  
  .reset-password-content {
    padding-top: 180px;
  }
  
  .reset-password-header {
    padding: 16px 20px;
  }
  
  .reset-password-content {
    padding: 80px 20px 20px 20px;
  }
  
  .reset-password-form,
  .reset-password-info {
    padding: 24px;
  }
  
  .reset-password-heading {
    font-size: 28px;
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0f19;
    --text: #e5e7eb;
    --muted: #1f2937;
    --overlay: rgba(13, 18, 31, 0.8);
  }
  
  .site-header {
    background: rgba(30, 30, 30, 0.1);
  }
  
  .site-header:hover {
    background: rgba(30, 30, 30, 0.25);
  }
  
  .site-header { border-bottom-color: var(--muted); }
  .leaflet-control-zoom a, .leaflet-control-layers-toggle, .leaflet-control-attribution {
    background: var(--overlay);
    color: var(--text);
    border-color: var(--muted);
  }
}

/* ===== COORDINATES ALGORITHM PAGE ===== */
.coordinates-algorithm-page {
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.coordinates-algorithm-content {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 88px; /* Account for header height */
}

.coordinates-algorithm-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.coordinates-algorithm-header {
  text-align: center;
  margin-bottom: 3rem;
}

.coordinates-algorithm-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.coordinates-algorithm-subtitle {
  font-size: 1.2rem;
  color: #34495e;
  margin-bottom: 1rem;
  font-weight: 500;
}

.coordinates-algorithm-description {
  font-size: 1rem;
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Upload Section */
.upload-section {
  margin-bottom: 3rem;
}

.upload-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  border: 2px dashed #dee2e6;
  transition: all 0.3s ease;
}

.upload-container:hover {
  border-color: #3498db;
  background: #f0f8ff;
}

.upload-area {
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area.drag-over {
  background: #e3f2fd;
  border-color: #2196f3;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #3498db;
}

.upload-icon svg {
  width: 100%;
  height: 100%;
}

.upload-area h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.upload-area p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

.upload-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-button:hover {
  background: #2980b9;
}

/* Image Preview */
.image-preview {
  margin-top: 2rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-header h4 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0;
}

.clear-button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-button:hover {
  background: #c0392b;
}

.preview-container {
  position: relative;
  display: inline-block;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.preview-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

.coordinates-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.coordinates-info p {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-weight: 500;
}

/* Results Table */
.results-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.table-header {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 100px 120px;
  gap: 1rem;
  background: #34495e;
  color: white;
  padding: 1rem;
  font-weight: 600;
}

.table-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 100px 120px;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #ecf0f1;
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.point-number {
  background: #3498db;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.coordinate {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #2c3e50;
}

.timestamp {
  font-size: 0.8rem;
  color: #7f8c8d;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.copy-btn, .delete-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.delete-btn:hover {
  background: #ffebee;
  border-color: #f44336;
}

.no-results {
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
  padding: 2rem;
}

/* Export Buttons */
.export-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.export-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.export-btn:hover {
  background: #229954;
}

.export-btn:nth-child(2) {
  background: #e67e22;
}

.export-btn:nth-child(2):hover {
  background: #d35400;
}

.export-btn:nth-child(3) {
  background: #e74c3c;
}

.export-btn:nth-child(3):hover {
  background: #c0392b;
}

/* Algorithm Info */
.algorithm-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ecf0f1;
}

.algorithm-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.info-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #3498db;
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-card h4 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.info-card p {
  color: #7f8c8d;
  line-height: 1.6;
}

/* Footer */
.coordinates-algorithm-footer {
  background: #f8f9fa;
  color: #2c3e50;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.footer-section p {
  color: #bdc3c7;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .coordinates-algorithm-content {
    padding: 180px 1rem 1rem 1rem;
  }
  
  .coordinates-algorithm-container {
    padding: 1rem;
  }
  
  .coordinates-algorithm-title {
    font-size: 2rem;
  }
  
  .coordinates-algorithm-subtitle {
    font-size: 1.1rem;
  }
  
  .coordinates-algorithm-description {
    font-size: 0.9rem;
  }
  
  .upload-area {
    padding: 2rem 1rem;
  }
  
  .upload-area h3 {
    font-size: 1.2rem;
  }
  
  .upload-area p {
    font-size: 0.9rem;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 50px 1fr 1fr 80px 100px;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .export-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .export-btn {
    width: 200px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .info-card h4 {
    font-size: 1.1rem;
  }
  
  .info-card p {
    font-size: 0.9rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1rem;
  }
}

