/* =======================================================
   SCHEDULE CALENDAR STYLES
   Physics Toolsmith
   ======================================================= */

/* =======================================================
   1. SCHEDULE CONTAINER & HEADER
   ======================================================= */

.schedule-container {
  padding: 30px 0;
}

.calendar-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.calendar-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #1e293b;
}

.text-primary-orange {
  color: #d9531e !important;
}

/* =======================================================
   2. MONTH / YEAR NAVIGATION
   ======================================================= */

.calendar-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* -------------------------------------------------------
   Select
   ------------------------------------------------------- */

.calendar-select {
  height: 36px;
  padding: 6px 30px 6px 12px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-select:hover {
  border-color: #d9531e;
}

.calendar-select:focus {
  outline: none;
  border-color: #d9531e;
  box-shadow: 0 0 0 0.15rem rgba(217, 83, 30, 0.15);
}

.month-select {
  min-width: 125px;
}

.year-select {
  min-width: 90px;
}

/* -------------------------------------------------------
   Previous / Next Buttons
   ------------------------------------------------------- */

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  padding: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  color: #475569;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  background: #d9531e;
  border-color: #d9531e;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 83, 30, 0.25);
}

.nav-btn:active {
  transform: translateY(0);
}

.nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.18);
}

/* =======================================================
   3. CALENDAR TABLE
   ======================================================= */

