/* Set the dropdown body over the datetimepicker */
.vscomp-dropbox-container {
  z-index: 5 !important;
}

/* Fix position of the date picker icon */
.btn.action-button.input-group-addon.shiny-bound-input {
  display: table-cell;
}

/* Reduce margins between inputs in the sidebar */
section.sidebar .form-group.shiny-input-container {
  margin-bottom: 0px !important;
  padding-top: 3px !important;
  padding-bottom: 8px !important;
  background: #2c3b41;
  color: #c5d2d8;
}

/* Style metric radio-buttons */
.btn.radiobtn.btn-default {
  text-align: left;
}

/* Set the same height for every boxes in a row */
.row {
  display: flex;
}
.row > div {
  margin-bottom: 20px;
}
.row > div > .box {
  height: 100%;
}

/* Logo fixe en bas de sidebar */
#sidebarCollapsed {
  height: 100%;
}
#sidebarItemExpanded {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Fix titre trop long dans le header */
.main-header .logo {
  font-size: 15px !important;
}

/* ===== Station list boxes ===== */
.station-list-box {
  font-family: 'Roboto', sans-serif;
  font-size: 24px !important;
  padding: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #1f2937;
}
.station-list-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}
.station-list-box img {
  opacity: 0.85;
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: all .5s ease;
  border-radius: 12px;
}
.station-list-box h2 {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: white !important;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  position: relative;
  z-index: 5;
  margin: 0 0 5px 0;
}
.station-list-box h4 {
  font-size: 15px !important;
  color: #f3f4f6 !important;
  position: relative;
  z-index: 5;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* ===== Badges coin ===== */
.station-badge {
  position: absolute;
  top: 15px; right: -45px;
  width: 140px; height: 24px;
  text-align: center;
  color: white !important;
  transform: rotate(45deg);
  padding: 2px 0;
  font-size: 12px !important;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 10;
}
.badge-active   { background: linear-gradient(45deg, #16a34a, #4ade80); }
.badge-inactive { background: linear-gradient(45deg, #6b7280, #9ca3af); }
.badge-delayed  { background: linear-gradient(45deg, #d97706, #fbbf24); color: #000 !important; }
.badge-labelled   { background: linear-gradient(45deg, #ffc107, #ffca2c); color: #000 !important; }
.badge-supervised { background: linear-gradient(45deg, #007bff, #00bfff); }
.badge-partner    { background: linear-gradient(45deg, #6f42c1, #9b6dff); }

/* Partner Sites cards — bordure violette en bas */
.station-list-box.partner-card {
  border-bottom: 4px solid #6f42c1;
}

/* ===== Titres de section ===== */
.section-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-top: 30px !important;
  margin-bottom: 20px !important;
  padding-bottom: 8px;
  border-bottom: 3px solid #e5e7eb;
  color: #111827;
}
.section-title.active-section   { border-bottom-color: #16a34a; }
.section-title.inactive-section { border-bottom-color: #6b7280; }
.section-title.delayed-section  { border-bottom-color: #d97706; }
.section-title.labelled-section   { border-bottom-color: #ffc107; }
.section-title.supervised-section { border-bottom-color: #007bff; }
.section-title.partner-section    { border-bottom-color: #6f42c1; }

/* Espacement lignes de cartes */
.station-row { margin-bottom: 16px; }

/* Nodata image */
.nodata-img {
  max-width: min(100%, 400px);
  display: block;
  margin: auto;
}

/* Style markers on map */
#home_1-map .fa-circle {
  color: #F2F2F2;
}