:root {
      --color-free: #f2e8c9;
      --color-busy: #7C2458;
      --color-admin: #fef3c7;
      --color-primary: linear-gradient(140deg, var(--color-free), var(--color-busy));
      --color-hover: linear-gradient(140deg, #f2e8c9, #302F6E);
    }
* {
  margin: 0;
  padding: 0;
}
    body {
      font-family: system-ui, sans-serif;
      background: #f7f8fa;
      color: #222;
      margin: 0;
    }

    header {
      background: var(--color-primary);
      color: white;
      padding: 1rem;
      text-align: center;
      font-size: 1.3rem;
    }

    main {
      max-width: 900px;
      margin: 0 auto;
      background: white;
      padding: 1rem;
      border-radius: 1rem;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      padding-bottom: clamp(4rem, 5dvh, 6rem);
    }
    .title {
      text-decoration: none;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
    }
    .controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin: 1rem 0;
    }

    .day {
      margin-bottom: 1rem;
      border-radius: 1rem;
      overflow: hidden;
    }

    .day h3 {
      background: var(--color-primary);
      color: white;
      padding: 0.5rem;
      margin: 0;
      font-size: 1rem;
      text-align: center;
    }

    .entry {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem;
      font-size: 0.9rem;
      
      cursor: pointer;
    }

    .entry.free {
      background-color: var(--color-free);
      border-bottom: 1px solid #434344;
    }

    .entry.busy {
      background-color: var(--color-busy);
      
      border-bottom: 1px solid #ffffff;
      color: white;
    }

    .entry:last-child {
      border-bottom: none;
    }

    .btn {
      background: var(--color-primary);
      color: white;
      border: none;
      border-radius: 0.5rem;
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-size: 0.9rem;
    }

    .btn:hover {
      background: var(--color-hover);
    }

    .delete-btn {
      background: #dc2626;
    }

    .delete-btn:hover {
      background: #b91c1c;
    }

    .admin {
      background: var(--color-admin);
      padding: 1rem;
      border-radius: 0.5rem;
      margin-bottom: 1rem;
    }

    input,
    select {
      padding: 0.4rem;
      border-radius: 0.3rem;
      border: 1px solid #ccc;
      width: 100%;
      box-sizing: border-box;
    }

    .adminPanel__add {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 0.8rem;
      margin-top: 0.5rem;
    }
    .addToClick {
        display: none;
        background-color: var(--color-admin);
        top: 3.5rem;
        position: fixed;
        max-width: 900px;
        margin: 0 auto;
        padding: 2rem;
    }
    .addToClick__btn-box {
        padding-top: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .addToClick__cancel {
        background: none;
        background-color: #929292;
    }
    .footmenu {
      width: 100%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      
      position: fixed;
      bottom: 0;
      
    }
    .nav {
      background: var(--color-primary);
      max-width: 900px;
      display: flex;
      align-items: center;
      justify-content: space-around;
      gap: 2rem;
      padding: 0.5rem 1rem 0 1rem;
      border-top-left-radius: 3rem;
      border-top-right-radius: 3rem;
      transition: all 0.3s ease;
    }
    .nav__hidden-box {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;

    }
    .btn_hidden,
    .btn_shedule,
    .btn_homework,
    .btn_visible {
      background: none;
    }
    /* .btn_hidden {
      border-radius: 50%;
      padding: 0.5rem 0.7rem;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: 800;
      
    } */
    .btn__svg {
      width: 2rem;
      height: 2rem;
    }
    .btn_hidden.hidden,
    .btn_visible.hidden {
      display: none;
    }
    .btn_hidden.visible,
    .btn_visible.visible {
      display: block;
    }
    .nav.hidden {
      transform: translateY(73%);
    }
    .blackout {
      position: absolute;
      background-color: rgba(0, 0, 0, 0.6);
      width: 100vw;
      height: 100vh;
      display: none;
    }
    @media (max-width: 768px) {
      main {
        padding: 0.5rem;
        padding-bottom: clamp(4rem, 5dvh, 6rem);
      }

      .controls h2 {
        font-size: 1rem;
      }


      .day h3 {
        font-size: 0.95rem;
      }
      .nav {
        flex-direction: column;
      }
      .nav__hidden-box {
        flex-direction: column;
      }
      .footmenu {
        justify-content: flex-end;
      }
    }