*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: #0071c1;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

.valid.modified:not([type="checkbox"]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

#blazor-error-ui {
  color-scheme: light only;
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.blazor-error-boundary {
  background:
    url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=)
      no-repeat 1rem/1.8rem,
    #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.loading-progress {
  position: relative;
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 20vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 0.6rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: #1b6ec2;
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: bold;
  inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

code {
  color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== Lindebergs Booking Page Styles ===== */
:root {
  --lindebergs-gold: #8b7355;
  --lindebergs-gold-dark: #6b5a45;
  --lindebergs-gold-light: #a89070;
  --lindebergs-bg: #f5f3f0;
  --lindebergs-text: #4a4a4a;
}

.booking-page {
  background-color: var(--lindebergs-bg);
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* Header */
.booking-header {
  margin-bottom: 2rem;
}

.booking-title {
  color: var(--lindebergs-gold);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.brand-name {
  font-weight: 600;
}

.booking-subtitle {
  color: var(--lindebergs-gold);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.booking-description {
  color: var(--lindebergs-text);
  font-size: 0.9rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.booking-notice {
  color: var(--lindebergs-gold);
  font-size: 0.85rem;
  font-style: italic;
}

/* Service Selection */
.service-selection {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.service-label {
  display: block;
  color: var(--lindebergs-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.service-select {
  border: 1px solid var(--lindebergs-gold-light);
  border-radius: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--lindebergs-text);
  background-color: white;
}

.service-select:focus {
  border-color: var(--lindebergs-gold);
  box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.25);
}

/* Therapist Grid */
.therapist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.therapist-card {
  background: transparent;
  text-align: center;
}

.therapist-image-container {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: #e0e0e0;
}

.therapist-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.therapist-card:hover .therapist-image {
  filter: grayscale(0%);
}

.therapist-name {
  color: var(--lindebergs-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

/* Book Button */
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lindebergs-gold);
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-book:hover {
  background-color: var(--lindebergs-gold-dark);
  color: white;
}

.btn-book:disabled {
  background-color: var(--lindebergs-gold-light);
  cursor: not-allowed;
}

/* Step Content */
.step-content {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.step-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

/* Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.slot-btn {
  background-color: white;
  border: 2px solid var(--lindebergs-gold);
  color: var(--lindebergs-gold);
  padding: 0.75rem;
  font-size: 1rem;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-btn:hover {
  background-color: var(--lindebergs-gold);
  color: white;
}

/* Confirmation */
.confirmation-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.confirmation-icon {
  font-size: 5rem;
  color: #28a745;
}

.confirmation-details {
  background-color: var(--lindebergs-bg);
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.confirmation-details p {
  margin-bottom: 0.5rem;
}

/* Form Styling */
.form-floating > .form-control {
  border-radius: 0;
  border-color: #ddd;
}

.form-floating > .form-control:focus {
  border-color: var(--lindebergs-gold);
  box-shadow: 0 0 0 0.2rem rgba(139, 115, 85, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .booking-title {
    font-size: 1.2rem;
  }

  .booking-subtitle {
    font-size: 0.9rem;
  }

  .therapist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .therapist-name {
    font-size: 0.75rem;
  }

  .btn-book {
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===== Login Page Styles ===== */
.login-page {
  background-color: var(--lindebergs-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-container {
  background: white;
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  color: var(--lindebergs-gold);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: var(--lindebergs-text);
  font-size: 1rem;
  font-weight: 400;
}

/* Login Page: form-input style (reuses wizard patterns) */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s;
  min-width: 0;
  max-width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: rgba(137, 116, 73, 1);
}

.form-input::placeholder {
  color: #aaa;
}

/* Dev-Login Section */
.dev-login-section {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 2px solid #f9a825;
  border-radius: 12px;
  background: #fff8e1;
  text-align: center;
}

.dev-login-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #e65100;
  font-size: 0.85rem;
}

.btn-dev-login {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: #f9a825;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.btn-dev-login:hover:not(:disabled) {
  background: #f57f17;
  color: white;
}

.btn-dev-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* OIDC Login Section */
.oidc-login-section {
  margin-top: 1.5rem;
}

.oidc-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: #999;
  font-size: 0.85rem;
}

.oidc-divider::before,
.oidc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
}

.oidc-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-oidc-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: 2px solid #e0dcd4;
  background: white;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-oidc-login:hover:not(:disabled) {
  border-color: rgba(137, 116, 73, 0.6);
  background: rgba(137, 116, 73, 0.04);
  color: rgba(117, 96, 53, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(137, 116, 73, 0.12);
}

.btn-oidc-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-oidc-login--email {
  background: rgba(137, 116, 73, 0.06);
}

.oidc-provider-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: rgba(117, 96, 53, 1);
}

.oidc-provider-icon--brand {
  stroke: none;
}

.login-hint {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.login-hint a {
  color: rgba(117, 96, 53, 1);
  text-decoration: none;
}

.login-hint a:hover {
  text-decoration: underline;
}

/* Cancel Overlay (Popup) */
.cancel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cancel-popup {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.cancel-popup-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.cancel-popup-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.cancel-popup-header h2 {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.cancel-popup-header p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.cancel-appointment-info {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.5rem;
}

.cancel-reason-input {
  resize: vertical;
  min-height: 80px;
}

/* Cancel Reason Chips */
.cancel-reason-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cancel-reason-chip {
  padding: 0.5rem 1rem;
  border: 1.5px solid #ddd;
  background: white;
  font-size: 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  color: #444;
}

.cancel-reason-chip:hover:not(:disabled) {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.04);
  color: #1a73e8;
}

.cancel-reason-chip.selected {
  border-color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  font-weight: 600;
}

.cancel-reason-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Late Cancellation Warning */
.late-cancellation-warning {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.35);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.late-cancellation-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.late-cancellation-text {
  flex: 1;
}

.late-cancellation-text strong {
  display: block;
  color: #e65100;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.late-cancellation-text p {
  margin: 0;
  color: #bf360c;
  font-size: 0.85rem;
  line-height: 1.5;
}

.btn-cancel-late {
  background: #e65100 !important;
}

.btn-cancel-late:hover:not(:disabled) {
  background: #bf360c !important;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3) !important;
}

textarea.form-input {
  font-family: inherit;
}

.cancel-popup-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  gap: 0.75rem;
}

.btn-cancel-confirm {
  padding: 0.875rem 2rem;
  border: none;
  background: #c62828;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  flex: 1;
  max-width: 220px;
}

.btn-cancel-confirm:hover:not(:disabled) {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.btn-cancel-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dashboard Success Message */
.success-banner {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #155724;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cancel-success-banner {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #155724;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cancel-success-icon {
  font-size: 1.25rem;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.completed {
  background: rgba(40, 167, 69, 0.12);
  color: #155724;
}

.status-badge.cancelled {
  background: rgba(198, 40, 40, 0.12);
  color: #c62828;
}

.cancellation-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(198, 40, 40, 0.05);
  border-radius: 8px;
  border-left: 3px solid rgba(198, 40, 40, 0.3);
}

.cancellation-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #c62828;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cancellation-reason {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  font-style: italic;
}

.cancellation-date {
  font-size: 0.72rem;
  color: #999;
  margin-top: 0.15rem;
}

/* ===== Booking: Availability Preferences ===== */
.availability-section {
  margin-bottom: 1.5rem;
}

.availability-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.day-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.day-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: white;
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-btn:hover {
  border-color: rgba(137, 116, 73, 0.5);
  color: rgba(137, 116, 73, 1);
}

.day-btn.selected {
  background: rgba(137, 116, 73, 1);
  border-color: rgba(137, 116, 73, 1);
  color: white;
}

.availability-hint {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
  font-style: italic;
}

.time-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.time-btn {
  flex: 1;
  min-width: 120px;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.time-btn:hover {
  border-color: rgba(137, 116, 73, 0.5);
}

.time-btn.selected {
  border-color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.06);
}

.time-icon {
  font-size: 1.5rem;
}

.time-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.time-range {
  font-size: 0.75rem;
  color: #999;
}

.availability-filter-hint {
  font-size: 0.8rem;
  color: rgba(137, 116, 73, 1);
  font-weight: 500;
}

/* ===== Booking: Slot Results ===== */
.slot-results {
  margin-top: 1rem;
}

.slot-day-group {
  margin-bottom: 1.25rem;
}

.slot-day-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.slot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slot-btn {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 90px;
}

.slot-btn:hover {
  border-color: rgba(137, 116, 73, 0.5);
  transform: translateY(-1px);
}

.slot-btn.selected {
  border-color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.08);
  box-shadow: 0 2px 8px rgba(137, 116, 73, 0.2);
}

.slot-time {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

.slot-therapist {
  font-size: 0.7rem;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.btn-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  background: transparent;
  color: rgba(137, 116, 73, 1);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  border-color: rgba(137, 116, 73, 0.4);
  background: rgba(137, 116, 73, 0.04);
}

.spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(137, 116, 73, 0.3);
  border-top-color: rgba(137, 116, 73, 1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== Booking: Selected Slot Summary ===== */
.selected-slot-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(137, 116, 73, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(137, 116, 73, 0.2);
}

/* ===== Booking: Confirmation ===== */
.booking-success {
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.confirmation-details {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #fafafa;
  border-radius: 12px;
}

.confirmation-details .detail-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.confirmation-details .detail-row:last-child {
  border-bottom: none;
}

/* ===== Mobile: Booking ===== */
@media (max-width: 600px) {
  .day-selector {
    gap: 0.35rem;
  }

  .day-btn {
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
  }

  .time-selector {
    flex-direction: column;
    gap: 0.5rem;
  }

  .time-btn {
    flex-direction: row;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    text-align: left;
    align-items: center;
  }

  .time-icon {
    font-size: 1.2rem;
  }

  .slot-btn {
    min-width: 75px;
    padding: 0.5rem 0.75rem;
  }

  .slot-time {
    font-size: 0.9rem;
  }
}

/* ===== Mobile: Login & Cancel Popup ===== */
@media (max-width: 600px) {
  .cancel-popup {
    padding: 1.25rem;
    margin: 0.5rem;
    max-height: 85vh;
  }

  .cancel-popup-icon {
    font-size: 2.5rem;
  }

  .cancel-popup-header h2 {
    font-size: 1.2rem;
  }

  .cancel-appointment-info .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .cancel-popup-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .cancel-popup-actions .btn-back,
  .btn-cancel-confirm {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  /* Login form-input iOS zoom fix */
  .form-input {
    font-size: 16px;
  }
}

/* ===== Dashboard Page Styles ===== */
.dashboard-page {
  background-color: var(--lindebergs-bg);
  min-height: 100vh;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-header {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dashboard-title {
  color: rgba(137, 116, 73, 1);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.dashboard-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  white-space: nowrap;
}

.btn-logout:hover {
  border-color: #c62828;
  color: #c62828;
  background: rgba(198, 40, 40, 0.05);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.patient-selector {
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(137, 116, 73, 0.3);
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  max-width: 200px;
}

.patient-selector:hover,
.patient-selector:focus {
  border-color: rgba(137, 116, 73, 0.6);
  outline: none;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.dashboard-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 460px;
}

.dashboard-primary-action,
.dashboard-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  min-height: 46px;
  padding: 0.8rem 1rem;
  transition: all 0.2s ease;
}

.dashboard-primary-action {
  border: none;
  background: linear-gradient(
    135deg,
    rgba(137, 116, 73, 1) 0%,
    rgba(117, 96, 53, 1) 100%
  );
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.dashboard-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(137, 116, 73, 0.3);
}

.dashboard-primary-action-hint {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  margin-top: -0.1rem;
}

.dashboard-secondary-action {
  border: 1px solid rgba(137, 116, 73, 0.3);
  background: rgba(137, 116, 73, 0.08);
  color: rgba(137, 116, 73, 1);
  font-size: 0.95rem;
  font-weight: 600;
}

.dashboard-secondary-action:hover {
  background: rgba(137, 116, 73, 0.14);
  border-color: rgba(137, 116, 73, 0.5);
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(137, 116, 73, 0.08);
  border: 1px solid rgba(137, 116, 73, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  width: 100%;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.info-banner-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-phone {
  color: rgba(137, 116, 73, 1);
  font-weight: 600;
  text-decoration: none;
}

.info-phone:hover {
  text-decoration: underline;
}

.section-title {
  color: rgba(137, 116, 73, 1);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(137, 116, 73, 0.2);
}

/* Section Header Row (title + action button) */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-header-row .section-title {
  margin-bottom: 0.75rem;
  flex: 1;
}

.section-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pdf-export-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #842029;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pdf-export-error-icon {
  flex-shrink: 0;
}

/* Calendar Export Button */
.btn-calendar-export {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(137, 116, 73, 0.4);
  background: rgba(137, 116, 73, 0.06);
  color: rgba(137, 116, 73, 1);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: 0.75rem;
}

.btn-calendar-export:hover:not(:disabled) {
  background: rgba(137, 116, 73, 0.15);
  border-color: rgba(137, 116, 73, 0.6);
  transform: translateY(-1px);
}

.btn-calendar-export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-calendar-export i {
  font-size: 0.8rem;
}

/* Appointments List */
.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.appointment-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.appointment-card:hover {
  transform: translateY(-2px);
}

.appointment-card.upcoming {
  border-left: 4px solid rgba(137, 116, 73, 1);
}

.appointment-card.past {
  opacity: 0.7;
  border-left: 4px solid #ccc;
}

.appointment-date {
  text-align: center;
  min-width: 60px;
}

.appointment-date .day {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(137, 116, 73, 1);
  line-height: 1;
}

.appointment-date .month {
  display: block;
  font-size: 0.85rem;
  color: var(--lindebergs-text);
  text-transform: uppercase;
}

.appointment-details {
  flex: 1;
}

.appointment-time {
  font-weight: 600;
  color: var(--lindebergs-text);
  margin-bottom: 0.25rem;
}

.appointment-type {
  font-size: 1.1rem;
  color: rgba(137, 116, 73, 1);
  font-weight: 500;
}

.appointment-therapist {
  font-size: 0.9rem;
  color: #666;
}

.appointment-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-cancel-appointment {
  padding: 0.6rem 1rem;
  border: 2px solid #c62828;
  border-radius: 8px;
  background: white;
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  white-space: nowrap;
}

.btn-cancel-appointment:hover {
  background: #c62828;
  color: white;
}

.appointment-status {
  min-width: 100px;
  text-align: right;
}

/* Empty State */
.empty-state {
  background: white;
  padding: 3rem;
  text-align: center;
  border-radius: 12px;
  color: #999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ddd;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-page {
    padding: 1rem;
  }

  .dashboard-header {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .dashboard-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .dashboard-title {
    font-size: 1.3rem;
  }

  .btn-logout {
    width: 100%;
    justify-content: center;
  }

  .appointment-card {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
    border-radius: 12px;
  }

  .appointment-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.25rem;
  }

  .btn-cancel-appointment {
    width: 100%;
    text-align: center;
  }

  .appointment-status {
    min-width: auto;
  }

  .info-banner {
    font-size: 0.88rem;
  }
}

/* ==================== HOME PAGE ==================== */

.portal-home {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.portal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portal-header h1 {
  color: rgba(137, 116, 73, 1);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0;
}

.portal-header .subtitle {
  color: rgba(137, 116, 73, 0.8);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.portal-welcome {
  text-align: center;
  margin-bottom: 3rem;
}

.portal-welcome h2 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.portal-welcome p {
  color: #666;
  font-size: 1rem;
}

.portal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portal-option {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.portal-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.portal-option .option-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.portal-option h3 {
  color: rgba(137, 116, 73, 1);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portal-option p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

.portal-option .btn-primary,
.portal-option .btn-secondary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.portal-option .btn-primary {
  background: linear-gradient(
    135deg,
    rgba(137, 116, 73, 1) 0%,
    rgba(117, 96, 53, 1) 100%
  );
  color: white;
}

.portal-option .btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(117, 96, 53, 1) 0%,
    rgba(97, 76, 33, 1) 100%
  );
  transform: scale(1.02);
}

.portal-option .btn-secondary {
  background: white;
  color: rgba(137, 116, 73, 1);
  border: 2px solid rgba(137, 116, 73, 1);
}

.portal-option .btn-secondary:hover {
  background: rgba(137, 116, 73, 0.1);
  transform: scale(1.02);
}

.portal-info {
  background: rgba(137, 116, 73, 0.08);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.portal-info p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.portal-info strong {
  color: rgba(137, 116, 73, 1);
}

@media (max-width: 600px) {
  .portal-home {
    padding: 1.5rem 1rem;
  }

  .portal-header h1 {
    font-size: 1.5rem;
  }

  .portal-options {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portal-option {
    padding: 1.5rem;
  }
}

/* ==================== NEW PATIENT WIZARD ==================== */

.pp-icon {
  width: 1em;
  height: 1em;
  vertical-align: -2px;
}

.pp-icon--lg {
  width: 3rem;
  height: 3rem;
}

.new-patient-wizard {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.wizard-header {
  text-align: center;
  margin-bottom: 2rem;
}

.wizard-header h1 {
  color: rgba(137, 116, 73, 1);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.wizard-subtitle {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* Progress Steps */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.progress-step .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.progress-step.active .step-number {
  background: rgba(137, 116, 73, 1);
  color: white;
}

.progress-step.completed .step-number {
  background: rgba(137, 116, 73, 0.8);
  color: white;
}

.progress-step .step-label {
  font-size: 0.8rem;
  color: #999;
}

.progress-step.active .step-label {
  color: rgba(137, 116, 73, 1);
  font-weight: 500;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 80px;
  transition: background 0.3s;
}

.progress-line.completed {
  background: rgba(137, 116, 73, 0.8);
}

/* Wizard Content */
.wizard-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.wizard-step h2 {
  color: #333;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.step-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Recipe Choice Cards */
.recipe-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-height: 44px;
}

.choice-card:hover {
  border-color: rgba(137, 116, 73, 0.5);
  transform: translateY(-2px);
}

.choice-card.selected {
  border-color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.05);
}

.choice-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.choice-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.choice-desc {
  font-size: 0.85rem;
  color: #666;
}

/* Recipe Form */
.recipe-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.recipe-form h3 {
  color: rgba(137, 116, 73, 1);
  font-size: 1.1rem;
  margin: 0 0 1.25rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-hint {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* Insurance Options */
.insurance-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.option-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.option-btn:hover {
  border-color: rgba(137, 116, 73, 0.5);
}

.option-btn.selected {
  border-color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 1);
  color: white;
}

/* Recipe Help */
.recipe-help-image {
  margin-bottom: 1rem;
}

.help-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(137, 116, 73, 0.08);
  border-radius: 8px;
  align-items: flex-start;
}

.help-icon {
  font-size: 1.25rem;
}

.help-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.help-text code {
  background: rgba(137, 116, 73, 0.15);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* Positions Input */
.positions-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.position-row {
  display: flex;
  gap: 0.5rem;
}

.position-select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.position-select:focus {
  outline: none;
  border-color: rgba(137, 116, 73, 1);
}

.btn-remove {
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  color: #999;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-remove:hover {
  background: #ffebee;
  color: #c62828;
}

.btn-add-position {
  padding: 0.75rem;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  background: transparent;
  color: rgba(137, 116, 73, 1);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-position:hover {
  border-color: rgba(137, 116, 73, 0.5);
  background: rgba(137, 116, 73, 0.05);
}

/* Loading & Error States */
.loading-positions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  color: #666;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: rgba(137, 116, 73, 1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.error-message {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
}

.btn-retry {
  padding: 0.5rem 1rem;
  border: 1px solid #c62828;
  background: white;
  color: #c62828;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  align-self: flex-start;
}

.btn-retry:hover {
  background: #ffebee;
}

/* Selected Positions Summary */
.selected-positions-summary {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(137, 116, 73, 0.08);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.selected-positions-summary strong {
  color: #555;
  font-size: 0.85rem;
}

.position-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(137, 116, 73, 1);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: monospace;
}

/* Wizard Actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.btn-back {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #666;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
  min-height: 44px;
}

.btn-back:hover {
  color: #333;
}

.btn-next {
  padding: 0.875rem 2rem;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(137, 116, 73, 1) 0%,
    rgba(117, 96, 53, 1) 100%
  );
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(137, 116, 73, 0.3);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Suggestion Card */
.suggestion-card {
  background: linear-gradient(
    135deg,
    rgba(137, 116, 73, 0.08) 0%,
    rgba(137, 116, 73, 0.03) 100%
  );
  border: 2px solid rgba(137, 116, 73, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.suggestion-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.suggestion-icon {
  font-size: 1.25rem;
}

.suggestion-title {
  font-weight: 600;
  color: rgba(137, 116, 73, 1);
}

.therapy-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.therapy-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.therapy-duration {
  background: rgba(137, 116, 73, 1);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.suggestion-reason {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.btn-accept-suggestion {
  width: 100%;
  padding: 0.875rem;
  border: none;
  background: rgba(137, 116, 73, 1);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept-suggestion:hover {
  background: rgba(117, 96, 53, 1);
}

/* Alternatives */
.alternative-section {
  text-align: center;
}

.btn-show-alternatives {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: rgba(137, 116, 73, 1);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Therapy Type Grid */
.therapy-type-grid {
  margin-top: 1rem;
}

.therapy-group {
  margin-bottom: 1.5rem;
}

.therapy-group h4 {
  color: rgba(137, 116, 73, 1);
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.therapy-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.therapy-option {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-height: 44px;
}

.therapy-option:hover {
  border-color: rgba(137, 116, 73, 1);
  transform: translateY(-2px);
}

.therapy-option .option-name {
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.therapy-option .option-duration {
  font-size: 0.8rem;
  color: rgba(137, 116, 73, 1);
  font-weight: 600;
}

/* Spinner */
.analyzing-spinner {
  text-align: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: rgba(137, 116, 73, 1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step 3: Booking Options */
.booking-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.booking-option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-option-card:hover {
  border-color: rgba(137, 116, 73, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.booking-option-card.selected {
  border-color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.05);
}

.booking-option-card .option-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
}

.booking-option-card .option-content {
  flex: 1;
}

.booking-option-card .option-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: #333;
}

.booking-option-card .option-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.booking-option-card .option-check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-option-card.selected .option-check {
  background: rgba(137, 116, 73, 1);
  border-color: rgba(137, 116, 73, 1);
}

.booking-option-card .check-icon {
  color: white;
  font-weight: bold;
}

/* Therapist Selection */
.therapist-selection {
  margin-top: 1.5rem;
}

.therapist-selection h3 {
  margin-bottom: 1rem;
  color: #333;
}

.therapist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.therapist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.therapist-card:hover {
  border-color: rgba(137, 116, 73, 0.5);
  transform: translateY(-2px);
}

.therapist-card.selected {
  border-color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.05);
}

.therapist-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(137, 116, 73, 0.2),
    rgba(137, 116, 73, 0.4)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.therapist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(137, 116, 73, 1);
}

.therapist-name {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: #333;
}

.therapist-selected-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(137, 116, 73, 1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.no-therapists-message {
  text-align: center;
  padding: 2rem;
  color: #666;
  background: #f9f9f9;
  border-radius: 8px;
}

.loading-therapists {
  text-align: center;
  padding: 3rem;
}

/* Coming Soon Card */
.coming-soon-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.coming-soon-card h3 {
  color: rgba(137, 116, 73, 1);
  margin-bottom: 0.5rem;
}

.coming-soon-card p {
  color: #666;
  margin-bottom: 1rem;
}

.contact-info {
  background: rgba(137, 116, 73, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.booking-summary {
  text-align: left;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  max-width: 400px;
  margin: 0 auto;
}

.booking-summary h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1rem;
}

.booking-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.booking-summary li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.booking-summary li:last-child {
  border-bottom: none;
}

/* Department Badge */
.therapy-department {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  margin-left: 0.5rem;
}

/* ==================== E-Mail-Verifizierung (Step 5) ==================== */

.verification-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.verification-email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.verification-icon {
  font-size: 1.5rem;
}

.verification-email {
  font-weight: 600;
  color: rgba(137, 116, 73, 1);
  word-break: break-all;
}

.btn-send-code {
  background: rgba(137, 116, 73, 1);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.btn-send-code:hover:not(:disabled) {
  background: rgba(117, 96, 53, 1);
}

.btn-send-code:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verification-code-section {
  margin-top: 1.5rem;
}

.code-sent-message {
  color: #28a745;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.code-hint {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.verification-code-input-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.verification-code-input {
  width: 200px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 6px;
  font-family: "Courier New", monospace;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(137, 116, 73, 0.4);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.verification-code-input:focus {
  border-color: rgba(137, 116, 73, 1);
  box-shadow: 0 0 0 3px rgba(137, 116, 73, 0.15);
}

.btn-book {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-resend {
  background: none;
  border: none;
  color: rgba(137, 116, 73, 1);
  font-size: 0.88rem;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0.5rem;
  text-decoration: underline;
  min-height: 44px;
}

.btn-resend:hover:not(:disabled) {
  color: rgba(117, 96, 53, 1);
}

.btn-resend:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Termin-Zusammenfassung in Step 5 */
.booking-summary-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-summary-card h4 {
  margin: 0 0 1rem;
  color: #333;
  font-size: 1rem;
}

/* ==================== Buchung bestätigt (Step 6) ==================== */

.booking-success-card {
  text-align: center;
  padding: 1rem 0;
}

.success-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.booking-success-card h2 {
  color: rgba(137, 116, 73, 1);
  margin-bottom: 0.75rem;
}

.success-message {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.booking-confirmation-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.confirmation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.confirmation-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(137, 116, 73, 1);
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
}

.confirmation-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #888;
  font-size: 0.9rem;
}

.detail-value {
  font-weight: 500;
  color: #333;
  text-align: right;
}

.success-note {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.success-note p {
  margin: 0 0 0.75rem;
  color: #333;
}

.success-note ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #555;
}

.success-note li {
  padding: 0.25rem 0;
}

/* Responsive */
@media (max-width: 600px) {
  .new-patient-wizard {
    padding: 1rem 0.5rem;
  }

  .wizard-header h1 {
    font-size: 1.4rem;
  }

  .wizard-subtitle {
    font-size: 0.9rem;
  }

  .wizard-content {
    padding: 1.25rem 1rem;
    overflow: hidden;
  }

  .wizard-step h2 {
    font-size: 1.2rem;
  }

  .recipe-choice {
    grid-template-columns: 1fr;
  }

  .insurance-options {
    flex-direction: column;
  }

  .option-btn {
    width: 100%;
  }

  .therapist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-option-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }

  .booking-option-card .option-check {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .btn-next {
    width: 100%;
    text-align: center;
  }

  .btn-back {
    width: 100%;
    text-align: center;
  }

  .oidc-login-buttons {
    gap: 0;
  }

  .wizard-progress {
    padding: 0 0.25rem;
  }

  .progress-step .step-label {
    font-size: 0.68rem;
  }

  .progress-step .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .progress-line {
    max-width: 40px;
    margin: 0 0.25rem;
    margin-bottom: 1.2rem;
  }

  .confirmation-details {
    padding: 16px;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .confirmation-note {
    padding: 16px;
  }

  .phone-number {
    font-size: 1.1rem !important;
  }

  .duplicate-warning {
    padding: 1rem;
  }

  .duplicate-warning-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .duplicate-warning-actions .btn-back,
  .duplicate-warning-actions .btn-next {
    width: 100%;
    text-align: center;
  }

  /* Verifizierung Mobile */
  .verification-card {
    padding: 1.25rem;
  }

  .verification-email-display {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1rem;
  }

  .verification-code-input {
    width: 180px;
    font-size: 1.75rem;
    letter-spacing: 4px;
    padding: 0.625rem 0.75rem;
  }

  .booking-summary-card {
    padding: 1rem;
  }

  .detail-value {
    text-align: right;
  }
}

/* ===== Step 4: Patientendaten-Formular ===== */

.patient-data-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  max-width: 100%;
  overflow: hidden;
}

.patient-data-form .form-group {
  max-width: 100%;
  overflow: hidden;
}

.patient-data-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s;
  min-width: 0;
  max-width: 100%;
}

.patient-data-form .form-input:focus {
  outline: none;
  border-color: rgba(137, 116, 73, 1);
}

.patient-data-form .form-input::placeholder {
  color: #aaa;
}

.gender-options {
  display: flex;
  gap: 0.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .flex-1 {
  flex: 1;
}

.form-row .flex-3 {
  flex: 3;
}

.form-row .flex-2 {
  flex: 2;
}

.form-section-label {
  font-weight: 600;
  color: rgba(137, 116, 73, 1);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.required {
  color: #e53935;
}

.validation-error {
  background: #fff3f3;
  border: 1px solid #e53935;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  color: #c62828;
  font-size: 0.9rem;
}

/* Duplikat-Warnung */
.duplicate-warning {
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

.duplicate-warning-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #e65100;
}

.duplicate-warning-icon {
  font-size: 1.3rem;
}

.duplicate-warning-message {
  color: #5d4037;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.duplicate-warning-hint {
  color: #6d4c41;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.duplicate-warning-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Blockierung: Patient existiert bereits (E-Mail stimmt überein) */
.duplicate-warning.duplicate-blocked {
  background: #fce4ec;
  border-color: #c62828;
}

.duplicate-blocked .duplicate-warning-header {
  color: #b71c1c;
}

.duplicate-blocked .duplicate-warning-message {
  color: #4e342e;
}

.duplicate-warning-actions .btn-login-hint {
  background: transparent;
  border: 2px solid rgba(137, 116, 73, 1);
  color: rgba(137, 116, 73, 1);
}

.duplicate-warning-actions .btn-login-hint:hover {
  background: rgba(137, 116, 73, 0.08);
}

/* Patientendaten-Zusammenfassung (Step 5) */
.patient-summary-card {
  background: rgba(137, 116, 73, 0.06);
  border: 1px solid rgba(137, 116, 73, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.patient-summary-card h4 {
  color: rgba(137, 116, 73, 1);
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
}

/* E-Mail Validierungsfehler */
.input-error {
  border-color: #e53935 !important;
}

.field-error {
  color: #c62828;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Responsive: Patientendaten-Formular */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .flex-1,
  .form-row .flex-2,
  .form-row .flex-3 {
    flex: unset;
    width: 100%;
  }

  /* Kompakte Zeilen (Adresse) bleiben nebeneinander */
  .form-row-compact {
    flex-direction: row;
    gap: 0.75rem;
  }

  .form-row-compact .flex-1 {
    flex: 1;
    width: auto;
  }

  .form-row-compact .flex-2 {
    flex: 2;
    width: auto;
  }

  .form-row-compact .flex-3 {
    flex: 3;
    width: auto;
  }

  .gender-options {
    flex-direction: row;
  }

  .gender-options .option-btn {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 0.75rem 0.5rem;
    font-size: 0.88rem;
  }

  .patient-data-form .form-input {
    font-size: 16px; /* Verhindert iOS Zoom beim Fokus */
  }

  .patient-data-form .form-group {
    margin-bottom: 1rem;
  }

  .form-section-label {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
  }
}

/* ===== Availability Page ===== */

.avail-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.avail-icon--sm {
  width: 12px;
  height: 12px;
}

.avail-icon--success {
  color: #1a6e2e;
}

.avail-icon--danger {
  color: #a35d5d;
}

.avail-section {
  margin-bottom: 2rem;
}

.avail-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

/* Bulk Actions */

.avail-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.avail-bulk-btn {
  background: white;
  border: 1px solid rgba(137, 116, 73, 0.35);
  color: rgba(137, 116, 73, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.avail-bulk-btn:hover {
  background: rgba(137, 116, 73, 0.08);
  border-color: rgba(137, 116, 73, 0.6);
}

.avail-bulk-btn-danger {
  color: #cc4444;
  border-color: rgba(204, 68, 68, 0.3);
}

.avail-bulk-btn-danger:hover {
  background: rgba(204, 68, 68, 0.06);
  border-color: rgba(204, 68, 68, 0.5);
}

/* Week Grid */

.avail-week-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.avail-day-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: #fafafa;
  transition: all 0.2s ease;
}

.avail-day-card.available {
  border-color: rgba(137, 116, 73, 0.3);
  background: rgba(137, 116, 73, 0.03);
}

.avail-day-card.unavailable {
  opacity: 0.6;
}

.avail-day-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.avail-day-toggle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.avail-day-toggle.on {
  background: rgba(137, 116, 73, 1);
  border-color: rgba(137, 116, 73, 1);
}

.avail-day-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

/* Preset Buttons */

.avail-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.4rem 2.75rem;
}

.avail-preset-btn {
  background: white;
  border: 1px solid #ddd;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.avail-preset-btn:hover {
  border-color: rgba(137, 116, 73, 0.5);
  color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.04);
}

.avail-preset-btn.active {
  background: rgba(137, 116, 73, 1);
  border-color: rgba(137, 116, 73, 1);
  color: white;
}

.avail-preset-btn-clear {
  color: #999;
  border-color: #e0e0e0;
}

.avail-preset-btn-clear:hover {
  color: #cc4444;
  border-color: rgba(204, 68, 68, 0.4);
  background: rgba(204, 68, 68, 0.04);
}

/* Intervals */

.avail-intervals {
  margin-top: 0.5rem;
  padding-left: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.avail-interval {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.avail-time-input {
  padding: 0.4rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 110px;
  font-family: inherit;
  color: #333;
  background: white;
}

.avail-time-input:focus {
  outline: none;
  border-color: rgba(137, 116, 73, 0.6);
  box-shadow: 0 0 0 2px rgba(137, 116, 73, 0.1);
}

.avail-interval-dash {
  color: #999;
  font-size: 1rem;
}

.avail-interval-remove {
  background: none;
  border: none;
  color: #cc4444;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.avail-interval-remove:hover {
  opacity: 1;
  background: rgba(204, 68, 68, 0.08);
}

.avail-add-interval {
  background: none;
  border: 1px dashed rgba(137, 116, 73, 0.4);
  color: rgba(137, 116, 73, 1);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s ease;
}

.avail-add-interval:hover {
  border-color: rgba(137, 116, 73, 0.7);
  background: rgba(137, 116, 73, 0.05);
}

/* Holiday Presets */

.avail-holiday-presets {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  background: rgba(137, 116, 73, 0.04);
  border: 1px solid rgba(137, 116, 73, 0.15);
  border-radius: 12px;
}

.avail-holiday-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
}

.avail-holiday-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.avail-holiday-chip {
  background: white;
  border: 1px solid rgba(137, 116, 73, 0.3);
  color: rgba(137, 116, 73, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.avail-holiday-chip:hover {
  background: rgba(137, 116, 73, 0.1);
  border-color: rgba(137, 116, 73, 0.5);
}

/* Unavailable Ranges */

.avail-ranges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.avail-no-ranges {
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.5rem 0;
}

.avail-range-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  background: #fafafa;
}

.avail-range-dates {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.avail-range-field {
  flex: 1;
}

.avail-range-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
}

.avail-date-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background: white;
  box-sizing: border-box;
}

.avail-date-input:focus {
  outline: none;
  border-color: rgba(137, 116, 73, 0.6);
  box-shadow: 0 0 0 2px rgba(137, 116, 73, 0.1);
}

.avail-range-remove {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #cc4444;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.avail-range-remove:hover {
  opacity: 1;
}

.avail-add-range {
  margin-top: 0.75rem;
  background: none;
  border: 1px dashed rgba(137, 116, 73, 0.4);
  color: rgba(137, 116, 73, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s ease;
}

.avail-add-range:hover {
  border-color: rgba(137, 116, 73, 0.7);
  background: rgba(137, 116, 73, 0.05);
}

/* Success Banner */
.success-banner {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #1a6e2e;
}

/* ===== Mobile: Availability ===== */
@media (max-width: 600px) {
  .avail-bulk-actions {
    gap: 0.35rem;
  }

  .avail-bulk-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .avail-presets {
    padding-left: 0;
    margin-left: 0;
  }

  .avail-preset-btn {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .avail-intervals {
    padding-left: 0;
    margin-top: 0.5rem;
  }

  .avail-interval {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .avail-time-input {
    width: 100px;
    font-size: 16px;
  }

  .avail-range-dates {
    flex-direction: column;
    gap: 0.5rem;
  }

  .avail-date-input {
    font-size: 16px;
  }

  .avail-holiday-chips {
    gap: 0.3rem;
  }

  .avail-holiday-chip {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
  }
}

/* ===== Terminserie-Karten (Dashboard) ===== */

.series-section {
  margin-bottom: 2rem;
}

.series-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1rem 0;
}

.series-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.series-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.series-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.series-info {
  margin-bottom: 1rem;
}

.series-therapy-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.25rem 0;
}

.series-department {
  font-size: 0.9rem;
  color: rgba(137, 116, 73, 1);
  font-weight: 500;
  margin: 0 0 0.15rem 0;
}

.series-therapist {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.15rem 0;
}

.series-diagnoses {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  font-style: italic;
}

.series-progress {
  margin-bottom: 1rem;
}

.series-progress-bar {
  width: 100%;
  height: 8px;
  background: #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.series-progress-fill {
  height: 100%;
  background: rgba(137, 116, 73, 1);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.series-progress-text {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.series-remaining {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(137, 116, 73, 1);
  margin: 0 0 0.75rem 0;
}

.series-completed-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4caf50;
  margin: 0 0 0.75rem 0;
}

.series-card.fully-booked {
  opacity: 0.75;
  border-color: #e8e8e8;
}

.series-action {
  display: flex;
  justify-content: flex-end;
}

.btn-book-series {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.2rem;
  background: rgba(137, 116, 73, 1);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.btn-book-series:hover {
  background: rgba(117, 96, 53, 1);
  transform: translateY(-1px);
}

.btn-book-series:active {
  transform: translateY(0);
}

/* ===== Episode Info Banner (Booking Wizard) ===== */

.episode-info-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(137, 116, 73, 0.08);
  border: 1px solid rgba(137, 116, 73, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.episode-info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.episode-info-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.episode-info-content strong {
  font-size: 0.95rem;
  color: #333;
}

.episode-info-content span {
  font-size: 0.85rem;
  color: #666;
}

/* ===== Mobile Responsive - Terminserie ===== */

@media (max-width: 480px) {
  .series-card {
    padding: 1rem;
  }

  .series-therapy-name {
    font-size: 1rem;
  }

  .btn-book-series {
    width: 100%;
    justify-content: center;
    padding: 0.7rem;
  }

  .episode-info-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================
   EPISODE DETAIL PAGE - SLOTS
   =================================== */

.episode-progress-section {
  padding: 0 1.5rem;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slot-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.slot-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.slot-card.slot-booked {
  border-left: 4px solid rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.03);
}

.slot-card.slot-completed {
  border-left: 4px solid #22c55e;
  background: rgba(34, 197, 94, 0.03);
}

.slot-card.slot-reserved {
  border-left: 4px solid #a855f7;
  background: rgba(168, 85, 247, 0.03);
}

.slot-card.slot-free {
  border-left: 4px solid #e5e7eb;
}

.slot-card.slot-skipped,
.slot-card.slot-waiting {
  border-left: 4px solid #d1d5db;
  opacity: 0.7;
}

/* Slot-Nummer-Badge */
.slot-number {
  flex-shrink: 0;
}

.slot-number-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  background: #f3f4f6;
  color: #6b7280;
}

.slot-number-badge.badge-booked {
  background: rgba(137, 116, 73, 0.15);
  color: rgba(137, 116, 73, 1);
}

.slot-number-badge.badge-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.slot-number-badge.badge-reserved {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

.slot-number-badge.badge-free {
  background: #f3f4f6;
  color: #6b7280;
}

/* Slot Details */
.slot-details {
  flex: 1;
  min-width: 0;
}

.slot-status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.slot-status-label.booked {
  color: rgba(137, 116, 73, 1);
}
.slot-status-label.completed {
  color: #16a34a;
}
.slot-status-label.reserved {
  color: #9333ea;
}
.slot-status-label.free {
  color: #6b7280;
}
.slot-status-label.skipped {
  color: #9ca3af;
}
.slot-status-label.waiting {
  color: #f59e0b;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.booked {
  background: rgba(137, 116, 73, 1);
}
.status-dot.completed {
  background: #22c55e;
}
.status-dot.reserved {
  background: #a855f7;
}
.status-dot.free {
  background: #d1d5db;
}
.status-dot.skipped {
  background: #d1d5db;
}
.status-dot.waiting {
  background: #f59e0b;
}

.slot-appointment-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #374151;
}

.slot-appointment-info i {
  color: #9ca3af;
  width: 18px;
  text-align: center;
  margin-right: 0.4rem;
}

.slot-datetime {
  font-weight: 500;
}

.slot-therapist {
  color: #6b7280;
}

.slot-date-range {
  font-size: 0.85rem;
  color: #9ca3af;
}

.slot-proposal {
  font-size: 0.85rem;
  color: rgba(137, 116, 73, 0.8);
  margin-top: 0.25rem;
}

.slot-proposal i {
  color: rgba(137, 116, 73, 0.6);
  margin-right: 0.3rem;
}

.slot-reserved-note {
  font-size: 0.8rem;
  color: #9333ea;
  font-style: italic;
  margin-top: 0.25rem;
}

/* Proposed Slot (automatisch vorgeschlagen, noch nicht gebucht) */
.slot-card.slot-proposed {
  border-left: 4px solid #3b82f6;
  background: rgba(59, 130, 246, 0.03);
}

.slot-number-badge.badge-proposed {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.slot-status-label.proposed {
  color: #2563eb;
}

.status-dot.proposed {
  background: #3b82f6;
}

.slot-proposed-note {
  font-size: 0.8rem;
  color: #3b82f6;
  font-style: italic;
  margin-top: 0.25rem;
}

.slot-waiting-note {
  font-size: 0.8rem;
  color: #f59e0b;
  font-style: italic;
  margin-top: 0.25rem;
}

/* Reject Proposal Button */
.btn-reject-proposal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}

.btn-reject-proposal:hover {
  background: #fef2f2;
  border-color: #ef4444;
}

.btn-reject-proposal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Alternative Button */
.btn-alternative {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: #6366f1;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}

.btn-alternative:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #6366f1;
}

.btn-alternative:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Remove from Waitinglist Button */
.btn-remove-waitinglist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  background: transparent;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}

.btn-remove-waitinglist:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #ef4444;
}

.btn-remove-waitinglist:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Slot action row for Warteliste button on its own line */
.slot-action-row {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

.scheduling-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.scheduling-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.scheduling-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Slot Action Button */
.slot-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-book-slot {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(137, 116, 73, 1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  min-height: 36px;
  box-sizing: border-box;
}

.btn-book-slot:hover {
  background: rgba(117, 96, 53, 1);
  color: white;
}

.slot-cancel-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  font-style: italic;
  white-space: nowrap;
}

/* Accept Proposal Button */
.btn-accept-proposal {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(137, 116, 73, 1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 36px;
  box-sizing: border-box;
}

.btn-accept-proposal:hover {
  background: rgba(117, 96, 53, 1);
}

.btn-accept-proposal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Slot Action Buttons */
.slot-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
  width: 180px;
}

.slot-action-buttons .therapist-select,
.slot-action-buttons .btn-book-slot,
.slot-action-buttons .btn-accept-proposal {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  justify-content: center;
}

.slot-generating-hint {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: #8a8a8a;
  margin-top: 4px;
}

.slot-generating-hint .spinner-small {
  border: 2px solid #e0e0e0;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.slot-suggestion-clickable {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 6px;
  padding: 0.45rem 0.75rem;
  background: rgba(139, 117, 73, 0.08);
  border: 1px dashed rgba(139, 117, 73, 0.35);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #8b7549;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-suggestion-clickable:hover {
  background: rgba(139, 117, 73, 0.16);
  border-color: #8b7549;
  box-shadow: 0 1px 4px rgba(139, 117, 73, 0.15);
}

.slot-suggestion-clickable .suggestion-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8b7549;
  margin-right: 0.25rem;
}

.slot-suggestion-clickable .suggestion-therapist {
  color: #6b5a3a;
  font-weight: 500;
}

.slot-no-suggestion-hint {
  font-size: 0.78rem;
  color: #b0946a;
  margin-top: 4px;
  font-style: italic;
}

.btn-waitinglist {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(139, 117, 73, 0.3);
  background: rgba(139, 117, 73, 0.06);
  color: #8b7549;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-waitinglist:hover:not(:disabled) {
  background: rgba(139, 117, 73, 0.14);
  border-color: #8b7549;
}

.btn-waitinglist:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-waitinglist-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  margin-top: 0.75rem;
  border: 1.5px solid rgba(139, 117, 73, 0.4);
  background: rgba(139, 117, 73, 0.08);
  color: #8b7549;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-waitinglist-panel:hover {
  background: rgba(139, 117, 73, 0.18);
  border-color: #8b7549;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 117, 73, 0.15);
}

.mobile-waitinglist-hint {
  text-align: center;
  padding: 0.5rem 0;
}

/* Booking Success/Error Banners */
.booking-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #22c55e;
  font-size: 0.9rem;
}

.booking-error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 0.9rem;
}

.banner-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
}

.banner-close:hover {
  opacity: 1;
}

/* Terminserie-Badge im Dashboard */
.appointment-series-badge {
  margin-top: 0.25rem;
}

.series-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(137, 116, 73, 1);
  background: rgba(137, 116, 73, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ===== Responsive: Episode Detail (Tablet) ===== */
@media (max-width: 768px) {
  .episode-progress-section {
    padding: 0 1rem;
  }

  .appointments-section {
    padding: 0 0.5rem;
  }

  .slot-card {
    flex-wrap: wrap;
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .slot-number-badge {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .slot-action {
    width: 100%;
    margin-top: 0.25rem;
  }

  .slot-action-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.4rem;
  }

  .slot-action-buttons .therapist-select,
  .slot-action-buttons .btn-book-slot,
  .slot-action-buttons .btn-accept-proposal {
    flex: 1;
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .btn-book-slot {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .slot-cancel-hint {
    text-align: center;
    display: block;
    width: 100%;
  }
}

/* ===== Responsive: Episode Detail (Smartphone) ===== */
@media (max-width: 480px) {
  .dashboard-title {
    font-size: 1.1rem;
  }

  .dashboard-subtitle {
    font-size: 0.8rem;
  }

  .episode-progress-section {
    padding: 0 0.75rem;
  }

  .slot-card {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .slot-appointment-info {
    font-size: 0.82rem;
  }

  .slot-date-range {
    font-size: 0.78rem;
  }

  .slot-proposal {
    font-size: 0.78rem;
  }

  .slot-status-label {
    font-size: 0.72rem;
  }

  .cancel-popup {
    margin: 0.25rem;
    padding: 1rem;
  }

  .cancel-popup-header h2 {
    font-size: 1.1rem;
  }

  .cancel-appointment-info .detail-row {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .section-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-calendar-export {
    align-self: stretch;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }

  .cancel-reason-options {
    gap: 0.375rem;
  }

  .cancel-reason-chip {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .late-cancellation-warning {
    padding: 0.75rem;
  }

  .late-cancellation-text p {
    font-size: 0.8rem;
  }

  .wizard-actions {
    padding: 1rem !important;
  }
}

/* Therapeut-Auswahl Dropdown im Slot */
.therapist-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  appearance: auto;
  -webkit-appearance: auto;
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-height: 36px;
  box-sizing: border-box;
}

.therapist-select:focus {
  outline: none;
  border-color: rgba(137, 116, 73, 0.5);
  box-shadow: 0 0 0 3px rgba(137, 116, 73, 0.1);
}

/* ===================================
   GLOBAL MOBILE TOUCH OPTIMIZATIONS
   =================================== */

/* Prevent iOS zoom on input focus (requires 16px minimum) */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Ensure all interactive elements have minimum touch target */
  button,
  a,
  select,
  input[type="submit"] {
    min-height: 44px;
  }

  /* Improve tap highlighting */
  button,
  a {
    -webkit-tap-highlight-color: rgba(137, 116, 73, 0.1);
  }

  /* Smooth scrolling for all pages */
  .dashboard-page {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   NAME DISPLAY UTILITIES
   Namen werden lowercase in der DB gespeichert
   und hier per CSS kapitalisiert angezeigt.
   ============================================ */

/* Capitalize: Jeden Wortanfang groß (Title Case) - für Personennamen */
.name-display,
.patient-name,
.therapist-name {
  text-transform: capitalize;
}

/* Für Inline-Nutzung bei einzelnen Namen */
.text-capitalize {
  text-transform: capitalize;
}

/* Capitalize für Input-Felder (Namen, Adressen) */
.capitalize-input,
.capitalize-input input {
  text-transform: capitalize !important;
}

/* ============================================
   SHARED AVAILABILITY PANEL STYLES
   Gemeinsame Styles für Therapist- und 
   DepartmentAvailabilityPanel
   ============================================ */

/* Dezente Scrollbar für Availability Panels */
.availability-panel,
.dept-availability-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.availability-panel::-webkit-scrollbar,
.dept-availability-panel::-webkit-scrollbar {
  width: 6px;
}

.availability-panel::-webkit-scrollbar-track,
.dept-availability-panel::-webkit-scrollbar-track {
  background: transparent;
}

.availability-panel::-webkit-scrollbar-thumb,
.dept-availability-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.availability-panel::-webkit-scrollbar-thumb:hover,
.dept-availability-panel::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

/* Gemeinsame Sticky Footer Confirmation Styles */
.slot-confirmation,
.dept-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-radius: 0 0 16px 16px;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.confirmation-info,
.dept-confirmation-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #333;
}

.confirmation-icon,
.dept-confirmation-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn-confirm-slot,
.btn-dept-confirm {
  padding: 12px 24px;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  min-height: 44px;
}

/* Mobile responsive für Sticky Footer */
@media (max-width: 768px) {
  .slot-confirmation,
  .dept-confirmation {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }

  .btn-confirm-slot,
  .btn-dept-confirm {
    width: 100%;
  }
}

/* ===== Select Patient Page ===== */

.select-patient-page {
  max-width: 500px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.select-patient-header {
  text-align: center;
  margin-bottom: 2rem;
}

.select-patient-header h1 {
  color: rgba(137, 116, 73, 1);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.select-patient-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.patient-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.patient-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 2px solid #e8e0d0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}

.patient-card:hover {
  border-color: rgba(137, 116, 73, 1);
  box-shadow: 0 4px 15px rgba(137, 116, 73, 0.15);
  transform: translateY(-2px);
}

.patient-card:active {
  transform: translateY(0);
}

.patient-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(137, 116, 73, 0.12);
  color: rgba(137, 116, 73, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.patient-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.patient-card-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #333;
  text-transform: capitalize;
}

.patient-card-badge {
  font-size: 0.75rem;
  color: rgba(137, 116, 73, 0.8);
  margin-top: 0.15rem;
}

.patient-card-arrow {
  font-size: 1.3rem;
  color: #ccc;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.patient-card:hover .patient-card-arrow {
  color: rgba(137, 116, 73, 1);
}
