@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:          #2d2640;
  --white:          #faf8f5;
  --accent:         #7c5cbf;
  --accent-dark:    #6a4aaa;
  --accent-light:   #f0ebfc;
  --accent-mid:     #c4b0e8;
  --muted:          #9b93b0;
  --border:         #e8e2f4;
  --card:           #ffffff;
  --sidebar-bg:     #2d2640;
  --sidebar-hover:  rgba(255,255,255,0.06);
  --sidebar-active: rgba(124,92,191,0.25);
  --serif:          'DM Serif Display', Georgia, serif;
  --sans:           'DM Sans', sans-serif;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 4px 24px rgba(45,38,64,0.08);
  --shadow-lg:      0 12px 48px rgba(45,38,64,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--white); color: var(--black); -webkit-font-smoothing: antialiased; touch-action: manipulation; }

/* ── AUTH LAYOUT ────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
  color: var(--black);
}

.auth-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.auth-logo-icon span {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.auth-logo-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 1px;
}

.auth-logo-text {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.auth-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.15;
}

.auth-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ── FORM ELEMENTS ──────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,191,0.12);
}

.form-input::placeholder { color: var(--muted); }

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 300;
}

.form-hint strong { color: var(--accent); font-weight: 500; }

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.form-errors li {
  font-size: 13px;
  color: #dc2626;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-errors li + li { margin-top: 4px; }

.form-errors li::before {
  content: '•';
  flex-shrink: 0;
}

.btn-full {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-full:hover { background: var(--accent-dark); }
.btn-full:active { transform: scale(0.99); }

.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
  font-weight: 300;
}

.auth-divider a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-divider a:hover { text-decoration: underline; }

/* ── SLUG PREVIEW ───────────────────────────────── */
.slug-preview {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slug-preview:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,92,191,0.12);
}

.slug-prefix {
  padding: 10px 12px;
  background: #f5f2fe;
  border-right: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.slug-input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  outline: none;
}

/* ── DASHBOARD LAYOUT ───────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.sidebar-brand-icon span {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.sidebar-brand-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 1px;
}

.sidebar-brand-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.2px;
}

.sidebar-company {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}

.sidebar-company-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-company-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-company-info { flex: 1; min-width: 0; }

.sidebar-company-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-company-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  margin-top: 2px;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-company-link:hover { color: rgba(255,255,255,0.7); }

.sidebar-nav {
  flex: 1;
  padding: 4px 12px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin-bottom: 2px;
  transition: all 0.15s ease;
  position: relative;
}

.sidebar-nav-item:hover {
  background: var(--sidebar-hover);
  color: rgba(255,255,255,0.85);
}

.sidebar-nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 500;
}

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 100px;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.sidebar-support {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 4px;
}

.sidebar-support:hover {
  background: rgba(37,211,102,0.08);
  color: #25d366;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-logout:hover {
  background: rgba(255,80,80,0.1);
  color: rgba(255,120,120,0.9);
}

/* ── MAIN CONTENT ───────────────────────────────── */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: 28px 32px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.page-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 300;
}

.page-body { padding: 24px 32px 40px; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--black);
}
.btn-secondary:hover { border-color: var(--black); }

.btn-danger {
  background: transparent;
  border-color: #fecaca;
  color: #dc2626;
}
.btn-danger:hover { background: #fef2f2; }

.btn-sm {
  padding: 6px 13px;
  font-size: 12px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent-mid); }

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
}

.card-body { padding: 24px; }

/* ── TABLE ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #faf8ff; }

/* ── STATUS BADGES ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}

.badge-pending   { background: #fef9c3; color: #854d0e; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-completed { background: #ede9fe; color: #5b21b6; }

/* ── STAT CARDS ─────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.stat-card-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.stat-card-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.stat-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── MODAL ──────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45,38,64,0.35);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 16px;
  transition: all 0.15s;
}

.modal-close:hover { background: var(--accent-light); color: var(--accent); }

.modal-body { padding: 24px 28px 28px; }

/* ── FLASH MESSAGES ─────────────────────────────── */
.flash-success,
.flash-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
  margin: 0 32px 16px;
}

.flash-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── CALENDAR / SHIFT VIEW ──────────────────────── */
.shift-grid {
  display: grid;
  grid-template-columns: 60px repeat(var(--col-count, 7), 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  min-width: 700px;
}

.shift-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
}

.shift-header.today-col {
  background: var(--accent-light);
  color: var(--accent);
}

