@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ══════════════════════════════════════════════════════════════
   KUAFORY — Müşteri Portalı Teması
   Doğal & Soft: Krem, Adaçayı Yeşili, Toprak Tonları
   base.css değişkenlerini tamamen ezer — HTML'de link'i
   base.css → customer.css olarak değiştirmek yeterli.
══════════════════════════════════════════════════════════════ */

:root {
  /* ── Arka planlar (eskiden karanlık, artık krem/beyaz) ── */
  --black:        #F3EFE6;       /* body arka planı — sıcak keten */
  --dark:         #FFFFFF;       /* kart yüzeyi */
  --dark-2:       #F8F5EF;       /* input arka planı */
  --dark-3:       #EDE8DE;       /* odaklanmış input */
  --border:       #DDD7CA;       /* sınır çizgisi */

  /* ── Aksan: altın → adaçayı yeşili ── */
  --gold:         #5B7E4A;
  --gold-light:   #7BA068;
  --gold-dim:     rgba(91, 126, 74, 0.11);

  /* ── Metin (eskiden beyaz, artık koyu kahve) ── */
  --white:        #2C2820;
  --white-dim:    rgba(44, 40, 32, 0.52);
  --white-faint:  rgba(44, 40, 32, 0.05);

  /* ── Durum renkleri ── */
  --error:        #B84040;
  --success:      #3D7040;

  /* ── Tipografi (aynı kalıyor) ── */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  /* ── Köşe & Gölge ── */
  --radius:       7px;
  --radius-lg:    14px;
  --shadow:       0 2px 16px rgba(80, 65, 40, 0.10), 0 1px 4px rgba(80, 65, 40, 0.06);
  --transition:   all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Temel sıfırlama ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sayfa üzerinde ince botanik doku hissi */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(91,126,74,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 85%, rgba(139,115,85,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; transition: var(--transition); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  background: var(--dark-2);
  border: 1.5px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px var(--gold-dim);
}
input::placeholder { color: var(--white-dim); }

/* ── Butonlar ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Ana aksan butonu: adaçayı yeşili */
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(91,126,74,0.25);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91,126,74,0.30);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.btn-ghost {
  background: var(--white-faint);
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: rgba(44,40,32,0.08); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-full { width: 100%; }

/* ── Kartlar ── */
.card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ── Form ── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 0.25rem; display: none; }
.form-error.show { display: block; }


.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; line-height: 1.55; display: none; }
.alert.show { display: block; }
.alert-error   { background: rgba(180,40,40,0.13);  border: 2px solid rgba(180,40,40,0.55);  color: #b52b2b; }
.alert-success { background: rgba(30,110,55,0.13);  border: 2px solid rgba(30,110,55,0.55);  color: #1e6e37; }
.alert-warning { background: rgba(160,100,0,0.12);  border: 2px solid rgba(160,100,0,0.5);   color: #9a6700; }
/* ── Loading spinner ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ── */
.divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--white-dim); font-size: 0.8rem;
  margin: 1.25rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pending  { background: rgba(91,126,74,0.14);  color: #4a6b3a; }
.badge-approved { background: rgba(61,112,64,0.13);  color: #316135; }
.badge-rejected { background: rgba(184,64,64,0.12);  color: var(--error); }
.badge-expired  { background: rgba(44,40,32,0.07);   color: var(--white-dim); }
.badge-cancelled{ background: rgba(184,64,64,0.12);  color: var(--error); }
.badge-completed{ background: rgba(61,112,64,0.13);  color: #316135; }
.badge-noshow   { background: rgba(200,130,30,0.12); color: #9a6510; }

/* ── Tablo ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  border-bottom: 1.5px solid var(--border);
}
tbody td { padding: 1rem; border-bottom: 1px solid rgba(44,40,32,0.06); vertical-align: middle; }
tbody tr:hover { background: var(--white-faint); }
tbody tr:last-child td { border-bottom: none; }

/* ── Topbar ── */
.topbar {
  height: 58px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.04em; color: var(--white); }
.topbar-logo span { color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.topbar-user { font-size: 0.8rem; color: var(--white-dim); }

/* ── Sidebar ── */
.layout { display: flex; min-height: calc(100vh - 58px); }
.sidebar {
  width: 224px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}
.nav-section { padding: 0 1rem 0.75rem; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-dim); }
.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: var(--white-dim);
  cursor: pointer;
  transition: var(--transition);
  border-left: 2.5px solid transparent;
  text-decoration: none;
}
.nav-item:hover { color: var(--white); background: var(--white-faint); }
.nav-item.active { color: var(--gold); border-left-color: var(--gold); background: var(--gold-dim); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }

/* ── Ana içerik ── */
.main { flex: 1; padding: 2rem; overflow-y: auto; }
.page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 400; margin-bottom: 0.25rem; }
.page-subtitle { font-size: 0.875rem; color: var(--white-dim); margin-bottom: 2rem; }

/* ── İstatistik kartları ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stat-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 0.5rem; }
.stat-value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 300; color: var(--white); line-height: 1; }
.stat-value.gold { color: var(--gold); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44,40,32,0.45);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 40px rgba(80,65,40,0.16);
  transform: translateY(16px);
  transition: transform 0.2s;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ── Slot ızgarası ── */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
.slot-card {
  background: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.slot-card:hover, .slot-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 2px 8px rgba(91,126,74,0.15);
}
.slot-time { font-size: 1rem; font-weight: 500; }
.slot-staff { font-size: 0.7rem; color: var(--white-dim); margin-top: 0.2rem; }

/* ── Boş durum ── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--white-dim); }
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-text { font-size: 0.875rem; }

/* ── Animasyon ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.35s ease forwards; }

/* ── Dekoratif çizgi ── */
.gold-line { width: 36px; height: 2px; background: var(--gold); margin: 0.75rem 0; opacity: 0.6; }

/* ══════════════════════════════════════════
   MÜŞTERİ PORTALI — Özel Stiller
══════════════════════════════════════════ */

/* Portal wrapper */
.portal-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  animation: fadeIn 0.4s ease;
}

/* Portal header logosu */
.portal-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--white); }
.portal-logo em { font-style: italic; color: var(--gold); }

/* Mini takvim */
.mini-cal {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.cal-month-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.cal-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--white-dim);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.cal-nav-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.cal-day { border: 1.5px solid transparent; }
.cal-day.cal-green  { background: rgba(91,126,74,0.12);  color: #4a6b3a; }
.cal-day.cal-yellow { background: rgba(180,150,50,0.12); color: #8a6a20; }
.cal-day.cal-orange { background: rgba(200,110,30,0.11); color: #9a5515; }
.cal-day.cal-red    { background: rgba(184,64,64,0.09);  color: #b84040; }
.cal-day.cal-closed { background: var(--dark-2); color: var(--white-dim); opacity: 0.55; }
.cal-day.cal-selected { background: var(--gold) !important; color: #fff !important; border-color: var(--gold) !important; font-weight: 700; box-shadow: 0 2px 8px rgba(91,126,74,0.3); }

/* Tab navigasyon */
.tab-nav { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: 2rem; }
.tab-btn {
  flex: 1; padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--white-dim);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  transition: var(--transition);
  background: none;
  border-top: none; border-left: none; border-right: none;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--white); background: var(--white-faint); }

/* Talep kartları */
.req-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1px 6px rgba(80,65,40,0.06);
  transition: var(--transition);
}
.req-card:hover { box-shadow: 0 3px 14px rgba(80,65,40,0.10); }
.req-card.pending  { border-left: 3.5px solid var(--gold); }
.req-card.approved { border-left: 3.5px solid #3d7040; }
.req-card.rejected { border-left: 3.5px solid var(--error); opacity: 0.85; }
.req-card.expired  { border-left: 3.5px solid var(--white-dim); opacity: 0.6; }
.req-date { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; min-width: 60px; line-height: 1.2; color: var(--white); }
.req-date-sub { font-size: 0.7rem; color: var(--white-dim); }
.req-info { flex: 1; }
.req-service { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.2rem; color: var(--white); }
.req-meta { font-size: 0.8rem; color: var(--white-dim); }
.req-reason { font-size: 0.78rem; color: var(--error); margin-top: 0.4rem; padding: 0.4rem 0.65rem; background: rgba(184,64,64,0.07); border-radius: 4px; }

/* Adım göstergesi */
.step .step-dot { background: var(--dark-2); border-color: var(--border); color: var(--white-dim); }
.step.active .step-dot { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.step.done .step-dot   { border-color: var(--gold); background: var(--gold); color: #fff; }
.step-label            { color: var(--white-dim); }
.step.active .step-label { color: var(--gold); }
.step::after { background: var(--border); }

/* Hizmet kartları */
.service-card {
  background: var(--dark);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(80,65,40,0.05);
}
.service-card:hover, .service-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 3px 12px rgba(91,126,74,0.14);
  transform: translateY(-1px);
}
.service-name  { font-size: 0.9rem; font-weight: 500; color: var(--white); }
.service-meta  { font-size: 0.75rem; color: var(--white-dim); }
.service-price { color: var(--gold); font-size: 0.875rem; font-weight: 500; margin-top: 0.5rem; }

/* Onay kartı */
.confirm-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.confirm-row   { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); }
.confirm-row:last-child { border-bottom: none; }
.confirm-key   { font-size: 0.75rem; color: var(--white-dim); }
.confirm-val   { font-size: 0.875rem; text-align: right; color: var(--white); }

/* GİRİŞ SAYFASI — özel stiller */
.login-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(80,65,40,0.12);
}
.login-icon {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border: 1.5px solid rgba(91,126,74,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.login-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--white); }
.login-sub   { font-size: 0.82rem; color: var(--white-dim); margin-bottom: 2rem; }
.step-dot    { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: var(--transition); }
.step-dot.active { background: var(--gold); }
.tenant-skeleton {
  height: 44px;
  background: var(--dark-2);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 0.75rem;
  color: var(--white-dim);
  font-size: 0.85rem;
}
.otp-info {
  font-size: 0.78rem;
  color: var(--white-dim);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(91,126,74,0.07);
  border: 1px solid rgba(91,126,74,0.2);
  border-radius: var(--radius);
}
.otp-info strong { color: var(--gold); }
.resend-link { font-size: 0.75rem; color: var(--gold); cursor: pointer; text-decoration: underline; }

/* ── Mobil ── */
input, select, textarea, button { font-size: max(16px, 1rem); }

@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%; height: 62px;
    display: flex; flex-direction: row;
    align-items: center; justify-content: space-around;
    border-top: 1px solid var(--border);
    border-right: none;
    z-index: 100; padding: 0; overflow-x: auto;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
  }
  .nav-section { display: none; }
  .nav-item { flex-direction: column; font-size: 0.65rem; padding: 0.5rem 0.75rem; gap: 0.2rem; min-width: 60px; text-align: center; }
  .main { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 480px; }
  .modal { width: 95%; max-width: 95%; padding: 1.5rem; }
  .topbar { padding: 0 1rem; height: 52px; }
  .topbar-logo { font-size: 1.2rem; }
  .topbar-user { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .portal-wrap { padding: 1.25rem 0.75rem 5rem; }
}
/* ── Geri Tuşu ──────────────────────────────────────── */
.back-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 200;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.back-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(-2px);
}