/* ===== DASHBOARD-SPECIFIC STYLES ===== */

/* Alert Items */
.alert-item {
    padding: 1rem;
    border-left: 4px solid;
    margin-bottom: 0.5rem;
    background-color: white;
    transition: all 0.2s;
}

.alert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.alert-item.flood {
    border-left-color: var(--trust-blue);
}

.alert-item.earthquake {
    border-left-color: #FD7E14;
}

.alert-item.cyclone {
    border-left-color: #6F42C1;
}

/* Prediction Items */
.prediction-item {
    padding: 0.75rem;
    background-color: #F8F9FA;
    border-radius: 0.25rem;
    border-left: 3px solid var(--trust-blue);
}

/* Custom Scrollbar */
.alert-list::-webkit-scrollbar {
    width: 8px;
}

.alert-list::-webkit-scrollbar-track {
    background: #F1F1F1;
}

.alert-list::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 4px;
}

.alert-list::-webkit-scrollbar-thumb:hover {
    background: #A8A8A8;
}

/* Offline Mode Indicator */
.offline-mode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--emergency-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    z-index: 1000;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    display: none;
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 400;
    background: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

/* Disaster Legend */
.disaster-legend {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 400;
    background: white;
    padding: 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
}

/* Map container styles */
.map-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }
  
  .map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  .layer-controls {
    margin-top: 10px;
    font-size: 14px;
  }
  
  .layer-controls label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
  }
  
  /* Popup styles */
  .disaster-popup, .resource-popup {
    min-width: 200px;
  }
  
  .disaster-popup h4 {
    color: #d32f2f;
    margin: 0 0 5px 0;
  }
  
  .resource-popup h4 {
    color: #1976d2;
    margin: 0 0 5px 0;
  }
  
  .btn-route {
    background: #3a7bd5;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 5px;
  }

  /* Drone specific styles */
.drone-popup {
    min-width: 180px;
  }
  .drone-popup h4 {
    color: #4CAF50;
    margin: 0 0 5px 0;
  }
  
  .status-connected {
    color: #4CAF50;
  }
  .status-disconnected {
    color: #F44336;
  }
  
  /* Route waypoint list */
  #waypoints-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0;
    border: 1px solid #ddd;
    padding: 5px;
  }
  .waypoint-item {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #eee;
  }
  .remove-waypoint {
    background: #F44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  /* Add to dashboard.css */
.disaster-marker {
  background: transparent;
  border: none;
  text-align: center;
}

.disaster-marker i {
  color: #dc3545;
  font-size: 24px;
  text-shadow: 0 0 3px white;
}

.disaster-popup {
  min-width: 200px;
}

.disaster-popup h6 {
  color: #dc3545;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.btn-view-details, .btn-route {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}