/* PerilPulse Localized Styles - Extracted from Tailwind CSS */
/* This replaces the Tailwind CDN dependency */

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  margin: 0;
  line-height: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }

/* Padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-24 { padding-top: 6rem; }
.pb-12 { padding-bottom: 3rem; }

/* Space Between */
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ==========================================================================
   Display & Positioning
   ========================================================================== */

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-20 { top: 5rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }

.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ==========================================================================
   Flexbox & Grid
   ========================================================================== */

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ==========================================================================
   Width & Height
   ========================================================================== */

.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }

.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.aspect-video { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Colors
   ========================================================================== */

/* Background Colors */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-green-600 { background-color: #32CD32; }
.bg-green-700 { background-color: #2AB52A; }

/* Background Opacity */
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-gray-800\/30 { background-color: rgba(31, 41, 55, 0.3); }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-800\/80 { background-color: rgba(31, 41, 55, 0.8); }
.bg-gray-900\/80 { background-color: rgba(17, 24, 39, 0.8); }
.bg-green-600\/10 { background-color: rgba(50, 205, 50, 0.1); }
.bg-green-600\/20 { background-color: rgba(50, 205, 50, 0.2); }
.bg-green-600\/30 { background-color: rgba(50, 205, 50, 0.3); }

/* Text Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-green-300 { color: #86efac; }
.text-green-400 { color: #4ade80; }

/* Border Colors */
.border-transparent { border-color: transparent; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-green-300 { border-color: #86efac; }
.border-green-400 { border-color: #4ade80; }
.border-green-400\/30 { border-color: rgba(74, 222, 128, 0.3); }
.border-green-500\/50 { border-color: rgba(34, 197, 94, 0.5); }
.border-red-500\/50 { border-color: rgba(239, 68, 68, 0.5); }

/* ==========================================================================
   Typography
   ========================================================================== */

.font-inter { font-family: 'Inter', sans-serif; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.italic { font-style: italic; }
.underline { text-decoration-line: underline; }

.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }

.letter-spacing--0\.02em { letter-spacing: -0.02em; }

/* ==========================================================================
   Borders
   ========================================================================== */

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-y { 
  border-top-width: 1px; 
  border-bottom-width: 1px; 
}

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ==========================================================================
   Effects
   ========================================================================== */

.shadow-lg { 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
}
.shadow-2xl { 
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); 
}
.shadow-green-500\/20 { 
  box-shadow: 0 25px 50px -12px rgba(34, 197, 94, 0.2); 
}

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.backdrop-blur-md { 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
}

.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   Transitions
   ========================================================================== */

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ==========================================================================
   Transform
   ========================================================================== */

.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-x-full { --tw-translate-x: 100%; }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }

/* ==========================================================================
   Interactivity
   ========================================================================== */

.cursor-pointer { cursor: pointer; }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.focus\:ring-green-400:focus { --tw-ring-color: #4ade80; }
.focus\:border-transparent:focus { border-color: transparent; }

/* Hover States */
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-green-300:hover { color: #86efac; }
.hover\:text-green-400:hover { color: #4ade80; }
.hover\:bg-green-600:hover { background-color: #32CD32; }
.hover\:bg-green-700:hover { background-color: #2AB52A; }
.hover\:bg-green-600\/30:hover { background-color: rgba(50, 205, 50, 0.3); }
.hover\:border-green-300:hover { border-color: #86efac; }
.hover\:transform:hover { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Small devices (640px and up) */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Custom Components
   ========================================================================== */

/* Object Fit */
.object-cover { object-fit: cover; }

/* List Styles */
ul { list-style: none; }

/* Input and Form Styles */
input[type="text"],
input[type="email"],
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Additional utilities for the specific green shades used */
.text-green-500 { color: #32CD32; }
.bg-green-500 { background-color: #32CD32; }
.border-green-500 { border-color: #32CD32; }

/* ==========================================================================
   Form Controls - Checkboxes, Radio Buttons, and Sliders
   ========================================================================== */

/* Checkbox Styles */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #6b7280;
  border-radius: 0.25rem;
  background-color: #374151;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
  border-color: #32CD32;
  background-color: #4b5563;
}

input[type="checkbox"]:checked {
  background-color: #32CD32;
  border-color: #32CD32;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.375rem;
  width: 0.375rem;
  height: 0.625rem;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
  border-color: #32CD32;
}

input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="checkbox"]:disabled:hover {
  border-color: #4b5563;
}

/* Radio Button Styles */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #4b5563;
  border-radius: 50%;
  background-color: #1f2937;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="radio"]:hover {
  border-color: #32CD32;
}

input[type="radio"]:checked {
  border-color: #32CD32;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: #32CD32;
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="radio"]:disabled:hover {
  border-color: #4b5563;
}

/* Range Slider Styles */
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 0.5rem;
  background: #1f2937;
  border-radius: 0.25rem;
  outline: none;
  transition: all 0.2s ease;
}

input[type="range"]:hover {
  background: #374151;
}

/* Slider Track */
input[type="range"]::-webkit-slider-track {
  width: 100%;
  height: 0.5rem;
  background: #1f2937;
  border-radius: 0.25rem;
  border: 1px solid #374151;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 0.5rem;
  background: #1f2937;
  border-radius: 0.25rem;
  border: 1px solid #374151;
}

/* Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  background: #32CD32;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  background: #32CD32;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #2AB52A;
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb:hover {
  background: #2AB52A;
  transform: scale(1.1);
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

/* Progress fill for range sliders */
input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #32CD32 0%, #32CD32 var(--range-progress), #1f2937 var(--range-progress), #1f2937 100%);
}

input[type="range"]::-moz-range-progress {
  background-color: #32CD32;
  height: 0.5rem;
  border-radius: 0.25rem;
}

/* Disabled state for sliders */
input[type="range"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type="range"]:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
  background: #4b5563;
}

input[type="range"]:disabled::-moz-range-thumb {
  cursor: not-allowed;
  background: #4b5563;
}

/* Toggle Switch Style (using checkbox) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4b5563;
  transition: 0.3s;
  border-radius: 1.5rem;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0.25rem;
  bottom: 0.25rem;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background-color: #32CD32;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
  transform: translateX(1.5rem);
}

.toggle-switch input[type="checkbox"]:focus + .toggle-slider {
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.3);
}

.toggle-switch input[type="checkbox"]:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Custom Select Dropdown Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239CA3AF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2332CD32' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Additional form input improvements */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background-color: #374151;
  border-color: #4b5563;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
  background-color: #4b5563;
  border-color: #6b7280;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  background-color: #4b5563;
  border-color: #32CD32;
  outline: none;
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.1);
}

/* ==========================================================================
   Error Dialog/Modal Styles
   ========================================================================== */

/* Error Modal Overlay */
.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.error-modal-overlay.fade-out {
    animation: fadeOut 0.3s ease;
}

/* Error Modal Container */
.error-modal-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

/* Error Modal Header with Red Gradient */
.error-modal-header {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-modal-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-modal-icon .material-icons-sharp {
    font-size: 28px;
}

.error-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Error Modal Content */
.error-modal-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.error-modal-message {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Debug Information Box */
.error-modal-debug {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.debug-header {
    background: #e5e7eb;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #4b5563;
    font-size: 0.875rem;
}

.debug-header .material-icons-sharp {
    font-size: 18px;
}

.debug-content {
    padding: 1rem;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #111827;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Error Modal Footer */
.error-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.error-modal-close {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.error-modal-close:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-modal-close .material-icons-sharp {
    font-size: 20px;
}

/* Inline Error Message */
.error-message {
    display: none;
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
}

.error-message.show {
    display: block;
}

/* Dark Mode Error Modal */
.dark .error-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.dark .error-modal-container {
    background: #1f2937;
}

.dark .error-modal-message {
    color: #e5e7eb;
}

.dark .error-modal-debug {
    background: #111827;
    border-color: #374151;
}

.dark .debug-header {
    background: #374151;
    color: #9ca3af;
}

.dark .debug-content {
    color: #f3f4f6;
}

.dark .error-modal-footer {
    border-color: #374151;
}

.dark .error-message {
    background: #7f1d1d;
    color: #fecaca;
    border-color: #991b1b;
}

/* Animations for Error Modals */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

/* ==========================================================================
   Component-specific styles that might be needed
   ========================================================================== */

/* For mobile menu animation */
.translate-x-0 { --tw-translate-x: 0; }

/* For code blocks and other elements */
.max-w-full { max-width: 100%; }

/* Ring utilities for focus states */
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color); }
.ring-green-400 { --tw-ring-color: #4ade80; }

/* Mobile menu overlay transitions */
#mobileMenuOverlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu {
    transition: transform 0.3s ease;
}

/* Connection status message (success variant of error-message) */
.connection-status-message {
    display: none;
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid #86efac;
}

.connection-status-message.show {
    display: block;
}

/* Dark mode connection status */
.dark .connection-status-message {
    background: #14532d;
    color: #86efac;
    border-color: #166534;
}

/* Additional utility classes that might be inline */
.ml-1 { margin-left: 0.25rem; }
.ml-3 { margin-left: 0.75rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.text-gray-900 { color: #111827; }
.bg-green-400 { background-color: #4ade80; }
.hover\:bg-green-500:hover { background-color: #22c55e; }
.inline-flex { display: inline-flex; }
.rounded-md { border-radius: 0.375rem; }

/* Missing spacing classes */
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Missing text color */
.text-red-400 { color: #f87171; }

/* Missing border colors */
.border-red-500 { border-color: #ef4444; }
.border-green-500 { border-color: #22c55e; }

/* Focus states for inputs */
.focus\:border-green-400:focus { border-color: #4ade80; }

/* Missing min-height */
.min-h-screen { min-height: 100vh; }

/* ==========================================================================
   Data Source Notice Styles
   ========================================================================== */

.data-source-notice {
    background-color: #1f2937; /* gray-800 */
    border-top: 2px solid #32CD32; /* green-600 */
    border-bottom: 1px solid #374151; /* gray-700 */
    padding: 1.5rem 0;
    margin-top: 4rem; /* To account for fixed header */
}

.notice-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notice-icon {
    flex-shrink: 0;
    background-color: rgba(50, 205, 50, 0.2); /* green-600 with 20% opacity */
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-icon .material-icons-sharp {
    color: #32CD32; /* green-600 */
    font-size: 1.5rem;
}

.notice-text {
    flex: 1;
}

.notice-heading {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #4ade80; /* green-400 */
    margin-bottom: 0.5rem;
}

.notice-description {
    color: #d1d5db; /* gray-300 */
    line-height: 1.6;
    font-size: 0.875rem; /* text-sm */
}

.notice-description strong {
    color: #ffffff; /* white */
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .data-source-notice {
        padding: 1rem 0;
    }
    
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-icon {
        margin: 0 auto 0.75rem;
    }
}
