/* Therapist Form Styles - Shared between create and edit pages */

.form-layout {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.form-section {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(16, 16, 20, 0.08);
}

.form-section h3 {
  margin: 0 0 18px 0;
  font-size: 16px;
  color: rgba(16, 16, 20, 0.85);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.7);
}

.form-field label .required {
  color: #c45c5c;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  padding: 10px 12px;
  font-size: 14px;
  background: white;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea: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 textarea {
  min-height: 80px;
  resize: vertical;
}

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

/* Checkbox/Tag Groups */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 16, 20, 0.04);
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkbox-tag:hover {
  background: rgba(59, 126, 140, 0.08);
  border-color: rgba(59, 126, 140, 0.2);
}

.checkbox-tag input {
  display: none;
}

.checkbox-tag input:checked + span {
  color: var(--sea);
  font-weight: 600;
}

.checkbox-tag:has(input:checked) {
  background: rgba(59, 126, 140, 0.12);
  border-color: rgba(59, 126, 140, 0.3);
}

.checkbox-tag .check-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(16, 16, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.15s ease;
}

.checkbox-tag input:checked ~ .check-icon {
  background: var(--sea);
  border-color: var(--sea);
  color: white;
}

/* Avatar Upload */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 126, 140, 0.2) 0%, rgba(59, 126, 140, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--sea);
  border: 2px dashed rgba(59, 126, 140, 0.3);
}

.avatar-preview.has-image {
  background: linear-gradient(135deg, var(--sea) 0%, #2a6a7a 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 126, 140, 0.3);
}

.avatar-actions {
  display: grid;
  gap: 8px;
}

.avatar-actions .button {
  font-size: 13px;
  padding: 8px 16px;
}

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

.hours-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(16, 16, 20, 0.03);
  border-radius: 10px;
}

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

.hours-row input[type="time"] {
  padding: 8px 10px;
  font-size: 13px;
}

.hours-row .hours-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(16, 16, 20, 0.6);
}

/* Form Actions */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(16, 16, 20, 0.08);
  margin-top: 8px;
}

.form-actions .button {
  padding: 12px 24px;
}

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

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

.button-danger {
  color: #c45c5c;
  border-color: rgba(196, 92, 92, 0.3);
}

.button-danger:hover {
  background: rgba(196, 92, 92, 0.1);
}

/* Edit Header */
.edit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(59, 126, 140, 0.12) 0%, rgba(59, 126, 140, 0.04) 100%);
  border-radius: 14px;
  border: 1px solid rgba(59, 126, 140, 0.15);
  margin-bottom: 8px;
}

.edit-header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea) 0%, #2a6a7a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.edit-header-info h2 {
  margin: 0;
  font-size: 18px;
}

.edit-header-info p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: rgba(16, 16, 20, 0.6);
}

/* Selector Field */
.selector-field {
  display: grid;
  gap: 10px;
}

.selector-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selector-field-header label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(16, 16, 20, 0.7);
}

.selector-field-header .button {
  font-size: 13px;
  padding: 6px 14px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  padding: 10px 12px;
  background: rgba(16, 16, 20, 0.02);
  border: 1px dashed rgba(16, 16, 20, 0.15);
  border-radius: 10px;
}

.selected-tags:empty::before {
  content: "None selected - click button above to add";
  color: rgba(16, 16, 20, 0.4);
  font-size: 13px;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(59, 126, 140, 0.12);
  border: 1px solid rgba(59, 126, 140, 0.25);
  border-radius: 999px;
  font-size: 12px;
  color: var(--sea);
  font-weight: 500;
}

.selected-tag .remove-tag {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(59, 126, 140, 0.2);
  border: none;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  color: var(--sea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-tag .remove-tag:hover {
  background: rgba(196, 92, 92, 0.2);
  color: #c45c5c;
}

/* Selection Dialog */
.selection-dialog {
  border: none;
  border-radius: 18px;
  padding: 0;
  width: min(90vw, 700px);
  max-height: 85vh;
  box-shadow: 0 24px 48px rgba(15, 24, 40, 0.2);
}

.selection-dialog::backdrop {
  background: rgba(20, 24, 30, 0.45);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.dialog-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
}

.dialog-header .kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(16, 16, 20, 0.5);
  margin-bottom: 4px;
}

.dialog-header h3 {
  margin: 0;
  font-size: 18px;
}

.dialog-search {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
}

.dialog-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(16, 16, 20, 0.15);
  border-radius: 10px;
  font-size: 14px;
}

.dialog-search input:focus {
  outline: none;
  border-color: rgba(59, 126, 140, 0.5);
}

.dialog-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.dialog-section {
  margin-bottom: 20px;
}

.dialog-section:last-child {
  margin-bottom: 0;
}

.dialog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.08);
}

.dialog-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(16, 16, 20, 0.5);
  margin: 0;
}

.select-all-link {
  font-size: 12px;
  color: var(--sea);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.select-all-link:hover {
  text-decoration: underline;
}

.dialog-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(16, 16, 20, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dialog-footer .selected-count {
  font-size: 13px;
  color: rgba(16, 16, 20, 0.6);
}

.dialog-footer .button-group {
  display: flex;
  gap: 10px;
}
