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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.screen {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Login Screen */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.login-container h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.login-container p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #4285f4;
  color: white;
}

.btn-primary:hover {
  background: #357abd;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #f44336;
  color: white;
}

.btn-danger:hover {
  background: #da190b;
}

/* Header */
.header {
  background: white;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 1.4rem;
  color: #2c3e50;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

#current-date {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.school-day {
  background: #4285f4;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-right {
  display: flex;
  gap: 1rem;
}

/* Legend */
.legend {
  background: white;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.legend-name {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Content Wrapper with Sidebar */
.content-wrapper {
  display: flex;
  gap: 0;
}

/* Todo Sidebar */
.todo-sidebar {
  width: 280px;
  min-width: 280px;
  background: white;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
}

.todo-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.todo-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #2c3e50;
}

.todo-add {
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.todo-add input[type="text"] {
  flex: 1;
  min-width: 100px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.85rem;
}

.todo-add select {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.todo-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  background: #fafafa;
  border-left: 3px solid #e0e0e0;
}

.todo-item:hover {
  background: #f0f0f0;
}

.todo-item.completed {
  opacity: 0.6;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
}

.todo-checkbox {
  margin-top: 2px;
  cursor: pointer;
}

.todo-content {
  flex: 1;
  min-width: 0;
}

.todo-text {
  font-size: 0.85rem;
  color: #333;
  word-break: break-word;
}

.todo-assignee-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
  color: white;
  margin-top: 2px;
  display: inline-block;
}

.todo-delete {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.todo-item:hover .todo-delete {
  opacity: 1;
}

.todo-delete:hover {
  color: #f44336;
}

.todo-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  min-width: 0;
}

section {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

/* Events Container */
.events-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  border-left: 4px solid;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-card:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.event-time {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #666;
}

.event-calendar-name {
  font-weight: 500;
  color: #4285f4;
}

.day-section {
  margin-bottom: 2rem;
}

.day-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.no-events {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #333;
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4285f4;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.date-time-row {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.form-actions-right {
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
  }

  .todo-sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-right {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .date-time-row {
    grid-template-columns: 1fr 1fr;
  }

  .legend {
    gap: 1rem;
  }
}

/* Settings Button */
.btn-icon {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #666;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: #e0e0e0;
  color: #333;
}

/* Large Modal */
.modal-large {
  max-width: 800px;
}

/* School Day States */
.school-day.non-school-day {
  background: #ff9800;
}

.school-day.weekend {
  background: #9e9e9e;
}

/* Settings Section */
.settings-section {
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Add NSD Section */
.add-nsd-section {
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.add-nsd-section h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.add-nsd-section .form-row {
  grid-template-columns: 1fr 1fr;
}

/* NSD List Section */
.nsd-list-section h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.1rem;
}

.nsd-list {
  max-height: 300px;
  overflow-y: auto;
}

.nsd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border-left: 4px solid #4285f4;
}

.nsd-item.holiday {
  border-left-color: #4caf50;
}

.nsd-item.teacher_day {
  border-left-color: #ff9800;
}

.nsd-item.snow_day {
  border-left-color: #2196f3;
}

.nsd-item.other {
  border-left-color: #9e9e9e;
}

.nsd-item-info {
  flex: 1;
}

.nsd-item-dates {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.nsd-item-reason {
  color: #666;
  font-size: 0.9rem;
}

.nsd-item-type {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: #e0e0e0;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.nsd-delete-btn {
  background: none;
  border: none;
  color: #f44336;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nsd-delete-btn:hover {
  opacity: 1;
}

.nsd-empty {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

/* All-day checkbox in form */
.form-group .checkbox-label {
  margin-bottom: 0;
}

.form-group .checkbox-label input[type="checkbox"] {
  width: auto;
}

/* Recurrence Options */
.recurrence-options {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
}

.recurrence-options .form-group {
  margin-bottom: 1rem;
}

.recurrence-options .form-group:last-child {
  margin-bottom: 0;
}

.input-with-suffix {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-with-suffix input {
  width: 80px !important;
}

.input-with-suffix span {
  color: #666;
  white-space: nowrap;
}

/* Weekly Day Buttons */
.weekly-days {
  margin-bottom: 1rem;
}

.weekly-days label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.day-buttons {
  display: flex;
  gap: 0.5rem;
}

.day-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
  transition: all 0.2s ease;
}

.day-btn:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.day-btn.selected {
  background: #4285f4;
  border-color: #4285f4;
  color: white;
}

/* Recurrence End Options */
.recurrence-end-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: normal;
}

.radio-label input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.radio-label .small-input {
  width: 70px !important;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.radio-label input[type="date"] {
  width: 150px !important;
  padding: 0.4rem 0.5rem;
}

/* Time fields visibility toggle */
.time-field.hidden-time input {
  visibility: hidden;
}

.time-field.hidden-time label {
  visibility: hidden;
}

/* Recurring event indicator on event cards */
.event-recurring {
  font-size: 0.8rem;
  color: #4285f4;
  margin-top: 0.25rem;
}

.event-recurring::before {
  content: "↻ ";
}

/* ===== View Controls ===== */
.view-controls {
  background: white;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.view-navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-date-range {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-left: 1rem;
}

.view-toggle {
  display: flex;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 4px;
}

.view-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
}

.view-btn:hover {
  color: #333;
}

.view-btn.active {
  background: white;
  color: #4285f4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}

/* ===== Calendar View Container ===== */
.calendar-view {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

#list-view {
  background: transparent;
  box-shadow: none;
}

#list-view section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== Week View ===== */
.week-grid {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  min-height: 500px;
}

.week-header {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  border-bottom: 2px solid #e0e0e0;
  background: #fafafa;
}

.time-column-header {
  padding: 0.75rem;
  border-right: 1px solid #e0e0e0;
}

.week-day-header {
  padding: 0.75rem;
  text-align: center;
  border-right: 1px solid #e0e0e0;
}

.week-day-header:last-child {
  border-right: none;
}

.week-day-name {
  font-size: 0.85rem;
  color: #666;
  text-transform: uppercase;
}

.week-day-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-day-header.today .week-day-number {
  background: #4285f4;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0 auto;
}

/* All Day Section */
.all-day-section {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 2px solid #e0e0e0;
  min-height: 40px;
  background: #fafafa;
}

.all-day-label {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: #666;
  border-right: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.all-day-events {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px;
}

.all-day-cell {
  padding: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 30px;
}

/* Week Body with Time Slots */
.week-body {
  display: grid;
  grid-template-columns: 60px 1fr;
  flex: 1;
  overflow-y: auto;
}

.time-column {
  border-right: 1px solid #e0e0e0;
  background: #fafafa;
}

.time-slot-label {
  height: 60px;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: #999;
  text-align: right;
  position: relative;
  top: -8px;
}

.week-days-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  position: relative;
}

.week-day-column {
  border-right: 1px solid #e0e0e0;
  position: relative;
}

.week-day-column:last-child {
  border-right: none;
}

.hour-slot {
  height: 60px;
  border-bottom: 1px solid #f0f0f0;
}

.hour-slot:nth-child(even) {
  background: #fafafa;
}

/* Week Event Card */
.week-event {
  position: absolute;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  border-left: 3px solid;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.week-event:hover {
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.week-event-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-event-time {
  font-size: 0.65rem;
  color: #666;
}

/* ===== Month View ===== */
.month-grid {
  display: flex;
  flex-direction: column;
}

.month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #fafafa;
  border-bottom: 2px solid #e0e0e0;
}

.month-day-header {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.month-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(100px, 1fr);
}

.month-cell {
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.5rem;
  min-height: 100px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.month-cell:nth-child(7n) {
  border-right: none;
}

.month-cell:hover {
  background: #f5f5f5;
}

.month-cell.other-month {
  background: #fafafa;
}

.month-cell.other-month .month-cell-date {
  color: #ccc;
}

.month-cell.today {
  background: #e3f2fd;
}

.month-cell-date {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.month-cell.today .month-cell-date {
  background: #4285f4;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-cell-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

/* Month Event Pill */
.month-event {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-left: 3px solid;
  background: #f0f0f0;
}

.month-event:hover {
  opacity: 0.8;
}

.month-event-more {
  font-size: 0.7rem;
  color: #4285f4;
  cursor: pointer;
  padding: 2px 4px;
}

.month-event-more:hover {
  text-decoration: underline;
}

/* ===== Responsive: Week and Month Views ===== */
@media (max-width: 768px) {
  .view-controls {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .view-navigation {
    order: 2;
  }

  .view-toggle {
    order: 1;
  }

  .week-grid {
    height: auto;
    min-height: auto;
  }

  .week-header {
    grid-template-columns: 40px repeat(7, 1fr);
  }

  .week-day-name {
    font-size: 0.7rem;
  }

  .week-day-number {
    font-size: 1rem;
  }

  .time-column,
  .all-day-label {
    width: 40px;
  }

  .week-body {
    grid-template-columns: 40px 1fr;
  }

  .all-day-section {
    grid-template-columns: 40px 1fr;
  }

  .month-cell {
    min-height: 80px;
    padding: 0.25rem;
  }

  .month-cell-date {
    font-size: 0.85rem;
  }

  .month-event {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
}

/* ===== School Day Indicators ===== */

/* Week View School Day */
.week-day-school {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4285f4;
  margin-top: 0.25rem;
  padding: 2px 6px;
  background: #e3f2fd;
  border-radius: 4px;
}

.week-day-school.nsd {
  color: #ff9800;
  background: #fff3e0;
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Month View School Day */
.month-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.month-cell-school {
  font-size: 0.65rem;
  font-weight: 600;
  color: #4285f4;
  padding: 1px 4px;
  background: #e3f2fd;
  border-radius: 3px;
  white-space: nowrap;
}

.month-cell-school.nsd {
  color: #e65100;
  background: #fff3e0;
  font-size: 0.6rem;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Non-School Day Cell Styling */
.week-day-header.nsd-weekend {
  background: #f5f5f5;
}

.week-day-header.nsd-holiday {
  background: #e8f5e9;
}

.week-day-header.nsd-teacher_day {
  background: #fff8e1;
}

.week-day-header.nsd-snow_day {
  background: #e3f2fd;
}

.month-cell.nsd-weekend {
  background: #f9f9f9;
}

.month-cell.nsd-holiday {
  background: #e8f5e9;
}

.month-cell.nsd-teacher_day {
  background: #fff8e1;
}

.month-cell.nsd-snow_day {
  background: #e3f2fd;
}

.month-cell.nsd-other {
  background: #fafafa;
}

/* Override for today cell with non-school day */
.month-cell.today.nsd-holiday,
.month-cell.today.nsd-teacher_day,
.month-cell.today.nsd-snow_day {
  background: linear-gradient(135deg, #e3f2fd 50%, inherit 50%);
}

/* Responsive adjustments for school day */
@media (max-width: 768px) {
  .week-day-school {
    font-size: 0.6rem;
    padding: 1px 3px;
  }

  .week-day-school.nsd {
    font-size: 0.55rem;
  }

  .month-cell-school {
    font-size: 0.55rem;
    padding: 1px 2px;
  }

  .month-cell-header {
    flex-direction: column;
    gap: 2px;
  }
}

/* ===== Confirm Dialog ===== */
.modal-small {
  max-width: 400px;
}

.confirm-dialog {
  padding: 1.5rem;
  text-align: center;
}

.confirm-message {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.confirm-actions .btn {
  min-width: 100px;
}

/* ===== Todo Edit Styles ===== */
.todo-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.todo-content:hover .todo-text {
  color: #4285f4;
}

.todo-item.completed .todo-content:hover .todo-text {
  color: #666;
}