.shift-time-label {
  padding: 8px 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.shift-cell {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  min-height: 40px;
}

.shift-cell:last-child { border-right: none; }

.shift-apt {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  transition: opacity 0.15s;
}

.shift-apt:hover { opacity: 0.85; }

/* ── WEEK NAV ───────────────────────────────────── */
.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.week-nav-label {
  font-size: 14px;
  color: var(--black);
  min-width: 200px;
  text-align: center;
  font-weight: 400;
}

/* ── ONBOARDING ─────────────────────────────────── */
.onboarding-page {
  min-height: 100vh;
  display: flex;
  background: var(--white);
}

.onboarding-left {
  width: 40%;
  background: var(--sidebar-bg);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onboarding-right {
  flex: 1;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.onboarding-steps { margin-top: 40px; }

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  opacity: 0.4;
}

.onboarding-step.done { opacity: 1; }
.onboarding-step.active { opacity: 1; }

.onboarding-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.onboarding-step.done .onboarding-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.onboarding-step.active .onboarding-step-num {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.onboarding-step-title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}

.onboarding-step.active .onboarding-step-title,
.onboarding-step.done .onboarding-step-title { color: #fff; }

.onboarding-step-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

/* ── UPLOAD AREA ────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-area-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 300;
}

.upload-area-text strong {
  color: var(--accent);
  font-weight: 500;
}

/* ── WORKING HOURS TABLE ────────────────────────── */
.hours-table { width: 100%; border-collapse: collapse; }

.hours-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  text-align: left;
}

.hours-table td {
  padding: 8px 12px;
  vertical-align: middle;
  border-top: 1px solid var(--border);
}

.hours-table tr:first-child td { border-top: none; }

.toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Personel - Haftalık Çalışma Saatleri: açık yeşil, kapalı gri */
.hours-table .toggle-slider { background: #9ca3af !important; }
.hours-table .toggle-switch input:checked + .toggle-slider { background: #16a34a !important; }

.time-input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.time-input:focus { border-color: var(--accent); }

/* ── COLOR PICKER ───────────────────────────────── */
.color-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.color-dot:hover { transform: scale(1.1); }
.color-dot.selected { border-color: var(--black); }

/* ── BOOKING PAGE ───────────────────────────────── */
.booking-page {
  min-height: 100vh;
  background: var(--white);
}

.booking-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.booking-company-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.booking-company-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.booking-company-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
}

.booking-company-info {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.booking-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
}

.booking-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.booking-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.booking-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.3s;
}

.booking-step-item.active .booking-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.booking-step-item.done .booking-step-num {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.booking-step-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.booking-step-item.active .booking-step-label { color: var(--accent); font-weight: 500; }
.booking-step-item.done .booking-step-label { color: #22c55e; }

.booking-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
}

.booking-step-line.done { background: #22c55e; }

.step-panel { display: none; }
.step-panel.active { display: block; }

.step-panel-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card-select {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--card);
  text-align: left;
}

.service-card-select:hover { border-color: var(--accent-mid); background: var(--accent-light); }
.service-card-select.selected { border-color: var(--accent); background: var(--accent-light); }

.service-card-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.service-card-meta { font-size: 13px; color: var(--muted); }

.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.staff-card-select {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--card);
  text-align: center;
}

.staff-card-select:hover { border-color: var(--accent-mid); background: var(--accent-light); }
.staff-card-select.selected { border-color: var(--accent); background: var(--accent-light); }

.staff-avatar-book {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 auto 10px;
}

.staff-card-name { font-size: 14px; font-weight: 500; }

.mini-calendar { width: 100%; }

.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mini-cal-month { font-size: 15px; font-weight: 500; }

.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mini-cal-day-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  padding: 4px 0;
}

.mini-cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  cursor: default;
}

.mini-cal-day.available {
  color: var(--black);
  cursor: pointer;
  font-weight: 500;
  background: var(--accent-light);
}

