/* Vencime.online - Base Styles */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FDFCF8;
  color: #1F2937;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Leaflet map fixes */
.leaflet-container {
  font-family: 'Quicksand', sans-serif;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.leaflet-popup-content {
  margin: 12px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #234a2d;
}

/* Form elements */
input, textarea, select, button {
  font-family: inherit;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 2px;
}

/* Image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

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

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

/* Dark mode support */
.dark body {
  background-color: #1a1a2e;
  color: #eaeaea;
}

.dark ::-webkit-scrollbar-track {
  background: #16213e;
}

.dark ::-webkit-scrollbar-thumb {
  background: #F59E0B;
}

/* PWA safe areas */
@supports (padding: env(safe-area-inset-bottom)) {
  .safe-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

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