/* harmony-pro.css
   utilitários gerais que você já tinha + ajustes suaves de espaçamento,
   cores, etc. Se já existir conteúdo aí, substitui pelo abaixo inteiro. */

/* resetzinho light */
*,
*::before,
*::after {
  box-sizing:border-box;
}

body {
  margin:0;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background:#f9fafb;
  color:#111827;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  line-height:1.4;
  font-size:14px;
}

img {
  max-width:100%;
  display:block;
}

button {
  font-family: inherit;
}

input, select, textarea, button {
  font-family: inherit;
  line-height:1.4;
  font-size:14px;
  color:#111827;
}

/* helpers que admin.js já espera */
.harmony-text-center { text-align:center; }
.harmony-py-8 { padding-top:32px; padding-bottom:32px; }
.harmony-text-lg { font-size:16px; line-height:1.3; }
.harmony-font-semibold { font-weight:600; }
.harmony-mb-2 { margin-bottom:8px; }
.harmony-text-4xl { font-size:32px; line-height:1; }
.harmony-mb-4 { margin-bottom:16px; }

.empty-state {
  color:#6b7280;
  font-size:13px;
  line-height:1.4;
}

/* badge de dias etc (se aparecer em outro lugar) */
.checkbox-label {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  line-height:1.2;
  color:#374151;
  font-weight:500;
}
.checkbox-label input[type="checkbox"] {
  width:16px;
  height:16px;
}

/* tabela velha de horários (ainda pode existir em algum canto legado) */
.time-slot {
  display:flex;
  flex-direction:column;
  font-size:12px;
  color:#374151;
}
.time-inputs {
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.time-inputs input[type="time"] {
  appearance:none;
  -webkit-appearance:none;
  border:1px solid #d1d5db;
  border-radius:6px;
  padding:6px 8px;
  font-size:13px;
  line-height:1.2;
  min-width:90px;
}
.time-inputs input[type="time"]:focus {
  outline:none;
  border-color:#4f46e5;
  box-shadow:0 0 0 3px rgba(99,102,241,.3);
}
.slot-label {
  font-size:12px;
  font-weight:500;
  color:#4b5563;
}

/* escondido / etc */
.harmony-hidden {
  display:none !important;
}

/* scroll dentro do modal body, se precisar */
.svc-modal-body::-webkit-scrollbar {
  width:6px;
}
.svc-modal-body::-webkit-scrollbar-track {
  background:#f3f4f6;
  border-radius:999px;
}
.svc-modal-body::-webkit-scrollbar-thumb {
  background:#9ca3af;
  border-radius:999px;
}
.svc-modal-body::-webkit-scrollbar-thumb:hover {
  background:#6b7280;
}
/* ======= BLOCO: agenda de horários moderna ======= */

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
}

/* card do dia */
.day-card-modern {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dfe3e8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  transition: box-shadow .15s, border-color .15s, background .15s;
}

.day-card-modern.day-on {
  border-color: #86efac; /* verde claro */
  box-shadow: 0 12px 28px rgba(16,185,129,0.12);
}

.day-card-modern.day-off {
  opacity: .6;
  background: #f9fafb;
}

.day-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.day-left {
  display: flex;
  flex-direction: column;
}

.day-name-short {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
}
.day-name-full {
  font-size: 12px;
  line-height: 1.2;
  color: #6b7280;
}

.day-card-body {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.day-body-disabled {
  opacity: .5;
  pointer-events: none;
}

/* cada turno */
.slot-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 12px;
}

.slot-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

/* grupo de horários (start/end) */
.slot-time-group {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.time-field {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}
.time-field label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}
.time-field input[type="time"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  color: #111827;
  background: #fff;
}
.time-field input[type="time"]:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.time-sep {
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  color: #6b7280;
}

/* switches */
.switch-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.switch-modern input {
  display: none;
}
.switch-modern-track {
  width: 36px;
  height: 20px;
  background: #d1d5db; /* cinza */
  border-radius: 999px;
  position: relative;
  transition: all .15s;
}
.switch-modern-track:after {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 999px;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: all .15s;
}
.switch-modern input:checked + .switch-modern-track {
  background: #10b981; /* verde */
}
.switch-modern input:checked + .switch-modern-track:after {
  transform: translateX(16px);
}

/* switch para cada turno */
.slot-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.slot-switch input {
  display: none;
}
.slot-switch-track {
  width: 32px;
  height: 18px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  transition: all .15s;
}
.slot-switch-track:after {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 999px;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: all .15s;
}
.slot-switch input:checked + .slot-switch-track {
  background: #3b82f6; /* azul */
}
.slot-switch input:checked + .slot-switch-track:after {
  transform: translateX(14px);
}