.calendar-table-responsive {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.table-calendar {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.table-calendar th {
  width: 14.2857%;
  padding: 12px 5px;
  background: #fff4e8;
  border: 1px solid #edf2f7;
  color: #d9531e;
  font-weight: 700;
  text-align: center;
}

.table-calendar td {
  width: 14.2857%;
  height: 100px;
  padding: 12px 8px;
  border: 1px solid #edf2f7;
  font-size: 0.85rem;
  text-align: center;
  vertical-align: top;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* =======================================================
   4. CELL HOVER / TODAY
   ======================================================= */

.clickable-cell {
  cursor: pointer;
}

.table-calendar td:hover,
.clickable-cell:hover {
  background-color: #fff7ed !important;
  box-shadow: inset 0 0 0 2px #d9531e;
}

.today-cell {
  background-color: #fef3c7 !important;
}

.today-cell:hover,
.today-cell.clickable-cell:hover {
  background-color: #fde68a !important;
}

/* =======================================================
   5. DATE NUMBER
   ======================================================= */

.date-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  line-height: 36px;
  border-radius: 50%;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.today-cell .date-number {
  background-color: #f59e0b;
  color: #ffffff;
}

/* -------------------------------------------------------
   Date Number Hover
   ------------------------------------------------------- */

.table-calendar td:hover .date-number,
.date-number:hover {
  background-color: #d9531e;
  color: #ffffff !important;
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(217, 83, 30, 0.3);
}

.today-cell:hover .date-number {
  background-color: #d97706;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

/* =======================================================
   6. HOLIDAY
   ======================================================= */

.holiday-label {
  display: block;
  margin-bottom: 4px;
  color: #878787;
  font-size: 0.75rem;
}

/* =======================================================
   7. PERIOD INFORMATION
   ======================================================= */

.period-grid {
  display: flex;
  gap: 2px;
  margin-top: 4px;
  font-size: 0.72rem;
  text-align: center;
}

.column1_div,
.column2_div,
.column3_div {
  flex: 1;
  min-height: 40px;
  padding: 3px 1px;
  border-radius: 4px;
}

.column1_div {
  background-color: #fff5f5;
  border: 1px solid rgba(226, 88, 69, 0.15);
}

.column2_div {
  background-color: #f0f9fa;
  border: 1px solid rgba(78, 152, 184, 0.15);
}

.column3_div {
  background-color: #f8f4fa;
  border: 1px solid rgba(118, 96, 146, 0.15);
}

.special-room {
  color: #0000ff;
  font-weight: 700;
}

/* =======================================================
   8. DASHBOARD LINK
   ======================================================= */

.dashboard-link {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.dashboard-link a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-link a:hover {
  background: #fff8f3;
  border-color: #d9531e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.dashboard-link i:first-child {
  color: #d9531e;
  font-size: 1.6rem;
}

.dashboard-link span {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.dashboard-link strong {
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
}

.dashboard-link small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.85rem;
}

.dashboard-link i:last-child {
  color: #94a3b8;
  font-size: 1.2rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.dashboard-link a:hover i:last-child {
  color: #d9531e;
  transform: translateX(4px);
}

/* =======================================================
   9. TABLET
   ======================================================= */

@media (max-width: 768px) {
  .schedule-container {
    padding: 20px 0;
  }

  .calendar-header-card {
    padding: 18px 16px;
    margin-bottom: 18px;
  }

  .calendar-title {
    font-size: 1.2rem;
    line-height: 1.35;
  }

  /* Navigation */
  .calendar-select {
    height: 34px;
    padding-left: 10px;
    padding-right: 26px;
    font-size: 0.85rem;
  }

  .month-select {
    min-width: 110px;
  }

  .year-select {
    min-width: 80px;
  }

  .nav-btn {
    width: 34px;
    height: 34px;
  }

  /* Calendar */
  .table-calendar {
    table-layout: fixed;
  }

  .table-calendar th {
    padding: 10px 2px;
    font-size: 0.85rem;
  }

  .table-calendar td {
    height: auto;
    padding: 8px 3px;
    font-size: 0.7rem;
  }

  /* Date */
  .date-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-bottom: 6px;
    font-size: 0.9rem;
  }

  /* Periods */
  .period-grid {
    flex-direction: column;
    width: 100%;
    gap: 3px;
    margin-top: 3px;
    font-size: 0.65rem;
  }

  .column1_div,
  .column2_div,
  .column3_div {
    width: 100%;
    min-height: 30px;
    padding: 3px 2px;
    line-height: 1.25;
    overflow: hidden;
  }

  /* Holiday */
  .holiday-label {
    font-size: 0.65rem;
  }
}

/* =======================================================
   10. MOBILE
   ======================================================= */

@media (max-width: 576px) {
  .schedule-container {
    padding: 15px 0;
  }

  .calendar-header-card {
    padding: 16px 10px;
    border-radius: 14px;
    margin-bottom: 15px;
  }

  .calendar-title {
    font-size: 1.05rem;
  }

  /* Navigation */
  .calendar-nav-group {
    max-width: 100%;
    padding: 4px;
  }

  .calendar-select {
    height: 32px;
    padding-left: 7px;
    padding-right: 22px;
    border-radius: 20px;
    font-size: 0.78rem;
  }

  .month-select {
    min-width: 100px;
  }

  .year-select {
    min-width: 72px;
  }

  .nav-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* Calendar */
  .table-calendar th {
    padding: 8px 1px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .table-calendar td {
    padding: 6px 2px;
    font-size: 0.62rem;
  }

  /* Date */
  .date-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin-bottom: 5px;
    font-size: 0.85rem;
  }

  /* Periods */
  .period-grid {
    gap: 2px;
    margin-top: 2px;
    font-size: 0.58rem;
  }

  .column1_div,
  .column2_div,
  .column3_div {
    min-height: 26px;
    padding: 3px 1px;
    line-height: 1.25;
    border-radius: 3px;
  }

  /* Holiday */
  .holiday-label {
    margin-bottom: 3px;
    font-size: 0.58rem;
  }

  /* Dashboard */
  .dashboard-link a {
    padding: 12px 14px;
    gap: 10px;
  }

  .dashboard-link i:first-child {
    font-size: 1.4rem;
  }

  .dashboard-link strong {
    font-size: 0.9rem;
  }

  .dashboard-link small {
    font-size: 0.75rem;
  }

  .dashboard-link i:last-child {
    font-size: 1rem;
  }
}

/* =======================================================
   11. EXTRA SMALL MOBILE
   ======================================================= */

@media (max-width: 390px) {
  .calendar-header-card {
    padding: 14px 8px;
  }

  .calendar-title {
    font-size: 1rem;
  }

  /* Navigation */
  .calendar-nav-group {
    padding: 3px;
    gap: 3px;
  }

  .calendar-select {
    height: 30px;
    padding-left: 6px;
    padding-right: 20px;
    font-size: 0.72rem;
  }

  .month-select {
    min-width: 88px;
  }

  .year-select {
    min-width: 66px;
  }

  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  /* Calendar */
  .table-calendar th {
    font-size: 0.7rem;
  }

  .table-calendar td {
    padding: 5px 1px;
    font-size: 0.58rem;
  }

  /* Date */
  .date-number {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 0.8rem;
  }

  /* Periods */
  .period-grid {
    font-size: 0.54rem;
  }

  .column1_div,
  .column2_div,
  .column3_div {
    min-height: 24px;
    padding: 2px 1px;
  }

  /* Holiday */
  .holiday-label {
    font-size: 0.54rem;
  }
}