@import url('./header.css');
@import url('./buttons.css');
@import url('./forms.css');
@import url('./cards.css');
@import url('./modals.css');
@import url('./tables.css');



.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}


.card-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-700);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 5px;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--rose-900);
}

.card-desc {
  font-size: 0.85rem;
  color: #666;
}

.action-btn i,
.action-btn svg {
  display: inline-flex;
}

/* Status Badges */










.st-rescheduled {
  background: #eef2ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.date-badge,
.time-badge,
.customer-link,
.customer-meta,








.customer-link:hover {
  text-decoration: underline;
  color: var(--rose-700);
}

.customer-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

@media (max-width: 900px) {


  .customer-meta {
    justify-content: flex-end;
  }
}


.logout-link {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 700;
  text-align: center;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  /* Wirkt moderner und kompakter */
}

.sub-text {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 45px;
  font-size: 1.05rem;
}

/* Customer Grid für Buchungen */
.customer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
}

.service-name {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
  font-weight: 400;
  display: block;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.service-price {
  font-weight: 700;
  color: var(--accent);
}

/* Kalender Styling - Clean & Modern */
.calendar-wrapper {
  background: #ffffff;
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-card, 32px);
  padding: 25px;
  animation: fadeIn 0.4s ease;
}

#cal-info {
  flex: 1;
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
}

.date-card {
  border: 1px solid rgba(190, 18, 60, 0.1);
  border-radius: var(--radius-input, 16px);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.75);
}

.date-card:hover {
  background: white;
  border-color: var(--rose-300);
  box-shadow: 0 0 0 4px rgba(253, 164, 175, 0.2);
}

.date-card.open {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(190, 18, 60, 0.15);
}

.date-card.open .date-header {
  border-bottom: 1px solid rgba(190, 18, 60, 0.1);
}

.cal-arrow svg {
  transition: transform 0.3s ease;
}

.date-card.open .cal-arrow svg {
  transform: rotate(180deg);
}

.date-slots {
  display: none;
  padding: 15px;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #fdf8f9;
  /* Sehr zartes Rosa als Kontrast zum Header */
}

.date-card.open .date-slots {
  display: grid;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.slot-btn {
  background: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  color: var(--text-main);
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(190, 18, 60, 0.08);
  color: var(--accent);
}

.slot-btn.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(190, 18, 60, 0.3);
}

/* Summary Box */
.summary-box {
  background: linear-gradient(145deg, #fff1f2 0%, #fef2f4 100%);
  border: 1px solid var(--rose-200);
  border-radius: var(--radius-input);
  padding: 30px;
  display: none;
  margin-bottom: 35px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.summary-row.total {
  margin-top: 15px;
  padding-top: 18px;
  border-top: 1px dashed rgba(190, 18, 60, 0.2);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

/* Internal Toggle / Switch (Modernisiert) */
.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  margin-right: 15px;
  flex-shrink: 0;
  display: inline-flex;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e2e8f0;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Blocker Container */
.blocker-container {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--rose-200);
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.blocker-container:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Occupied Slot (Intern) */
.slot-btn.occupied {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px dashed #fecaca !important;
  opacity: 0.8;
  cursor: not-allowed;
  box-shadow: none;
}

.slot-btn.occupied:hover {
  transform: none;
}

/* Animations & Mobile */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {

  .customer-grid {
    grid-template-columns: 1fr;
  }

  /* Die Haupt-Überschrift darf auf dem Handy nicht erschlagen */
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.2;
    margin-bottom: 10px;
  }


  .date-slots {
    padding: 12px 8px !important;
    gap: 6px !important;
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .sub-text {
    font-size: 0.95rem !important;
    padding: 0 10px;
    margin-bottom: 35px;
    line-height: 1.5;
  }

  /* Die Karten für Leistungen */
  .service-name {
    font-size: 1rem !important;
    line-height: 1.4;
    font-weight: 600;
  }

  .service-meta span {
    font-size: 0.8rem !important;
  }

  /* Kalender-Info "Woche ab" */
  #cal-info {
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.3 !important;
  }

  /* Termin-Buttons */
  .slot-btn {
    font-size: 0.8rem !important;
    padding: 8px 2px !important;
  }
}

@media (max-width: 680px) {


  /* Zentriert das Datum und gibt dem Umbruch Platz */
  #cal-info {
    text-align: center;
    line-height: 1.4;
    font-size: 1.05rem;
  }
}



/* MODAL */
/* ANZAHLUNG MODAL STYLE */

/* IBAN Style (Kein Link!) */
.iban-display {
  display: block;
  font-family: monospace;
  letter-spacing: 1px;
  white-space: nowrap;
  font-weight: 700;
  pointer-events: none;
  color: var(--text-main, #4c0519);
}

.deposit-info {
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 15px;
  border-radius: 10px;
  text-align: left;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #9a3412;
}

.deposit-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.deposit-ref {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #be123c;
  text-align: center;
  border: 1px dashed #fdba74;
  padding: 10px;
  background: white;
  border-radius: 8px;
  letter-spacing: 1px;
}

/* NEU: Liste für betroffene Services */
#depositList {
  text-align: left;
  margin: 10px 0 20px 0;
  padding-left: 20px;
  color: #4c0519;
  font-size: 0.9rem;
}

#depositList li {
  margin-bottom: 3px;
}