.mini-cal-day.available:hover { background: var(--accent-mid); }
.mini-cal-day.selected { background: var(--accent); color: #fff; }
.mini-cal-day.today { border: 2px solid var(--accent); }
.mini-cal-day.empty { background: none; }

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot-btn {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  background: var(--card);
  transition: all 0.15s;
}

.time-slot-btn:hover { border-color: var(--accent-mid); background: var(--accent-light); }
.time-slot-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.time-slot-btn.slot-taken {
  background: #f5f3f8;
  border-color: #e0dcea;
  color: #c2bcd4;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.6;
  position: relative;
}
.time-slot-btn.slot-taken::after {
  content: 'Dolu';
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #b0a8c8;
  letter-spacing: .02em;
  line-height: 1;
  margin-top: 2px;
}

.booking-confirm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.booking-summary-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.booking-summary-label { color: var(--muted); }
.booking-summary-value { font-weight: 500; }

/* ── EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
}

.empty-state-desc { font-size: 13px; font-weight: 300; }

/* ── LAYOUT UTILITY CLASSES ─────────────────────── */
.staff-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stats-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.settings-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-pwd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.sms-api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.sms-test-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.sms-stat-grid {
  grid-template-columns: repeat(4, 1fr);
}
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sms-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

/* ── MOBILE TOPBAR (hidden on desktop) ──────────── */
.mobile-topbar    { display: none; }
.sidebar-backdrop { display: none; }
.sidebar-mobile-close { display: none; }

/* ── DASHBOARD RESPONSIVE ───────────────────────── */
@media (max-width: 768px) {

  /* Sidebar: gizli değil, sola kaymış drawer olacak */
  .sidebar {
    transform: translateX(-260px);
    transition: transform 0.26s cubic-bezier(.4,0,.2,1);
    z-index: 200;
  }
  .sidebar.sidebar-mobile-open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.4);
  }

  /* Backdrop */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 195;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
  }
  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  body.sidebar-open { overflow: hidden; }

  /* Sidebar kapat butonu */
  .sidebar-mobile-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 16px 0;
  }
  .sidebar-mobile-close button {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    padding: 4px;
    border-radius: 8px;
    transition: color .2s;
  }
  .sidebar-mobile-close button:hover { color: #fff; }

  /* Mobile üst bar */
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 54px;
    background: var(--sidebar-bg);
    z-index: 150;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .mobile-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
  }
  .mobile-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: color .2s;
  }
  .mobile-hamburger:hover { color: #fff; }

  /* Ana içerik */
  .main-content {
    margin-left: 0 !important;
    padding-top: 54px;
  }

  /* Onboarding */
  .onboarding-left  { display: none; }
  .onboarding-right { padding: 40px 24px; }

  /* Sayfa başlığı */
  .page-header {
    padding: 16px 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-header > div:last-child,
  .page-header > a:last-child,
  .page-header > button:last-child {
    align-self: flex-start;
  }
  .page-title { font-size: 20px; }
  .page-sub   { font-size: 12px; }

  /* Week nav */
  .week-nav { flex-wrap: wrap; gap: 8px; }
  .week-nav-label { min-width: 0; font-size: 12px; }

  /* Sayfa gövdesi */
  .page-body { padding: 14px 16px 36px; }

  /* Stat grid: 2 sütun */
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .stat-card { padding: 14px 14px; }
  .stat-card-value { font-size: 24px; }
  .stat-card-label { font-size: 11px; }
  .stat-card-sub   { font-size: 11px; }

  /* Kart */
  .card-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .card-body   { padding: 14px 16px; }
  .card-title  { font-size: 13px; }

  /* Tablo yatay scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 580px; }
  .table th, .table td { padding: 10px 12px; font-size: 12px; }

  /* Randevu durum select */
  .status-select { font-size: 11px; padding: 4px 8px; }

  /* Butonlar */
  .btn     { font-size: 12px; padding: 8px 14px; gap: 5px; }
  .btn-sm  { font-size: 11px; padding: 5px 10px; }
  .btn-icon { width: 28px; height: 28px; }

  /* Modal: alt sayfa gibi */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
  }
  .modal-header { padding: 16px 20px; }
  .modal-body   { padding: 16px 20px 24px; }

  /* Shift (takvim) grid */
  .shift-grid { min-width: 500px; }
  .shift-apt  { font-size: 10px; padding: 2px 4px; }
  .shift-header { font-size: 11px; padding: 6px 4px; }
  .shift-time-label { font-size: 10px; }

  /* Hizmet kartları */
  .service-cards { grid-template-columns: 1fr; }

  /* Form elemanları */
  .form-label { font-size: 12px; }
  .form-input { font-size: 14px; }

  /* İstatistikler: grafik gridleri tek sütun */
  .stats-charts-grid { grid-template-columns: 1fr !important; }

  /* Personel: detay grid tek sütun */
  .staff-detail-grid { grid-template-columns: 1fr !important; }
  .staff-detail-grid > div:first-child { border-right: none !important; border-bottom: 1px solid var(--border); }

  /* Çalışma saatleri tablosu */
  .hours-table { width: 100%; }
  .hours-table th, .hours-table td { padding: 8px 6px !important; font-size: 11px !important; }
  .time-input { font-size: 12px; min-width: 0; width: 100%; }

  /* Ayarlar: logo satırı ve form gridleri */
  .settings-logo-section { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .settings-profile-grid,
  .settings-pwd-grid { grid-template-columns: 1fr !important; }

  /* SMS: stat grid 4 sütun → 2 sütun */
  .sms-stat-grid { grid-template-columns: 1fr 1fr !important; }

  /* SMS: API grid → tek sütun */
  .sms-api-grid { grid-template-columns: 1fr !important; }

  /* SMS: test satırı → dikey */
  .sms-test-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .sms-test-row .form-group { margin-bottom: 0; }
  .sms-test-row .btn { align-self: flex-start; }

  /* SMS: bildirim tipi satırları — küçük ekranda wrap */
  .sms-type-row {
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: flex-start !important;
  }
  .sms-type-row .toggle-switch { flex-shrink: 0; margin-left: 0 !important; }

  /* Sayfa başlığı sağ taraf butonları */
  .page-header-actions { flex-wrap: wrap; }
}

/* ── BOOKING RESPONSIVE ─────────────────────────── */

/* Tablet */
@media (max-width: 720px) {
  .booking-header {
    padding: 14px 18px;
    gap: 12px;
  }
  .booking-company-name { font-size: 15px; }
  .booking-company-info { font-size: 12px; }
  .booking-company-logo,
  .booking-company-avatar { width: 38px; height: 38px; border-radius: 8px; }
  .booking-body {
    padding: 24px 16px;
  }
  .booking-steps { margin-bottom: 28px; }
  .step-panel-title { font-size: 20px; margin-bottom: 16px; }
  .service-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card-select { padding: 14px 14px; }
  .service-card-name { font-size: 13px; }
  .staff-cards { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .staff-card-select { padding: 16px 10px; }
  .staff-avatar-book { width: 40px; height: 40px; font-size: 17px; }
  .booking-confirm-card { padding: 16px; }
  .booking-summary-row { font-size: 13px; }
}

/* Mobile */
@media (max-width: 480px) {
  .booking-header {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .booking-company-name { font-size: 14px; }
  .booking-company-info { font-size: 11px; }
  .booking-company-logo,
  .booking-company-avatar { width: 34px; height: 34px; font-size: 15px; }

  /* Header Randeviyo branding — sağda küçük göster */
  .booking-header > div:last-child {
    margin-left: auto;
  }
  .booking-header > div:last-child a {
    font-size: 11px;
  }

  .booking-body { padding: 18px 14px; }
  .booking-steps { gap: 0; margin-bottom: 24px; }

  /* Adım barı: sadece numaralar, label'lar gizlensin */
  .booking-step-label { display: none; }
  .booking-step-num { width: 26px; height: 26px; font-size: 11px; }
  .booking-step-line { margin: 0 4px; }
  .booking-step-item { flex: 1; justify-content: center; }

  .step-panel-title { font-size: 18px; margin-bottom: 14px; }

  /* Hizmet kartları tek sütun */
  .service-cards { grid-template-columns: 1fr; gap: 8px; }
  .service-card-select { padding: 14px; }

  /* Personel kartları 2'li grid */
  .staff-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .staff-card-select { padding: 14px 8px; }
  .staff-avatar-book { width: 38px; height: 38px; font-size: 16px; margin-bottom: 8px; }
  .staff-card-name { font-size: 13px; }

  /* Takvim hücreleri daha geniş dokunma alanı */
  .mini-cal-day { padding: 10px 2px; font-size: 13px; }
  .mini-cal-day-label { font-size: 10px; padding: 3px 0; }
  .mini-cal-grid { gap: 3px; }
  .mini-cal-month { font-size: 14px; }

  /* Saat slotları */
  .time-slot-btn { padding: 10px 14px; font-size: 13px; min-width: 62px; text-align: center; }

  /* Özet kartı */
  .booking-confirm-card { padding: 14px; }
  .booking-summary-row { font-size: 12px; padding: 7px 0; flex-wrap: wrap; gap: 2px; }
  .booking-summary-value { text-align: right; }

  /* Form */
  .form-input { font-size: 15px; }

  /* Telefon + Kod Gönder butonu aynı satırda kalır ama buton küçülür */
  #sendOtpBtn { padding: 10px 12px; font-size: 12px; }

  /* OTP kodu girişi */
  #otp-code { font-size: 20px !important; letter-spacing: 6px !important; }

  /* Submit butonu */
  .btn-full { font-size: 15px; padding: 14px; }

  /* Başarı ekranı */
  #stepSuccess { padding: 32px 0; }
  #stepSuccess h2 { font-size: 22px; }
}
