*,
*::before,
*::after {
  box-sizing: border-box; /* tüm elemanlar için kutu modeli düzeltmesi */
}

#calendar {
  width: 100%;
  max-width: 420px;
  margin: 20px auto;
  height: auto;
  overflow: hidden;
  padding: 0 10px; /* kenarlardan boşluk */
}

.header {
  height: 50px;
  background: rgba(66, 66, 66, 1);
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.header h1 {
  margin: 0;
  font-weight: 100;
  color: #ffcd00 !important;
}

.left, .right {
  position: absolute;
  top: 50%;
  margin-top: -7.5px;
  cursor: pointer;
  border-style: solid;
  width: 0;
  height: 0;
}

.left {
  left: 20px;
  border-width: 7.5px 10px 7.5px 0;
  border-color: transparent rgba(160, 159, 160, 1) transparent transparent;
}

.right {
  right: 20px;
  border-width: 7.5px 0 7.5px 10px;
  border-color: transparent transparent transparent rgba(160, 159, 160, 1);
}

.month {
  opacity: 1;
}

.week {
  background: #4A4A4A;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap; /* taşmayı engelle */
  overflow-x: auto; /* küçük ekranlarda yatay kaydırma */
  -webkit-overflow-scrolling: touch; /* mobilde kaydırma iyileştirme */
}

.day {
  flex: 1 1 13.5%; /* esnek genişlik, baz %13.5 */
  min-width: 40px; /* çok küçülmesin */
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  background: #4A4A4A;
  color: white;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  margin: 0 2px; /* kutucuklar arası boşluk */
}

.day.other {
  color: rgba(255, 255, 255, 0.4);
}

.day.today {
  color: rgba(209,156,235,1);
  font-weight: 600;
}

.day.selected {
  background-color: #ffcd00;
  color: #4a4a4a;
  border-color: #ffcc009a;
  font-weight: 600;
}

.day-name {
  font-size: 9px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.7px;
}

.day-number {
  font-size: 20px;
  letter-spacing: 1.2px;
}

@media (max-width: 420px) {
  #calendar {
    padding: 0 5px; /* mobilde kenarlardan daha az boşluk */
  }
  .day {
    padding: 6px 2px;
    font-size: 12px;
    min-width: 35px;
    margin: 0 1px;
  }

  .day-number {
    font-size: 18px;
  }

  .header {
    font-size: 18px;
    height: 45px;
  }
}

/* Saat seçimi liste stili */
.list_block ul {
  list-style: none;
  padding: 0;
}

.checkbox_radio_container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.checkbox_radio_container input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.checkbox_radio_container label.wrapper {
  cursor: pointer;
}

/* 
//////////////////// */

  .takvim {
    width: 100%;
    max-width: 400px;
    background: #6600cc;
    border-radius: 10px;
    padding: 20px;
	color: #ecf0f1;
  }

  .baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .baslik button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 5px 10px;
  }

  .baslik h2 {
    margin: 0;
    font-size: 18px;
  }

  .gunler, .tarihler {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px;
  }

  .gunler div {
    font-weight: bold;
    font-size: 12px;
    padding: 5px 0;
  }

  .tarihler div {
    padding: 10px 0;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
  }

  .tarihler div:hover {
    background: #f3f4f5;
	color: #6600cc;
  }

  .secili {
    background: #f3f4f5;
	color: #6600cc;
  }

  .bugun {
    border: 1px solid #ecf0f1c7;
  }

  .baskaay {
    color: #f5f8f8b6;
  }