@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

/* Scrollbar styles */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }

.dark ::-webkit-scrollbar-thumb { background: #1a2942; }
.dark ::-webkit-scrollbar-track { background: #0a1628; }

/* Wallpaper Background for All Pages */
body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../wallpaper.jpg"), #000;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
  opacity: 0.3;
}

/* Base light mode (default) */
html:not(.dark) body { 
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: #1e293b !important;
}

html:not(.dark) .card-bg { 
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

html:not(.dark) .input-dark { 
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

html:not(.dark) .input-dark:focus { border-color: #ec4899 !important; outline: none; }
html:not(.dark) .input-dark::placeholder { color: #94a3b8 !important; }
html:not(.dark) .input-dark:disabled { background: #f1f5f9 !important; color: #64748b !important; }

/* Dark mode overrides */
html.dark body { 
  background: linear-gradient(135deg, #0a1628 0%, #0f1c2e 100%) !important;
  color: #f1f5f9 !important;
}

html.dark .card-bg { 
  background: rgba(15, 28, 46, 0.6) !important;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}

html.dark .input-dark {
  background: rgba(26, 41, 66, 0.8) !important;
  border: 1px solid rgba(71, 85, 105, 0.5) !important;
  color: #f1f5f9 !important;
}

html.dark .input-dark:focus { border-color: #ec4899 !important; outline: none; }
html.dark .input-dark::placeholder { color: #64748b !important; }
html.dark .input-dark:disabled { background: rgba(15, 23, 42, 0.8) !important; color: #475569 !important; }

/* Light mode Tailwind color overrides */
html:not(.dark) .bg-navy-900 { background-color: #ffffff !important; }
html:not(.dark) .bg-navy-800 { background-color: #f8fafc !important; }
html:not(.dark) .bg-navy-700 { background-color: #f1f5f9 !important; }
html:not(.dark) .bg-gray-800 { background-color: #ffffff !important; }
html:not(.dark) .bg-gray-900 { background-color: #f8fafc !important; }

html:not(.dark) .border-navy-700 { border-color: #e2e8f0 !important; }
html:not(.dark) .border-navy-600 { border-color: #cbd5e1 !important; }
html:not(.dark) .border-gray-700 { border-color: #e2e8f0 !important; }
html:not(.dark) .border-gray-800 { border-color: #cbd5e1 !important; }

html:not(.dark) .text-gray-100 { color: #1e293b !important; }
html:not(.dark) .text-gray-200 { color: #334155 !important; }
html:not(.dark) .text-gray-300 { color: #475569 !important; }
html:not(.dark) .text-gray-400 { color: #64748b !important; }
html:not(.dark) .text-gray-500 { color: #94a3b8 !important; }

html:not(.dark) .hover\:bg-navy-700:hover { background-color: #e2e8f0 !important; }
html:not(.dark) .hover\:bg-gray-800:hover { background-color: #f1f5f9 !important; }

/* Utility classes */
.wifi-icon {
  width: 48px;
  height: 48px;
  opacity: 0.15;
}

/* Fix blue buttons to always show white text on blue background */
html:not(.dark) .bg-blue-600 {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

html:not(.dark) .bg-blue-600:hover,
html:not(.dark) .hover\:bg-blue-700:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

html.dark .bg-blue-600 {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark .bg-blue-600:hover,
html.dark .hover\:bg-blue-700:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}
