/* Custom styles for Cargour */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Checkbox styling for radio/checkbox cards */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #2563eb;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  background-color: #10b981;
}

.toast-error {
  background-color: #ef4444;
}

.toast-info {
  background-color: #3b82f6;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Card hover effects */
.card-hover {
  transition: all 0.2s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Smooth transitions */
a,
button {
  transition: all 0.2s ease-in-out;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 3rem;
}

.empty-state svg {
  margin: 0 auto 1rem;
}

/* Mobile menu */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
  }

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

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

/* Input placeholder styling */
::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Print styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }
}

/* Modal animations */
#modalOverlay {
  transition: opacity 0.3s ease-out;
}

#modalContent {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* City selector hover states */
.city-item:hover,
.district-item:hover {
  background-color: rgb(255 247 237);
}

.city-item:active,
.district-item:active {
  background-color: rgb(254 215 170);
}

/* Modal mobile responsive */
@media (max-width: 640px) {
  #modalContent {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
}

/* City selector scrollbar */
.city-item + .city-item,
.district-item + .district-item {
  margin-top: 0.25rem;
}
