@charset "UTF-8";

/* Genel taşma engelleyici */

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* Bootstrap container'lar da taşmasın */

.container,
.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Takvim dış sarmalayıcı */

.calendar-wrapper {
  width: 100%;
  overflow-x: hidden;
  /* scroll yok */
  padding: 0 10px;
  box-sizing: border-box;
}

.calendar-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  /* alt satıra geçmesin */
  justify-content: space-between;
  /* arada boşluklar otomatik */
  gap: 2px;
  width: 100%;
  /* tam genişlik */
  padding: 0.5rem 0;
}

.day-box {
  flex: 1 1 auto;
  /* esnek genişlik, küçülebilir */
  min-width: 20px;
  /* minimum kutu genişliği */
  max-width: 40px;
  /* maksimum kutu genişliği */
  height: 60px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #eee;
  font-size: 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  text-decoration: none;
  white-space: nowrap;
  /* içeriğin kırılmasını engelle */
}

/* Takvim kutusu hover */

.day-box:hover {
  background: #38383b;
  transform: scale(1.1);
}

/* Aktif gün kutusu */

.day-box.active {
  background: #ff3b3b !important;
  color: #fff;
  font-weight: bold;
  outline: 2px solid #fff;
}

/* 5 günlük kartlar scroll yapabilsin ama sayfa taşmasın */

.five-day-cards {
  display: flex;
  justify-content: space-between;
  /* Kartlar arasında mümkün olan en büyük boşluk */
  flex-wrap: nowrap;
  gap: 1rem;
}

/* 5 günlük kartlar flex nowrap */

.five-day-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

/* Kart sabit genişlikte */

.five-day-cards .card {
  min-width: 230px;
  flex-shrink: 0;
  background: #2e2e30;
  color: #eee;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Chart.js container'ları taşmasın */

.card > canvas {
  max-width: 100% !important;
  height: auto !important;
  min-height: 300px;
}

/* Harita */

#systemMap {
  max-width: 100%;
  height: 450px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Form satırı: flex-wrap yaparak taşmayı engelle */

form.d-flex {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  gap: 1rem !important;
}

/* Form içindeki div elemanları esnek ve minimum genişlik ver */

form.d-flex > div {
  flex: 1 1 250px;
  min-width: 200px;
}

