/* ============================================================
   CarWash Pro · Müşteri Arayüzü CSS
   Design: Fresh, modern, mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --cw-primary:   #0ea5e9;
  --cw-dark:      #0c1a2e;
  --cw-accent:    #f97316;
  --cw-success:   #22c55e;
  --cw-danger:    #ef4444;
  --cw-warning:   #eab308;
  --cw-bg:        #f0f7ff;
  --cw-card:      #ffffff;
  --cw-border:    #e0eaf5;
  --cw-text:      #0c1a2e;
  --cw-muted:     #64748b;
  --cw-radius:    14px;
  --cw-shadow:    0 2px 16px rgba(14,165,233,.10);
  --cw-shadow-lg: 0 8px 40px rgba(14,165,233,.18);
  --nav-h:        64px;
}

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

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cw-bg);
  color: var(--cw-text);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ── Navbar ── */
.m-navbar {
  background: var(--cw-dark);
  height: var(--nav-h);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.m-navbar .navbar-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.3px;
}
.m-navbar .navbar-brand strong { color: var(--cw-primary); }
.brand-dot {
  width: 10px; height: 10px;
  background: var(--cw-primary);
  border-radius: 50%;
  display: inline-block;
}
.m-navbar .navbar-brand .brand-logo {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 2px 4px;
}
.m-navbar .navbar-brand .brand-text {
  white-space: nowrap;
}

.m-navbar .nav-link {
  color: rgba(255,255,255,.7) !important;
  font-weight: 500;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.m-navbar .nav-link:hover,
.m-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(14,165,233,.2);
}
.m-navbar .nav-link.active { color: var(--cw-primary) !important; }

.av-circle {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--cw-primary), #7c3aed);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

/* ── Main Content ── */
.m-content { min-height: calc(100vh - var(--nav-h) - 60px); padding: 32px 0 48px; }

/* ── Footer ── */
.m-footer {
  background: var(--cw-dark);
  color: rgba(255,255,255,.5);
  padding: 20px 0;
  font-size: 13px;
}

/* ── Auth Pages ── */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--cw-dark) 0%, #0f2744 50%, #0c1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,.15) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,.1) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--cw-primary), #0284c7);
  border-radius: 16px;
  display: inline-grid; place-items: center;
  font-size: 26px; color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(14,165,233,.4);
}
.auth-logo h1 { font-size: 22px; font-weight: 800; margin: 0; }
.auth-logo p  { font-size: 13.5px; color: var(--cw-muted); margin: 4px 0 0; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--cw-muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--cw-border);
}

/* ── Cards ── */
.cw-card {
  background: var(--cw-card);
  border-radius: var(--cw-radius);
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow);
  overflow: hidden;
}
.cw-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--cw-border);
  display: flex; align-items: center; justify-content: space-between;
  background: #fafcff;
}
.cw-card-header h5 {
  margin: 0; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.cw-card-header h5 i { color: var(--cw-primary); }
.cw-card-body { padding: 22px; }

/* ── Stat Cards ── */
.m-stat {
  background: var(--cw-card);
  border-radius: var(--cw-radius);
  padding: 22px 20px;
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.m-stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, var(--cw-primary));
}
.m-stat:hover { transform: translateY(-3px); box-shadow: var(--cw-shadow-lg); }
.m-stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.m-stat-val { font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.m-stat-lbl { font-size: 12.5px; color: var(--cw-muted); font-weight: 500; }

/* ── Randevu Stepper ── */
.step-bar {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 36px; gap: 0;
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; max-width: 160px; position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px; left: calc(50% + 18px);
  width: calc(100% - 36px); height: 2px;
  background: var(--cw-border);
  z-index: 0;
}
.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after { background: var(--cw-primary); }

.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cw-border);
  color: var(--cw-muted);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  position: relative; z-index: 1;
  transition: all .25s;
}
.step-item.active .step-circle {
  background: var(--cw-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,165,233,.45);
}
.step-item.done .step-circle {
  background: var(--cw-success);
  color: #fff;
}
.step-label {
  font-size: 11.5px; font-weight: 600; color: var(--cw-muted);
  margin-top: 6px; text-align: center;
}
.step-item.active .step-label { color: var(--cw-primary); }
.step-item.done  .step-label  { color: var(--cw-success); }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeInUp .3s ease; }

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

