/* ========== General Container ========== */
.calendar-container {
  max-width: 400px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
}

/* ========== Header ========== */
.calendar-container .calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Navigation Buttons */
.calendar-container .calendar-header .prev,
.calendar-container .calendar-header .next {
  background-color: blue;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 5pt;
  line-height: 1;
  cursor: pointer;
}

.calendar-container .calendar-header .prev:hover,
.calendar-container .calendar-header .next:hover {
  background-color: darkblue;
}

/* ========== Grid Layouts ========== */
.calendar-container .weekdays,
.calendar-container .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  text-align: center;
}

/* Weekday Names */
.calendar-container .weekdays div {
  font-weight: 600;
  padding: 0.5rem 0;
  background: #f0f0f0;
  border-radius: 4px;
}

/* Calendar Days */
.calendar-container .days div {
  padding: 0.5rem 0;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  visibility: visible;
  background-color: green;
  color: white;
}



.calendar-container .days div.empty {
  visibility: hidden;
  background: transparent;
  cursor: default;
}







/* ========== Calendar day Styles ========== */


/* Range Start (Top-Left Triangle) */
.calendar-container .days div.range-start {
 position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, green 50%, red 50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Range Middle (Full Red) */
.calendar-container .days div.range-middle {
  background: red;
  color: white;
}

/* Range End (Bottom-Right Triangle) */
.calendar-container .days div.range-end {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, red 50%, green 50%);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Transition Day (Red box with white diagonal) */
.calendar-container .days div.range-transition {
  background: linear-gradient(
    135deg,
    red 0%,
    red 48%,
    green 48%,
    green 52%,
    red 52%,
    red 100%
  );
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

