* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #2d3436, #000000, #1f1c2c, #928DAB);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #ffffff;
  overflow-x: hidden;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
section {
  width: 100%;
}
.main-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.container {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.container h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.schedule-selector, .inputs {
  margin-bottom: 1rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
select, input[type="date"], input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.2);
  color: #fff;
}
select option {
  background: #2d3436;
  color: #fff;
}
.countdown {
  font-size: 2rem;
  margin: 1rem 0;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.button {
  padding: 0.75rem 1.5rem;
  background: #8c7ae6;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.button:hover {
  background: #a29bfe;
  transform: scale(1.05);
}

/* Calendar Overlay */
.calendar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.calendar-overlay.active {
  display: flex;
}
.calendar-container {
  background: rgba(255,255,255,0.1);
  padding: 1rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  max-width: 90%;
  width: 350px;
  max-height: 90%;
  overflow: hidden;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.nav-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}
.calendar-month-title {
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
}
#calendarContent {
  overflow-y: auto;
  max-height: calc(100% - 4rem);
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table th, .calendar-table td {
  width: 14.28%;
  padding: 0.3rem;
  text-align: center;
  font-size: 0.9rem;
}
.calendar-table th {
  color: #a29bfe;
}
.calendar-table td {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.calendar-table td.past {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}
.calendar-table td.payday {
  background: #8c7ae6;
  color: #000;
  font-weight: bold;
  border: 2px solid #a29bfe;
}

/* Responsive */
@media (max-width: 480px) {
  .calendar-container {
    width: 90%;
  }
  .calendar-table th, .calendar-table td {
    padding: 0.2rem;
    font-size: 0.8rem;
  }
  .calendar-month-title {
    font-size: 1rem;
  }
}