/* ── Sube & Hizmet Seçim Kartları ── */
.select-grid { display: grid; gap: 12px; }
.select-grid.col2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.select-grid.col3 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.sel-card {
  border: 2px solid var(--cw-border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  position: relative;
}
.sel-card:hover { border-color: var(--cw-primary); box-shadow: 0 4px 16px rgba(14,165,233,.15); }
.sel-card.selected {
  border-color: var(--cw-primary);
  background: rgba(14,165,233,.05);
}
.sel-card.selected::after {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 10px; right: 12px;
  color: var(--cw-primary);
  font-size: 16px;
}
.sel-card-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.sel-card-sub   { font-size: 12.5px; color: var(--cw-muted); }
.sel-card-price { font-weight: 800; font-size: 16px; color: var(--cw-primary); margin-top: 8px; }

/* ── Takvim ── */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.time-slot {
  padding: 9px 6px;
  border: 2px solid var(--cw-border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
  background: #fff;
}
.time-slot:hover:not(.dolu) { border-color: var(--cw-primary); color: var(--cw-primary); }
.time-slot.selected { border-color: var(--cw-primary); background: var(--cw-primary); color: #fff; }
.time-slot.dolu { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; text-decoration: line-through; }

/* ── Randevu Kartı ── */
.rnd-card {
  border: 1px solid var(--cw-border);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.rnd-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--rnd-color, var(--cw-primary));
}
.rnd-card:hover { box-shadow: var(--cw-shadow); }

/* ── Badges ── */
.cbadge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
}
.cbadge-beklemede  { background: rgba(234,179,8,.12);  color: #854d0e; }
.cbadge-onaylandi  { background: rgba(14,165,233,.12); color: #0369a1; }
.cbadge-tamamlandi { background: rgba(34,197,94,.12);  color: #15803d; }
.cbadge-iptal      { background: rgba(239,68,68,.12);  color: #b91c1c; }
.cbadge-devam      { background: rgba(249,115,22,.12); color: #c2410c; }

/* ── Forms ── */
.form-control, .form-select {
  border: 1.5px solid var(--cw-border);
  border-radius: 10px;
  font-size: 14px;
  padding: 10px 14px;
  transition: all .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cw-primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}
.form-label { font-weight: 600; font-size: 13px; margin-bottom: 6px; }

.btn-cw {
  background: var(--cw-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 11px 24px;
  font-size: 14px;
  transition: all .2s;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-cw:hover { background: #0284c7; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,165,233,.4); }
.btn-cw:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-cw-outline {
  background: transparent;
  color: var(--cw-primary);
  border: 2px solid var(--cw-primary);
  border-radius: 10px;
  font-weight: 700;
  padding: 9px 22px;
  font-size: 14px;
  transition: all .2s;
  cursor: pointer;
}
.btn-cw-outline:hover { background: var(--cw-primary); color: #fff; }

/* ── Toast ── */
.cw-toast-wrap { position: fixed; top: 80px; right: 20px; z-index: 9999; }

/* ── Araç Kartı ── */
.arac-card {
  border: 2px solid var(--cw-border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  transition: all .2s;
}
.arac-card:hover { border-color: var(--cw-primary); }

/* ── Boş durum ── */
.empty-cw { text-align: center; padding: 60px 20px; color: var(--cw-muted); }
.empty-cw i { font-size: 48px; opacity: .25; margin-bottom: 16px; display: block; }
.empty-cw p { font-size: 15px; margin: 0 0 16px; }

/* ── Hero Banner (dashboard) ── */
.m-hero {
  background: linear-gradient(135deg, var(--cw-dark) 0%, #0f3460 100%);
  border-radius: var(--cw-radius);
  padding: 32px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.m-hero::after {
  content: '\f1b9';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 28px; bottom: -10px;
  font-size: 100px;
  opacity: .07;
}
.m-hero h2 { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.m-hero p  { font-size: 14px; opacity: .75; margin: 0 0 20px; }

/* ── Password strength ── */
.pw-bar { height: 4px; border-radius: 99px; background: var(--cw-border); margin-top: 6px; }
.pw-fill { height: 100%; border-radius: 99px; transition: all .3s; }



.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: inline-grid; place-items: center;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.btn-icon.danger:hover { background: var(--brand-danger); border-color: var(--brand-danger); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-card { padding: 28px 20px; }
  .m-content { padding: 20px 0 32px; }
  .m-hero { padding: 22px 20px; }
  .step-label { display: none; }
}
