/* Weekly Painter Schedule Grid Styles */
.weekly-painter-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border: 1px solid rgb(229, 231, 235);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}

.dark .weekly-painter-grid {
  background: rgb(31, 41, 55);
  border-color: rgb(55, 65, 81);
}

.weekly-painter-grid .grid-row {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 0;
}

.weekly-painter-grid .header-row {
  background: rgb(249, 250, 251);
  border-bottom: 2px solid rgb(229, 231, 235);
  position: sticky;
  top: 0;
  z-index: 10;
}

.dark .weekly-painter-grid .header-row {
  background: rgb(17, 24, 39);
  border-bottom-color: rgb(55, 65, 81);
}

.weekly-painter-grid .hour-label {
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgb(107, 114, 128);
  text-align: right;
  border-right: 1px solid rgb(229, 231, 235);
  border-bottom: 1px solid rgb(243, 244, 246);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dark .weekly-painter-grid .hour-label {
  color: rgb(156, 163, 175);
  border-right-color: rgb(55, 65, 81);
  border-bottom-color: rgb(31, 41, 55);
}

.weekly-painter-grid .day-label {
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(55, 65, 81);
  text-align: center;
  border-right: 1px solid rgb(229, 231, 235);
}

.dark .weekly-painter-grid .day-label {
  color: rgb(209, 213, 219);
  border-right-color: rgb(55, 65, 81);
}

.weekly-painter-grid .day-label:last-child {
  border-right: none;
}

.weekly-painter-grid .time-cell {
  min-height: 32px;
  border-right: 1px solid rgb(229, 231, 235);
  border-bottom: 1px solid rgb(243, 244, 246);
  cursor: pointer;
  transition: background-color 0.1s ease;
  position: relative;
}

.dark .weekly-painter-grid .time-cell {
  border-right-color: rgb(55, 65, 81);
  border-bottom-color: rgb(31, 41, 55);
}

.weekly-painter-grid .time-cell:last-child {
  border-right: none;
}

.weekly-painter-grid .time-cell:hover {
  background-color: rgb(243, 244, 246);
}

.dark .weekly-painter-grid .time-cell:hover {
  background-color: rgb(55, 65, 81);
}

.weekly-painter-grid .time-cell.active {
  background-color: rgb(99, 102, 241);
  border-color: rgb(79, 70, 229);
}

.dark .weekly-painter-grid .time-cell.active {
  background-color: rgb(99, 102, 241);
  border-color: rgb(129, 140, 248);
}

.weekly-painter-grid .time-cell.active:hover {
  background-color: rgb(79, 70, 229);
}

.dark .weekly-painter-grid .time-cell.active:hover {
  background-color: rgb(129, 140, 248);
}

/* Preset buttons container */
.weekly-painter-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.weekly-painter-presets button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid rgb(209, 213, 219);
  background: white;
  color: rgb(55, 65, 81);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dark .weekly-painter-presets button {
  background: rgb(31, 41, 55);
  border-color: rgb(75, 85, 99);
  color: rgb(209, 213, 219);
}

.weekly-painter-presets button:hover {
  background: rgb(243, 244, 246);
  border-color: rgb(156, 163, 175);
}

.dark .weekly-painter-presets button:hover {
  background: rgb(55, 65, 81);
  border-color: rgb(107, 114, 128);
}

.weekly-painter-presets button.danger {
  color: rgb(220, 38, 38);
  border-color: rgb(254, 202, 202);
}

.dark .weekly-painter-presets button.danger {
  color: rgb(248, 113, 113);
  border-color: rgb(127, 29, 29);
}

.weekly-painter-presets button.danger:hover {
  background: rgb(254, 226, 226);
  border-color: rgb(239, 68, 68);
}

.dark .weekly-painter-presets button.danger:hover {
  background: rgb(127, 29, 29);
  border-color: rgb(220, 38, 38);
}
