/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #f8fafc;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

/* Colors & Fallbacks */
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-600 { background-color: #475569; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-white { background-color: #ffffff; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-600 { background-color: #d97706; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-green-100 { background-color: #dcfce7; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }

.text-black { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-slate-300 { color: #cbd5e1; }
.text-white { color: #ffffff; }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }

/* Gradients Fallbacks */
.bg-gradient-to-br {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.bg-gradient-to-r {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}
.bg-gradient-to-t {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: #f59e0b;
  color: #0f172a !important;
}

.btn-primary:hover {
  background-color: #d97706;
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-dark {
  background-color: #0f172a;
  color: #ffffff !important;
}

.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.btn-white {
  background-color: #ffffff;
  color: #0f172a !important;
}

.btn-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-1px);
}

/* Form controls */
input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.4rem;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem 1.25rem;
}

/* Header styles */
header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-top a:hover {
  color: #fbbf24;
}

nav a {
  color: #334155;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

nav a:hover {
  color: #d97706;
  background-color: #fef3c7;
}

nav a.active {
  background-color: #f59e0b;
  color: #0f172a !important;
  font-weight: 600;
}

/* Mobile menu */
.mobile-menu {
  display: none;
}

.mobile-menu-content {
  display: none;
}

.mobile-menu-content.active {
  display: block;
}

@media (max-width: 1023px) {
  .mobile-menu {
    display: inline-flex;
  }
  .desktop-menu {
    display: none;
  }
}

/* Footer styles & Text Contrast Fix */
footer {
  background-color: #0f172a;
  color: #94a3b8;
}

footer h4 {
  color: #ffffff;
}

footer p,
footer span,
footer li,
footer .text-black {
  color: #94a3b8;
}

footer a,
footer a.text-black {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover,
footer a.text-black:hover {
  color: #fbbf24;
}

/* Interactive Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 1rem;
  max-width: 34rem;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}