/* Therapist Settings Page Styles */

.settings-layout {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.settings-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(16, 16, 20, 0.08);
}

.settings-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
}

.section-description {
  font-size: 13px;
  color: rgba(16, 16, 20, 0.6);
  margin: -8px 0 16px 0;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(16, 16, 20, 0.7);
}

.form-field label {
  font-weight: 500;
}

.form-field.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select {
  border-radius: 10px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 126, 140, 0.1);
}

.form-field input[type="number"] {
  max-width: 120px;
}

.field-hint {
  font-size: 11px;
  color: rgba(16, 16, 20, 0.5);
}

/* Working Hours Grid */
.working-hours-grid {
  display: grid;
  gap: 10px;
}

.working-hours-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(16, 16, 20, 0.03);
  border-radius: 10px;
  flex-wrap: wrap;
}

.day-label {
  width: 90px;
  font-weight: 500;
  font-size: 14px;
  color: rgba(16, 16, 20, 0.85);
}

.time-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-inputs input[type="time"] {
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  padding: 8px 10px;
  font-size: 13px;
  background: white;
}

.time-inputs input[type="time"]:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 126, 140, 0.1);
}

.time-separator {
  font-size: 12px;
  color: rgba(16, 16, 20, 0.5);
}

/* Status and Reason Dropdowns */
.status-select,
.reason-select {
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  padding: 8px 12px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.status-select {
  min-width: 110px;
}

.reason-select {
  min-width: 130px;
}

.status-select:focus,
.reason-select:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 126, 140, 0.1);
}

.status-select:disabled,
.reason-select:disabled {
  background: rgba(16, 16, 20, 0.05);
  color: rgba(16, 16, 20, 0.4);
  cursor: not-allowed;
}

/* Status color coding */
.status-select option[value="available"] {
  color: #7aa060;
}

.status-select option[value="busy"] {
  color: #c89632;
}

.status-select option[value="unavailable"] {
  color: rgba(16, 16, 20, 0.5);
}

/* Toggle Switch */
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-left: auto;
}

.toggle input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(16, 16, 20, 0.2);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .toggle-slider {
  background: #7aa060;
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

.toggle-label {
  font-size: 12px;
  color: rgba(16, 16, 20, 0.6);
  min-width: 75px;
}

/* Daily Breaks Section */
.breaks-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 16, 20, 0.1);
}

.breaks-section h4 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: rgba(16, 16, 20, 0.7);
}

.breaks-section .section-hint {
  font-size: 12px;
  color: rgba(16, 16, 20, 0.5);
  margin: 0 0 12px 0;
}

.break-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(200, 150, 50, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(200, 150, 50, 0.15);
  margin-bottom: 10px;
}

.break-name {
  font-weight: 500;
  font-size: 14px;
  color: rgba(16, 16, 20, 0.85);
  min-width: 100px;
}

.break-name-input {
  border-radius: 8px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  padding: 8px 10px;
  font-size: 13px;
  background: white;
  min-width: 120px;
  max-width: 140px;
}

.break-name-input:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 126, 140, 0.1);
}

.break-name-input::placeholder {
  color: rgba(16, 16, 20, 0.4);
}

.remove-break-btn {
  background: none;
  border: none;
  color: rgba(16, 16, 20, 0.4);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.remove-break-btn:hover {
  background: rgba(180, 80, 80, 0.1);
  color: #b45050;
}

.custom-breaks {
  /* Container for custom breaks */
}

.add-break-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed rgba(16, 16, 20, 0.2);
  color: rgba(16, 16, 20, 0.6);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.add-break-btn:hover {
  border-color: rgba(59, 126, 140, 0.4);
  color: var(--sea);
  background: rgba(59, 126, 140, 0.05);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sea);
  cursor: pointer;
}

.checkbox-label {
  font-size: 13px;
  color: rgba(16, 16, 20, 0.8);
}

/* Settings Actions */
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.settings-actions .button.primary {
  background: var(--sea);
  color: white;
}

.settings-actions .button.primary:hover {
  background: #2a6a7a;
}

/* Back Link */
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--sea);
  text-decoration: none;
  margin-bottom: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .working-hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .day-label {
    width: 100%;
  }

  .toggle {
    margin-left: 0;
  }

  .break-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .break-row .toggle {
    margin-left: 0;
  }

  .break-name {
    min-width: auto;
  }

  .break-name-input {
    width: 100%;
    max-width: none;
  }

  .remove-break-btn {
    align-self: flex-end;
    margin-top: -40px;
  }
}
