/* Styl pro simulaci Zlepši svůj kraj - Odpadové hospodářství Vendryně a Třinecko */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-light: #dcfce7;
  --accent-yellow: #eab308;
  --accent-blue: #0284c7;
  --danger: #dc2626;
  --surface: #ffffff;
  --bg-main: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Leaflet Map styling */
#map {
  width: 100%;
  height: 520px;
  border-radius: 1rem;
  z-index: 10;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Custom Marker Styles */
.custom-house-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}
.custom-house-marker:hover {
  transform: scale(1.1);
  z-index: 9999 !important;
}

.custom-bin-marker {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-truck-marker {
  transition: transform 0.15s linear;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

/* Truck Beacon Flash */
@keyframes beaconFlash {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.truck-beacon {
  animation: beaconFlash 0.5s infinite;
}

/* Waste bin shake/dump animation */
@keyframes binDump {
  0% { transform: rotate(0deg) translateY(0); }
  30% { transform: rotate(-35deg) translateY(-8px); }
  60% { transform: rotate(15deg) translateY(-4px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.animate-bin-dump {
  animation: binDump 0.8s ease-in-out;
}

/* Notification Toast Animation */
@keyframes slideDownIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification-toast {
  animation: slideDownIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulsing Badge */
.pulse-indicator {
  position: relative;
}
.pulse-indicator::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Tab transitions */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Třídy pro zapínání/vypínání štítků a vrstev na mapě */
.hide-house-numbers .house-number-badge {
  display: none !important;
}

.hide-house-icons .house-icon-box {
  display: none !important;
}

.hide-bin-labels .bin-status-badge,
.hide-bin-labels .bin-location-badge {
  display: none !important;
}

.hide-bag-labels .bag-status-badge,
.hide-bag-labels .bag-location-badge {
  display: none !important;
}

/* Styl tlačítek pro přepínání vrstev */
.layer-chip {
  transition: all 0.2s ease;
}
.layer-chip.active {
  background-color: #047857;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 4px -1px rgba(5, 150, 105, 0.2);
}
.layer-chip.inactive {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
  opacity: 0.7;
}

