/* ===================================================================
   GLOBAL THEME – Modern, Lightweight, Fast UI
   =================================================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: #f7f8fa;
  color: #222;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  padding-left: 12px;
  padding-right: 12px;
}

/* ===================================================================
   NAVBAR
   =================================================================== */

.navbar {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 20px;
}

/* ===================================================================
   CARDS (improved shadows & rounded corners)
   =================================================================== */

.card {
  border-radius: 12px !important;
  border: none !important;
  background: #fff;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: box-shadow .2s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.btn-primary {
  background-color: #1976d2 !important;
  border-color: #1976d2 !important;
  box-shadow: 0 2px 6px rgba(25,118,210,0.3);
}

.btn-light {
  border: 1px solid #ddd;
}

.btn-outline-secondary {
  border: 1px solid #aaa !important;
}

/* ===================================================================
   TABLES – cleaner minimal style
   =================================================================== */

.table th {
  font-weight: 600;
}

.table thead th {
  background: #f1f3f5;
  font-size: 14px;
  letter-spacing: .3px;
  border-bottom: none;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f9fafc;
}

.table-borderless th {
  width: 180px;
  font-weight: 600;
  font-size: 15px;
  color: #444;
}

.table-borderless td {
  font-size: 15px;
}

/* ===================================================================
   BADGES (status colors)
   =================================================================== */

.badge-success { background: #2e7d32 !important; }
.badge-warning { background: #fb8c00 !important; }
.badge-danger { background: #e53935 !important; }
.badge-info    { background: #0288d1 !important; }

/* ===================================================================
   MAP – responsive
   =================================================================== */

#map {
  width: 100%;
  height: 560px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  #map { height: 420px; }
}

/* ===================================================================
   TABS – modern style
   =================================================================== */

.nav-tabs .nav-link {
  font-weight: 600;
  border-radius: 6px;
  color: #555;
}

.nav-tabs .nav-link.active {
  background: #1976d2;
  color: #fff;
}

/* ===================================================================
   MODAL
   =================================================================== */

.modal-content {
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

/* ===================================================================
   LEGEND COLORS (map markers)
   =================================================================== */

.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 6px;
}

/* ===================================================================
   MOBILE RESPONSIVENESS
   =================================================================== */

@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }

  .table-borderless th {
    width: 130px;
    font-size: 14px;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .stat-number { font-size: 26px !important; }
}
