* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Fredoka', sans-serif;
}

body {
  background: linear-gradient(-45deg, #cceeff, #ffe5b4, #ffd6e8, #cceeff);
  background-size: 500% 500%;
  animation: softLoop 8s ease-in-out infinite;
  color: #111;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

@keyframes softLoop {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  max-width: 90vw;
  text-align: center;
}

.clock {
  font-weight: bold; 
  font-size: 7vw;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.clock span {
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.day-info {
  font-weight: bold;
  margin-top: 10px;
  font-size: 1.3rem;
  opacity: 0.7;
}

.tap-hint {
  font-weight: bold;
  margin-top: 5px;
  font-size: 0.75rem;
  color: #666;
}

.calendar {
  font-weight: bold;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  margin-top: 20px;
}

.calendar.expanded {
  max-height: 600px;
}

.month-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
  font-size: 1.2rem;
  cursor: pointer;
}

.month-nav button {
  background: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.1s, background 0.2s, box-shadow 0.2s;
}

/* क्लिक करते समय छोटा और shadow गहरा हो जाए */
.month-nav button:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  background: #f0f0f0;
}

/* Optional: क्लिक होने पर "active" क्लास highlight दिखाएँ */
.month-nav button.active {
  background: #007bff;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 5px;
}

.weekdays div {
  font-weight: bold;
  opacity: 0.8;
  font-size: 1.9rem; /* desktop me thoda bada */
}

.weekdays div:nth-child(1) {
  color: red;
}

.days div {
  aspect-ratio: 1/1;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.3s;
  cursor: pointer;
  color: #000;
  font-weight: bold; /* Bold numbers */
  font-size: 2.05rem; /* Desktop me thoda bada */
}

.days div:nth-child(7n+1) {
  color: red;
}

.days div:hover {
  background: rgba(0,0,0,0.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.today {
  background: black !important;
  color: white !important;
}

.popup-overlay {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  animation: popFade 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.popup-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.popup-box input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #aaa;
  margin-bottom: 12px;
  font-size: 1rem;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.popup-buttons button {
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  background: #111;
  color: #fff;
}

.popup-buttons button:hover {
  background: #333;
}

.event-repeat {
  margin-top: 5px;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.event-repeat label {
  cursor: pointer;
}

@keyframes popFade {
  from { transform: scale(0.8); opacity:0; }
  to { transform: scale(1); opacity:1; }
}

.roller-overlay {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  display:none;
  justify-content:center;
  align-items:center;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.roller-box {
  background:#fff;
  border-radius:15px;
  padding:20px;
  text-align:center;
}

.roller-box select {
  font-size:1rem;
  padding:5px;
  margin:5px;
  border-radius:10px;
}

.roller-box button {
  margin-top:10px;
  padding:7px 14px;
  cursor:pointer;
  border:none;
  border-radius:8px;
  background:#111;
  color:#fff;
}

.roller-box button:hover {
  background:#333;
}

.footer-link {
  font-weight: bold; 
  margin-top: 15px;
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
}

.footer-link a {
  color: inherit;
  text-decoration: none;
}

.footer-link a:hover {
  text-decoration: underline;
  opacity:0.7;
}

@media (max-width:600px){
  .clock { font-size:8vw; }
  .month-nav { font-size:1rem; gap:12px; }
  .weekdays div { font-size:0.9rem; }
  .days div { font-size:0.9rem; }
}