/* ============================================================
   SALON FETHAN DEMİRTAŞ - ORTAK STİLLER
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

header {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e7;
}

header img {
  height: 130px;
  max-width: 90%;
  object-fit: contain;
}

main {
  width: 100%;
  max-width: 640px;
  padding: 20px 16px 40px;
  flex: 1;
}

h1.page-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin: 10px auto 20px;
  padding: 12px 20px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e5e5e7;
  letter-spacing: 0.3px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  border: 1px solid #e5e5e7;
}

.card h2 {
  font-size: 17px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 16px;
}

/* Form stilleri */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #424245;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group input[type="date"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1.5px solid #d2d2d7;
  font-size: 15px;
  background: #fff;
  color: #1d1d1f;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #1d1d1f;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* Butonlar */
.btn {
  display: inline-block;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #1d1d1f;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  width: 100%;
}

.btn:hover:not(:disabled) {
  background: #333;
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  background: #a0a0a5;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-outline {
  background: #fff;
  color: #1d1d1f;
  border: 1.5px solid #1d1d1f;
}

.btn-outline:hover:not(:disabled) {
  background: #f5f5f7;
}

.btn-danger {
  background: #d32f2f;
}

.btn-danger:hover:not(:disabled) {
  background: #b71c1c;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover:not(:disabled) {
  background: #1ebe5a;
}

/* Tarih butonları (4 gün) */
.date-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.date-btn {
  padding: 12px 4px;
  border: 2px solid #1d1d1f;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  line-height: 1.4;
  transition: all 0.15s;
  font-family: inherit;
}

.date-btn:hover {
  background: #f5f5f7;
}

.date-btn.active {
  background: #1d1d1f;
  color: #fff;
}

.date-btn .day-name {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.date-btn .day-date {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.date-btn.closed {
  background: #f5f5f7;
  color: #999;
  border-color: #d2d2d7;
  cursor: not-allowed;
}

/* Saat grid */
.section-label {
  font-size: 14px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 18px 0 10px;
}

.times {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.time-btn {
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid #d2d2d7;
  border-radius: 9px;
  background: #fff;
  color: #424245;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.time-btn:hover:not(:disabled) {
  border-color: #1d1d1f;
}

.time-btn.active {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}

.time-btn:disabled {
  background: #f5f5f7;
  color: #c7c7cc;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: #e5e5e7;
}

/* Bilgi kutusu */
.info-box {
  padding: 14px 16px;
  background: #f0f7ff;
  border-left: 3px solid #0066cc;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #1d1d1f;
  line-height: 1.5;
}

.info-box.warning {
  background: #fff8e1;
  border-left-color: #ff9800;
}

.info-box.success {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.info-box.error {
  background: #ffebee;
  border-left-color: #f44336;
}

/* Yükleniyor */
.loading {
  display: none;
  text-align: center;
  padding: 12px;
  color: #666;
  font-size: 13px;
}

.loading.active {
  display: block;
}

.loading::after {
  content: '...';
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Randevu kartı */
.randevu-kart {
  background: #fff;
  border: 1.5px solid #e5e5e7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.randevu-kart .satir {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.randevu-kart .etiket {
  color: #666;
  font-size: 12px;
}

.randevu-kart .durum-rozet {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.durum-beklemede {
  background: #fff3cd;
  color: #856404;
}

.durum-aktif {
  background: #d4edda;
  color: #155724;
}

.durum-iptal {
  background: #f8d7da;
  color: #721c24;
}

.durum-tamamlandi {
  background: #d1ecf1;
  color: #0c5460;
}

/* Buton grubu */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-group.horizontal {
  flex-direction: row;
}

.btn-group.horizontal .btn {
  flex: 1;
}

/* Geri dön linki */
.back-link {
  display: inline-block;
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  header img { height: 100px; }
  h1.page-title { font-size: 16px; padding: 10px 14px; }
  .card { padding: 18px 16px; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .date-btn { padding: 10px 2px; font-size: 11px; }
  .date-btn .day-name { font-size: 12px; }
}

@media (max-width: 360px) {
  .times { grid-template-columns: repeat(3, 1fr); }
}
