/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Distributor Map Markers */
.distributor-marker {
  background: transparent;
  border: none;
}

.distributor-marker-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.distributor-marker-active .distributor-marker-dot {
  background-color: #22c55e;
}

.distributor-marker-inactive .distributor-marker-dot {
  background-color: #9ca3af;
}

/* Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: inherit;
  background: #ffffff !important;
}

.leaflet-popup-tip-container {
  overflow: visible;
}

.leaflet-popup-tip {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  color: #6b7280 !important;
  font-size: 18px !important;
  width: 24px !important;
  height: 24px !important;
}

.leaflet-popup-close-button:hover {
  color: #111827 !important;
}

/* Popup content styles */
.leaflet-popup-content .popup-content {
  padding: 16px;
  min-width: 200px;
  background: #ffffff;
}

.popup-content {
  padding: 16px;
  min-width: 200px;
  background: #ffffff !important;
}

.leaflet-popup-content .popup-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  margin-bottom: 8px;
}

.leaflet-popup-content .popup-badge {
  display: inline-flex;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.leaflet-popup-content .popup-badge-active {
  background-color: #dcfce7;
  color: #166534;
}

.leaflet-popup-content .popup-badge-inactive {
  background-color: #f3f4f6;
  color: #374151;
}

.leaflet-popup-content .popup-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.leaflet-popup-content .popup-link:hover {
  color: #1d4ed8;
}
