* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #eaedf2;
  min-height: 100vh;
  padding: 20px;
  color: #2d3748;
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

.app-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Header Info Card */
.header-info {
  background: #fff;
  color: #2d3748;
  padding: 32px;
  border-radius: 34px;
  text-align: center;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.current-week-display {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 0;
  color: #6b7280;
}

.current-week-number {
  font-size: 58px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -1px;
  color: #ff374b;
}

.current-week-range {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
  color: #4b5563;
}

/* Calendar Card */
.calendar-container {
  background: white;
  border-radius: 34px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.calendar-header {
  padding: 20px 20px;
  background: #fff;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.month-year-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.month-year-controls select {
  background-color: #f3f4f6;
  border: none;
  border-radius: 20px;
  color: #2d3748;
  padding: 15px 20px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='960px' height='560px' viewBox='0 0 960 560' enable-background='new 0 0 960 560' xml:space='preserve'%3E%3Cg id='Rounded_Rectangle_33_copy_4_1_'%3E%3Cpath d='M480,344.181L268.869,131.889c-15.756-15.859-41.3-15.859-57.054,0c-15.754,15.857-15.754,41.57,0,57.431l237.632,238.937 c8.395,8.451,19.562,12.254,30.553,11.698c10.993,0.556,22.159-3.247,30.555-11.698l237.631-238.937 c15.756-15.86,15.756-41.571,0-57.431s-41.299-15.859-57.051,0L480,344.181z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) center;
}

.calendar__body {
  background-image: linear-gradient(to bottom, #f3f4f6, #fff);
}

.calendar__dates {
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 0;
  margin: 0;
}

.calendar__week-header {
  background-color: #fff;
  padding: 0 20px 10px;
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 0;
}

.calendar__week-number {
  text-align: center;
  font-weight: 700;
  color: #1752ff;
  font-size: 1.02rem;
  padding: 12px 0;
  /* background-color: #f3f4f6; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  /* border-radius: 8px; */
  /* margin: 2px; */
  letter-spacing: 0.5px;
}

.calendar__week-day {
  text-align: center;
  font-weight: 700;
  color: #c5c8ca;
  font-size: 1.02rem;
  padding: 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar__date {
  --height: calc(600px / 6 - 55px);
  --circle-size: calc(var(--height) * 0.7);
  --border-radius: calc(var(--height) * 0.35);
  text-align: center;
  height: var(--height);
  line-height: var(--height);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar__date::before {
  content: "";
  position: absolute;
  background-color: rgba(255, 255, 255, 0);
  width: 100%;
  height: calc(var(--height) * 0.9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  transition: background-color 0.3s ease;
  z-index: -1;
}

.calendar__date.today {
  color: #fff !important;
  font-weight: 700 !important;
  position: relative;
}

.calendar__date.today::before {
  background-color: #ffeaec;
  border-radius: 0px;
  z-index: -2;
}

.calendar__date.today::after {
  content: "";
  position: absolute;
  background-color: #ff374b;
  width: var(--circle-size);
  height: var(--circle-size);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  z-index: -1;
}

.calendar__date.current-week {
  color: #1a202c !important;
  font-weight: 700 !important;
  position: relative;
}

.calendar__date.current-week::before {
  background-color: #ffeaec;
  border-radius: 0px;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.calendar__date.current-week.week-start::before {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.calendar__date.current-week.week-end::before {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.calendar__date.today.week-start::before {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

.calendar__date.today.week-end::before {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.calendar__date.other-month {
  color: #c5c8ca;
  cursor: not-allowed;
}

.calendar__date.weekend.current-week {
  color: #1a202c !important;
  font-weight: 700 !important;
  position: relative;
}

.calendar__date.weekend.current-week::before {
  background-color: #ffeaec;
  z-index: -1;
}

.calendar__date.today span {
  color: #fff !important;
}

/* Year Info Card */
.year-info {
  background: white;
  padding: 32px;
  border-radius: 34px;
  text-align: center;
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  //display: none;
}

.year-info div {
  font-size: 16px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 12px;
  }
  
  .app-container {
    gap: 16px;
  }
  
  .header-info,
  .year-info {
    padding: 20px;
    border-radius: 24px;
  }
  
  .calendar-container {
    border-radius: 24px;
  }
  
  .calendar-header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
  }
  
  .month-year-controls {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  
  .month-year-controls select:nth-child(3) {
    grid-column: 1 / -1;
  }
  
  .month-year-controls select {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .current-week-number {
    font-size: 42px;
  }
  
  .current-week-display {
    font-size: 14px;
  }
  
  .calendar__dates {
    gap: 0;
    padding: 8px 16px;
  }
  
  .calendar__week-header {
    padding: 0 16px 8px;
  }
  
  .calendar__date {
    font-size: 13px;
    min-height: 36px;
  }
  
  .calendar__week-number {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  
  .calendar__week-day {
    font-size: 0.9rem;
    padding: 8px 0;
  }
  
  .year-info div {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }
  
  .header-info,
  .year-info {
    padding: 16px;
    border-radius: 20px;
  }
  
  .calendar-container {
    border-radius: 20px;
  }
  
  .current-week-number {
    font-size: 36px;
  }
  
  .current-week-display {
    font-size: 13px;
  }
  
  .calendar-header {
    padding: 10px 12px;
  }
  
  .month-year-controls select {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  
  .calendar__dates {
    padding: 6px 12px;
    grid-template-columns: 50px repeat(7, 1fr);
    gap: 0;
  }
  
  .calendar__week-header {
    padding: 0 12px 6px;
    grid-template-columns: 50px repeat(7, 1fr);
  }
  
  .calendar__date {
    font-size: 12px;
    min-height: 32px;
  }
  
  .calendar__week-number {
    font-size: 0.8rem;
    padding: 6px 0;
  }
  
  .calendar__week-day {
    font-size: 0.85rem;
    padding: 6px 0;
  }
  
  .year-info div {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 320px) {
  .calendar__dates,
  .calendar__week-header {
    grid-template-columns: 45px repeat(7, 1fr);
  }
  
  .calendar__dates {
    gap: 0;
  }
  
  .calendar__week-number {
    font-size: 0.75rem;
  }
  
  .calendar__week-day {
    font-size: 0.8rem;
  }
  
  .calendar__date {
    font-size: 11px;
    min-height: 28px;
  }
  
  .current-week-number {
    font-size: 32px;
  }
}
