/* ======= Desktop variables ======= */
:root {
  --font-size: 20px;
  --top-offset: 40vh;
  --font-color: #380d0d;
  --background-color: rgba(255, 207, 214, 0.80);
  --border-color: #e26d6d;
  --padding: 24px;
  --week-card-width: 550px;
  --week-card-padding: 24px;
  --button-radius: 6px;
  --progress-radius: 6px;
}

/* ======= Mobile variables ======= */
@media (max-width: 800px) {
  :root {
    --font-size: 16px;
    --top-offset: 35vh;
    --padding: 24px;
    --week-card-width: 80%;
    --week-card-padding: 24px;
    --button-radius: 0;
  }
}

@media (max-width: 500px) {
  :root {
    --font-size: 14px;
    --top-offset: 30vh;
    --padding: 24px;
    --week-card-width: 100%;
    --week-card-padding: 24px;
    --button-radius: 0;
  }
}

/* ======= Base styles ======= */

body {
  margin: 0;
  color: var(--font-color);
}

* {
  box-sizing: border-box;
}

#bg {
  position: absolute;
  background-image: url("./BG.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  z-index: -1;
}

.blur-filter {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0);
  /* лёгкая дымка */
  width: 100%;
  height: 100%;
}

#main-div {
  font-size: var(--font-size);
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--padding);
  padding-top: var(--top-offset);
  align-items: center;


  .week-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--week-card-padding);
    width: var(--week-card-width);
    border-radius: 2em;
    background-color: var(--background-color);

    h2 {
      text-align: center
    }
  }

  ;
}

input {
  color: var(--font-color);
  margin-top: var(--padding);
  margin-bottom: var(--padding);
  font-size: var(--font-size);
}

.date-picker {
  border: none;
  border-bottom: var(--border-color) solid 1px;
  background: none;
  color: var(--font-color);
}

progress {
  /* Убираем стандартное оформление (remove default styling) */
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  border: none;
  border-radius: var(--progress-radius);
  background-color: #ffd6d6; /* светло-розовый фон */
  overflow: hidden; /* чтобы полоски не вылезали за скругления */
}

/* Для WebKit-браузеров (Chrome, Edge, Safari) */
progress::-webkit-progress-bar {
  background-color: #ffd6d6; /* фон полосы */
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background-image: 
    repeating-linear-gradient(
      45deg,
      #6ed6a0,          /* ярко-красный (bright red stripe) */
      #6ed6a0 10px,
      #5cc993 10px,     /* розово-красный (pinkish red) */
      #5cc993 20px
    );
  border-radius: var(--progress-radius);
  transition: width 0.3s ease; /* плавное заполнение (smooth animation) */
}