/* BEGIN START CONTENT  */
@keyframes fade-in-down {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .animate-fade-in-down {
    animation: fade-in-down 0.5s ease-out;
  }

/* END START CONTENT  */


/* BEGIN TIMETABLE CONTENT */

.week-nav-btn-next{
  position: fixed;
  bottom: 546px;
  left: 235px;
}

.week-nav-btn-prev{
  position: fixed;
  left: 110px;

}


.schedule-container {
    margin: 16px;
    font-family: 'Segoe UI', sans-serif;
  }
  
  h2 {
    margin: 0 0 12px;
    font-size: 20px;
    text-align: center;
    color: #A159BC;
  }
  
  .controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
  }
  
  .control-item {
    flex: 1;
    margin-right: 10px;
  }
  
  .control-item:last-child {
    margin-right: 0;
  }
  
  .controls input,
  .controls select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
  }
  
  .week-range {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .schedule {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
  }
  
  .schedule div {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    font-size: 11px;
  }
  
  .day-header {
    background-color: #A159BC;
    color: #fff;
    font-weight: bold;
    text-align: center;
  }
  
  .day-header.today {
    background-color: #FFD166;
    color: #000;
  }
  
  .time {
    background-color: #f6f6f6;
    color: #555;
  }
  
  .time.current {
    background-color: #E8D5F5;
    font-weight: bold;
  }
  
  .has-lesson {
    background-color: #CBA3E5;
  }
  
  .color-schedule-0 {
    background-color: #fff;
    border: 1px solid #eee;
  }
  .color-schedule-1 {
    background-color: #e4e2a8;
  }
  .color-schedule-2 {
    background-color: #ebd156;
  }
  .color-schedule-3 {
    background-color: #ffbb04;
  }
  .color-schedule-4 {
    background-color: #feac88;
  }
  .color-schedule-5 {
    background-color: #ff4031;
  }
  .color-schedule-free {
    background-color: #a4e2ff;
  }
  
  .no-lesson {
    background-color: #fff;
    border: 1px solid #eee;
  }
  
  @media (max-width: 480px) {
    .schedule div {
      font-size: 10px;
      border-radius: 6px;
    }
  }
  
/* END TIMETABLE CONTENT */

/* BEGIN MENU CONTENT */

.bottom-menu {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 6px;
    z-index: 1000;
  }
  
  .menu-icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background-color: #f2f2f2;
    transition: background-color 0.2s;
    padding: 8px;
  }
  
  .menu-icon-btn.active {
    background-color: #A159BC;
  }

  .non-pay {
    display: none;
    position: fixed;
    background-color: red;
    color: white;
    /* font-size: 10px; */
    border-radius: 999px;
    text-align: center;
    width: 20px;
    height: 20px;
    top: 2px;
    right: 105px;
  }

  .non-pay.color-red {
    position: fixed;
    display: block;
  }


/* END MENU CONTENT */

/* salary PAGE BEGIN */

.zp-main-block {
  padding: 10px;
}

.zp-main-text {
    text-align: center;
    margin-bottom: 25px;
  }

  .zp-main-text h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
    color: #2c3e50;
  }

  .salary-card,
  .missed-classes-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 480px;
    margin: 0 auto 25px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .salary-card h2,
  .missed-classes-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #34495e;
  }

  .salary-info {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 1.1rem;
    flex-direction: column;
    gap: 8px;
  }

  .salary-info span {
    font-weight: 600;
  }

  .salary-total {
    margin-top: 25px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
  }

  .missed-classes-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .missed-classes-list li {
    background: #f9f9f9;
    border-left: 4px solid #e74c3c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .missed-classes-list li:last-child {
    margin-bottom: 0;
  }

  /* Адаптивность */
  @media (max-width: 520px) {
    .salary-card,
    .missed-classes-card {
      padding: 16px;
      max-width: 100%;
    }

    .salary-info {
      font-size: 1rem;
    }

    .salary-total {
      font-size: 1.3rem;
    }
  }

/* BEGIN MODAL CONTENT */
.lessonInfo {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 22rem;
  max-width: 90%;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.lessonHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: .5rem;
}

.lessonTitle {
  font-size: 1.2rem;
  font-weight: bold;
}

.lessonClose {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: #666;
}

.lessonClose:hover {
  color: #000;
}

.lessonBody p {
  margin: .3rem 0;
}

#modalPeople {
  margin: .3rem 0 0 1rem;
  padding: 0;
}

/* ----------- DESKTOP ADAPTATION ----------- */
@media (min-width: 768px) {

  /* Общие отступы и размеры */
  .schedule-container {
    max-width: 1000px;
    margin: 24px auto;
    font-size: 14px;
  }

  .schedule {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
  }

  .schedule div {
    font-size: 13px;
    aspect-ratio: 1 / 0.9;
  }

  .day-header {
    font-size: 14px;
    padding: 6px 0;
  }

  h2 {
    font-size: 22px;
  }

  /* Нижнее меню — делаем компактнее и прибиваем к низу */
  .bottom-menu {
    bottom: 24px;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 18px;
  }

  .menu-icon-btn {
    width: 50px;
    height: 50px;
  }

  /* Модальное окно */
  .lessonInfo {
    width: 28rem;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .lessonTitle {
    font-size: 1.3rem;
  }

  .lessonBody p {
    font-size: 1rem;
  }

  /* Блоки зарплаты */
  .salary-card,
  .missed-classes-card {
    max-width: 700px;
    padding: 30px;
  }

  .salary-card h2,
  .missed-classes-card h2 {
    font-size: 1.6rem;
  }

  .salary-info {
    flex-direction: row;
    justify-content: space-between;
    font-size: 1.1rem;
  }

  .salary-total {
    font-size: 1.6rem;
  }
}