/* =========================================
   Modal Styles (cancel, reschedule, info) 
   ========================================= */
/* Zusätzliche Styles für Info-Boxen im Modal (Glassmorphism) */
.override-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(190, 18, 60, 0.1);
  padding: 16px 20px;
  border-radius: 16px;
  text-align: left;
  margin-bottom: 25px;
  color: var(--rose-900);
  font-size: 0.95rem;
}

/* Deposit Description Text */
.deposit-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.5;
}

/* Highlight percentage in deposit description */
.deposit-amount-highlight {
  color: #be123c;
  font-weight: 700;
}

/* Deposit Footer Text */
.deposit-footer-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 15px;
  line-height: 1.6;
}




/* ========================================================================
   MIGRATED COMPONENTS FROM BACKUP
   ======================================================================== */
.action-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 20px 40px -10px rgba(190, 18, 60, 0.15);
}

.action-card.highlight {
  background: linear-gradient(135deg, white 0%, #fff1f2 100%);
  border-color: var(--rose-200);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--rose-900);
  font-weight: 700;
}

/* Content Styling */
.date-badge {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.time-badge {
  color: #666;
  font-size: 0.85rem;
}

.customer-link {
  font-weight: 600;
  color: var(--rose-900);
  text-decoration: none;
  font-size: 1rem;
}

.customer-link:hover {
  text-decoration: underline;
  color: var(--rose-700);
}

.customer-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.price {
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* Badges */
.status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.st-booked {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.st-confirmed {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.st-completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.st-cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.source-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: inline-block;
}

.src-manual {
  background: #fdf2f8;
  color: #be123c;
  border: 1px solid #fbcfe8;
}

.src-online {
  background: #e0f2fe;
  color: #0369a1;
}

/* Action Buttons */
.action-group {
  display: flex;
  gap: 5px;
  align-items: center;
}

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.action-btn:hover {
  border-color: var(--rose-300);
  color: var(--rose-700);
  transform: scale(1.05);
}

@media (max-width: 900px) {


  /* Quelle Badge anpassen (sollte im dunklen Header gut aussehen) */
  .source-badge {
    margin: 0;
    order: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Mehr Schatten für Kontrast */
  }

  .customer-link {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .customer-meta {
    justify-content: flex-end;
    width: 100%;
  }

  .action-group {
    justify-content: flex-end;
    width: 100%;
  }

  .price {
    font-size: 1.2rem;
    color: var(--rose-900);
  }

  /* --- FIX FÜR LEISTUNGEN --- */
  /* Überschreibt das max-width:250px aus dem HTML */
  .cell-services {
    max-width: none !important;
    width: 100%;
    text-align: right;
  }
}


/* ==========================================================================
   INTERNAL BOOKING & GLOBAL FORM UI CSS
   ========================================================================== */

/* Premium Page Title Sektion */
.page-heading {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 8px; /* Näher an den Intro-Text ran */
  letter-spacing: -0.01em;
  /* Edles Text-Gradient */
  background: linear-gradient(135deg, var(--rose-900, #4c0519) 0%, var(--rose-600, #e11d48) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback */
}

/* Neuer eleganter Intro-Text */
.intro-text {
  text-align: center;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 400;
  color: #64748b; /* Edles Schiefergrau */
  margin-bottom: 35px;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 15px;
}

/* Subtile Unterstreichung für den High-End Look */
.intro-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-300, #fda4af), transparent);
  border-radius: 2px;
}




/* --- DASHBOARD STYLES (MIGRATED FROM ADMIN.CSS) --- */


/* --- DASHBOARD GRID --- */
.menu-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--rose-900);
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
  opacity: 0.7;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.action-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 20px 40px -10px rgba(190, 18, 60, 0.15);
}

.action-card.highlight {
  background: linear-gradient(135deg, white 0%, #fff1f2 100%);
  border-color: var(--rose-200);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rose-700);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 5px;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--rose-900);
}

.card-desc {
  font-size: 0.85rem;
  color: #666;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--rose-900);
  font-weight: 700;
}

/* Content Styling */
.date-badge {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.time-badge {
  color: #666;
  font-size: 0.85rem;
}

.customer-link {
  font-weight: 600;
  color: var(--rose-900);
  text-decoration: none;
  font-size: 1rem;
}

.customer-link:hover {
  text-decoration: underline;
  color: var(--rose-700);
}

.customer-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.price {
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* Badges */
.status-badge {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.st-booked {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.st-confirmed {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.st-completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.st-cancelled {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.st-rescheduled {
  background: #eef2ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* --- SOURCE BADGES (Intern / Online) --- */
.source-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  /* Modernes, leicht eckiges Design */
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  /* Sorgt für schönen Abstand zum Datum */
}

.src-manual {
  background: #f8fafc;
  /* Edles, sehr helles Schiefergrau */
  color: #475569;
  border: 1px solid #e2e8f0;
}

.src-online {
  background: #f0f9ff;
  /* Eisblau für Online-Buchungen */
  color: #0284c7;
  border: 1px solid #bae6fd;
}

/* Action Buttons */
.action-group {
  display: flex;
  gap: 5px;
  align-items: center;
}

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.action-btn:hover {
  border-color: var(--rose-300);
  color: var(--rose-700);
  transform: scale(1.05);
}

/* Pagination */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.page-link {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--rose-900);
  text-decoration: none;
}

.page-link.active {
  background: var(--rose-900);
  color: white;
}

/* Telefon-Link Styling */
.phone-link {
  color: #64748b !important;
  /* Schönes Schiefergrau */
  text-decoration: none !important;
  font-family: inherit;
}

/* Verhindert automatisches Blau auf iPhones/Android */
a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--rose-700);
  /* Highlight-Farbe beim Drüberfahren */
  text-decoration: underline;
}

/* --- KUNDENNAME WRAPPER --- */
.customer-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  /* Auf dem Desktop schön linksbündig */
}

@media (max-width: 768px) {



  .action-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {


  /* Quelle Badge anpassen (sollte im dunklen Header gut aussehen) */
  .source-badge {
    margin: 0;
    order: 2;
    background: rgba(255,
        255,
        255,
        0.15) !important;
    /* Halbtransparentes Weiß */
    color: #ffffff !important;
    /* Weißer Text */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Zarter, weißer Rand */
    backdrop-filter: blur(5px);
    /* Leichter Glas-Effekt */
    box-shadow: none;
    border-radius: 50px;
    /* Auf dem Handy als schicke, runde Pille */
  }

  .customer-link {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
  }

  .customer-meta {
    justify-content: flex-end;
    width: 100%;
  }

  .action-group {
    justify-content: flex-end;
    width: 100%;
  }

  .customer-name-wrapper {
    justify-content: flex-end;
    /* Auf dem Handy wieder rechtsbündig */
    width: 100%;
  }
}



/* --- UTILITY CLASSES --- */
.d-inline-m-0 {
  display: inline;
  margin: 0;
}

.text-orange-alert {
  color: #ea580c;
  display: flex;
  align-items: center;
}

.text-green-alert {
  color: #166534;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
}

.cell-services {
  max-width: 250px;
  line-height: 1.4;
  font-size: 0.85rem;
  color: #64748b;
}

.empty-action {
  color: #cbd5e1;
  font-size: 0.8rem;
  padding-left: 10px;
}

/* GLOBAL PAGE TITLE */
.page-title {
  text-align: center;
  margin-bottom: 30px;
}

.service-badges-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: none;
  justify-content: flex-end;
}

@keyframes slideInAuth {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FLOATING RECEIPT SUMMARY UI
   ========================================================================== */
.summary-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(190, 18, 60, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  overflow: hidden;
  margin-top: 20px;
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.receipt-head {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  padding: 20px;
  border-bottom: 1px dashed rgba(190, 18, 60, 0.2);
  background: rgba(255, 255, 255, 0.5);
}

.receipt-body {
  padding: 20px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-main);
  border-top: 1px dashed rgba(190, 18, 60, 0.2);
}

.receipt-line:first-child {
  border-top: none;
  padding-top: 0;
}

.receipt-line span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.receipt-footer {
  padding: 20px;
  background: rgba(190, 18, 60, 0.03);
  border-top: 2px dashed rgba(190, 18, 60, 0.3);
  position: relative;
}

.receipt-footer::before,
.receipt-footer::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  background: var(--bg-body, #fff1f2);
  border-radius: 50%;
}

.receipt-footer::before {
  left: -12px;
  box-shadow: inset -1px 0 0 rgba(190, 18, 60, 0.15);
}

.receipt-footer::after {
  right: -12px;
  box-shadow: inset 1px 0 0 rgba(190, 18, 60, 0.15);
}

.receipt-line.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--rose-900);
  border-top: none;
  padding: 0;
}

.receipt-line.total span:last-child {
  font-size: 1.3rem;
  color: var(--rose-900);
}


/* ========================================= */
/* APPOINTMENT TIMELINE (RESCHEDULE HISTORY) */
/* ========================================= */
.appointment-timeline {
  position: relative;
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.appointment-timeline::before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 7px;
  width: 1px;
  border-left: 1px dashed var(--accent);
  z-index: 1;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 15px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -20px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: 2;
}

.timeline-icon svg {
  width: 12px;
  height: 12px;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-details {
  font-size: 0.9rem;
  color: var(--text-main);
}

.timeline-item.original .timeline-icon {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--surface-alt);
}
/* --- GLOBAL ALERTS (Unified Premium Design) --- */
.alert {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  font-family: var(--font-main), sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(136, 19, 55, 0.04);
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  gap: 12px;
  animation: alertSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.alert-success {
  background: rgba(220, 252, 231, 0.6) !important;
  color: #14532d !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
}

.alert-error {
  background: rgba(254, 226, 226, 0.65) !important;
  color: #7f1d1d !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.alert-icon-svg {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.alert.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

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

/* --- iOS Safari Cursor & Autofill Fixes --- */
.input-group .input-field {
    text-align: left !important;
    direction: ltr !important;
    text-indent: 0 !important;
}

.input-group .input-field::placeholder {
    color: transparent !important;
    opacity: 0 !important;
    width: 0 !important;
    display: inline-block;
    text-indent: -9999px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: -10px !important;
}

.input-group .input-field:not(.has-icon-left) {
    padding-left: 20px !important;
    text-align: left !important;
    text-indent: 0 !important;
}

.input-group .input-field.has-icon-left {
    padding-left: 50px !important;
}
.input-group .input-field:-webkit-autofill,
.input-group .input-field:-webkit-autofill:hover,
.input-group .input-field:-webkit-autofill:focus,
.input-group .input-field:-webkit-autofill:active {
    -webkit-text-fill-color: var(--rose-900) !important;
    transition: background-color 5000s ease-in-out 0s;
    text-align: left !important;
    text-indent: 0px !important;
}

.input-group .input-field:-webkit-autofill:not(.has-icon-left),
.input-group .input-field:-webkit-autofill:hover:not(.has-icon-left),
.input-group .input-field:-webkit-autofill:focus:not(.has-icon-left),
.input-group .input-field:-webkit-autofill:active:not(.has-icon-left) {
    padding-left: 20px !important;
}

.input-group .input-field:-webkit-autofill.has-icon-left,
.input-group .input-field:-webkit-autofill:hover.has-icon-left,
.input-group .input-field:-webkit-autofill:focus.has-icon-left,
.input-group .input-field:-webkit-autofill:active.has-icon-left {
    padding-left: 50px !important;
}

/* Speziell für die Animation: Wenn das Label durch Autofill oben schwebt, muss das Feld links clean bleiben */
.input-group .input-field:-webkit-autofill + .input-label {
    top: 0 !important;
    font-size: 0.75rem !important;
    background: var(--bg-card, #ffffff) !important;
    padding: 0 5px !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
    left: 20px !important;
}
.input-group .input-label {
    pointer-events: none !important;
    z-index: 5 !important;
}

.input-group .input-field::-webkit-contacts-auto-fill-button,
.input-group .input-field::-webkit-credentials-auto-fill-button,
.input-group .input-field::-webkit-strong-password-auto-fill-button {
    position: absolute !important;
    right: 15px !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- WELCOME BANNER (Dashboard Style) --- */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.welcome-text {
    text-align: left;
}

.welcome-section h1 {
    margin: 0 0 10px 0;
    font-size: 3rem;
    line-height: 1.1;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-main, #4c0519);
}

.welcome-section h1 br {
    display: block;
}

.gradient-text {
    background: var(--accent-gradient, linear-gradient(135deg, #be123c 0%, #fda4af 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.welcome-section p {
    color: var(--text-muted, #64748b);
    font-size: 1.1rem;
    margin: 0;
    font-family: var(--font-main);
}
