/* register.css - Styles for Dansala Registration Page */

/* Base Styles */
body {
  font-family: 'Noto Sans Sinhala', sans-serif;
  scroll-behavior: smooth;
}

/* Location Input Styling */
.location-input {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.2rem;
}

/* Loader Animation */
.loader {
  border-top-color: #FF3600;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Unique Code Styling */
.unique-code {
  background: linear-gradient(135deg, #FF3600 0%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

/* Dark Mode Styles */
.dark {
  background-color: #1a1a1a;
  color: #e5e7eb;
}

.dark .bg-white {
  background-color: #1f2937 !important;
}

.dark .text-gray-900 {
  color: #f3f4f6 !important;
}

.dark .text-gray-600 {
  color: #d1d5db !important;
}

.dark .bg-gray-50 {
  background-color: #111827 !important;
}

.dark .bg-gradient-to-br.from-white.via-orange-50.to-white {
  background: linear-gradient(to bottom right, #1f2937, #1a1a1a, #1f2937) !important;
}

.dark .border-gray-300 {
  border-color: #374151 !important;
}

.dark .bg-white\/80 {
  background-color: rgba(31, 41, 55, 0.8) !important;
}

.dark .bg-gray-100\/50 {
  background-color: rgba(17, 24, 39, 0.5) !important;
}

.dark .hover\:bg-gray-100\/50:hover {
  background-color: rgba(17, 24, 39, 0.5) !important;
}

.dark .hover\:text-gray-900:hover {
  color: #f3f4f6 !important;
}

/* Dark Mode Toggle Switch Styling */
.dark-mode-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.dark-mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.dark-mode-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}

input:checked + .dark-mode-slider {
  background-color: #FF3600;
}

input:checked + .dark-mode-slider:before {
  transform: translateX(26px);
}

.dark-mode-icon {
  font-size: 12px;
  z-index: 1;
}

.sun-icon {
  color: #fbbf24;
}

.moon-icon {
  color: #f3f4f6;
}

/* Form Validation Styles */
.error {
  border-color: #ef4444 !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

/* Map Container */
#map {
  min-height: 256px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .step-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  #map {
    height: 200px;
  }
}

/* Focus styles for accessibility */
input:focus, select:focus, textarea:focus {
  outline: 2px solid #FF3600;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}