/* ── Cleff Profile Edit Styles ─────────────────────────────────────────── */
/* Extends the MUP dashboard design system — same tokens, same look */

.cleff-profile-edit { max-width: 640px; }

/* ── Save notice ────────────────────────────────────────────────────────── */
.cleff-save-notice {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.cleff-save-notice--error {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* ── Photo upload ───────────────────────────────────────────────────────── */
.cleff-photo-upload {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cleff-photo-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cleff-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cleff-photo-initials {
  font-size: 24px;
  font-weight: 700;
  color: #ccc;
}

/* ── Fields ─────────────────────────────────────────────────────────────── */
.cleff-field {
  margin-bottom: 18px;
}
.cleff-field:last-child { margin-bottom: 0; }

.cleff-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.cleff-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.cleff-input:hover { border-color: #ccc; }
.cleff-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

.cleff-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.cleff-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
  cursor: pointer;
}

/* ── Checkboxes ─────────────────────────────────────────────────────────── */
.cleff-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cleff-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.cleff-checkbox-label:hover { background: #f0fdf4; border-color: #22c55e; }
.cleff-checkbox-label input[type="checkbox"] { accent-color: #22c55e; width: 14px; height: 14px; flex-shrink: 0; }

/* ── Toggle ─────────────────────────────────────────────────────────────── */
.cleff-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  color: #444;
}
.cleff-toggle-input { display: none; }
.cleff-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: #e8e8e8;
  border-radius: 11px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cleff-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cleff-toggle-input:checked ~ .cleff-toggle-track { background: #22c55e; }
.cleff-toggle-input:checked ~ .cleff-toggle-track::after { transform: translateX(18px); }

/* ── Field hint ─────────────────────────────────────────────────────────── */
.cleff-field-hint {
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  line-height: 1.4;
}

/* ── Form footer ────────────────────────────────────────────────────────── */
.cleff-form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.cleff-saving-indicator {
  font-size: 13px;
  color: #888;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  .cleff-checkboxes { grid-template-columns: 1fr; }
  .cleff-photo-upload { flex-direction: column; align-items: flex-start; }
}
