/* =====================================================
   Referans Sistemi - Ana Stil Dosyası
   ===================================================== */
:root {
  --primary: #475569;
  --primary-light: #334155;
  --accent: #64748b;
  --accent-light: #94a3b8;
  --light: #f8fafc;
  --text: #1e293b;
  --border: #cbd5e1;
  --shadow: 0 2px 12px rgba(71,85,105,0.10);
  --radius: 10px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--light);
  margin: 0;
}

/* Focus styles - keyboard navigation */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: var(--primary);
  padding: 18px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .container { display: flex; align-items: center; justify-content: center; }
.site-logo { max-height: 80px; max-width: 300px; object-fit: contain; }
.site-title { color: #fff; font-size: 1.8rem; font-weight: 700; letter-spacing: 1px; margin: 0; }

/* =====================================================
   SLIDER
   ===================================================== */
.slider-section { background: #000; overflow: hidden; }
.slider-wrapper { position: relative; width: 100%; overflow: hidden; height: 420px; }
.slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.active { transform: translateX(0); z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(71,85,105,0.7); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; z-index: 10; transition: background 0.2s;
}
.slider-btn:hover, .slider-btn:focus-visible { background: var(--primary); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5);
  border: none; cursor: pointer; padding: 0; transition: background 0.2s;
}
.dot.active, .dot:hover, .dot:focus-visible { background: var(--accent); }

/* =====================================================
   CITY GRID
   ===================================================== */
.main-content { padding: 36px 0 20px; }
.section-title { color: var(--primary); font-weight: 700; margin-bottom: 20px; font-size: 1.3rem; }
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding: 4px;
}
.city-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  user-select: none;
  position: relative;
}
.city-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(71,85,105,0.18);
}
.city-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,161,0,0.35);
  outline: none;
  transform: translateY(-2px);
}
.city-card.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.city-card.selected .plate-code { background: rgba(255,255,255,0.2); color: #fff; }
.city-card.keyboard-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,161,0,0.4);
}
.plate-code {
  background: var(--light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 1.4;
}
.city-name { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }

/* =====================================================
   REFERENCES SECTION
   ===================================================== */
.references-section { padding: 24px 0 40px; }
.refs-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.district-filter { display: flex; align-items: center; gap: 10px; }
.district-select { min-width: 220px; }

.ref-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 12px;
}
.ref-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 5px;
  box-shadow: 0 1px 6px rgba(71,85,105,0.08);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ref-item:hover { border-color: var(--primary-light); box-shadow: 0 3px 12px rgba(71,85,105,0.14); }
.ref-item:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); }
.ref-item-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.3;
}
.ref-item-name i { color: var(--primary); font-size: 0.82rem; flex-shrink: 0; }
.ref-item-location {
  font-size: 0.78rem; color: #888; padding-left: 20px; line-height: 1.3;
}

/* Admin kartı butonları (sadece admin oturumunda görünür) */
.ref-admin-btns {
  position: absolute;
  top: 6px; right: 6px;
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.ref-item:hover .ref-admin-btns { opacity: 1; }
.ref-admin-btn {
  background: none; border: none; cursor: pointer;
  width: 24px; height: 24px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; transition: background 0.15s;
}
.ref-admin-btn.edit { color: #1e293b; }
.ref-admin-btn.edit:hover { background: #e8eef8; }
.ref-admin-btn.del { color: #dc3545; }
.ref-admin-btn.del:hover { background: #fde8ea; }

.empty-state { padding: 48px 0; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--primary);
  padding: 16px 0;
  text-align: center;
  margin-top: 20px;
}
.admin-link { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-decoration: none; }
.admin-link:hover, .admin-link:focus-visible { color: var(--accent); }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-body {
  min-height: 100vh; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.login-container { width: 100%; max-width: 420px; padding: 16px; }
.login-card {
  background: #fff; border-radius: 16px;
  padding: 40px 36px; box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.login-header { text-align: center; color: var(--primary); margin-bottom: 28px; }
.login-header h2 { font-weight: 700; margin: 0; }

/* =====================================================
   ADMIN LAYOUT
   ===================================================== */
.admin-body { background: #f0f2f5; min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--primary);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-brand {
  padding: 24px 20px;
  color: #fff; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-nav { flex: 1; padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: rgba(255,255,255,0.75);
  background: transparent; border: none; cursor: pointer;
  font-size: 0.93rem; width: 100%; text-align: left;
  transition: all 0.15s; border-radius: 0;
}
.sidebar-nav .nav-item:hover, .sidebar-nav .nav-item:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-nav .nav-item.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; border-left: 3px solid var(--accent); }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 4px; }
.sidebar-link { color: rgba(255,255,255,0.65); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.sidebar-link:hover, .sidebar-link:focus-visible { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar-link.logout { color: #ff8080; }
.sidebar-link.logout:hover { color: #ff4444; background: rgba(255,68,68,0.1); }

.admin-main { margin-left: 240px; padding: 28px; flex: 1; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
}
.stat-icon { font-size: 1.5rem; color: var(--primary-light); width: 44px; text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8rem; color: #888; margin-top: 2px; }

/* Tabs */
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.tab-title { color: var(--primary); font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

/* Admin table */
.admin-table { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table thead th { background: var(--primary); color: #fff; border: none; }
.admin-table tbody tr:hover { background: var(--light); }

/* Form card */
.form-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-card h5 { color: var(--primary); margin-bottom: 16px; }

/* Logo preview */
.logo-preview { max-height: 100px; max-width: 300px; border: 2px solid var(--border); border-radius: 8px; padding: 8px; }

/* Slider admin grid */
.slider-admin-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.slider-thumb { position: relative; width: 200px; height: 120px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slider-delete-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(220,53,69,0.9); color: #fff;
  border: none; border-radius: 50%; width: 28px; height: 28px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: background 0.15s;
}
.slider-delete-btn:hover, .slider-delete-btn:focus-visible { background: #dc3545; }

/* =====================================================
   MOBİL TOPBAR & HAMBURGEr
   ===================================================== */
.mobile-topbar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 52px; background: var(--primary);
  align-items: center; gap: 14px; padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mobile-menu-btn {
  background: none; border: none; color: #fff;
  font-size: 1.3rem; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; line-height: 1;
  transition: background 0.15s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.15); }
.mobile-topbar-title { color: #fff; font-weight: 700; font-size: 1rem; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 149;
  background: rgba(0,0,0,0.45);
}
.sidebar-overlay.active { display: block; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; padding: 16px; }
  .city-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .slider-wrapper { height: 220px; }
  .ref-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .ref-list { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .mobile-topbar { display: flex; }

  /* Yatay taşmayı engelle */
  body, .admin-body { overflow-x: hidden; }

  /* Sidebar mobilede gizli, slide-in açılır */
  .admin-sidebar {
    display: flex !important;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 150;
    top: 0;
    width: 260px;
  }
  .admin-sidebar.sidebar-open { transform: translateX(0); }

  .admin-main {
    margin-left: 0 !important;
    padding: 12px;
    padding-top: 64px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Stats 2 kolon, taşmasın */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card { padding: 14px 10px; gap: 10px; }
  .stat-number { font-size: 1.4rem; }
  .stat-icon { font-size: 1.2rem; width: 32px; }

  /* Tablolar yatay kaydırılabilir */
  .table-responsive, .admin-table { font-size: 0.8rem; }

  /* Sipariş kartları */
  .order-card { font-size: 0.82rem; }
  .order-card .btn { font-size: 0.75rem; padding: 4px 8px; }

  /* Filtre butonları */
  .order-filter-bar { flex-wrap: wrap; gap: 6px; }

  /* Tab başlıkları küçük ekrana uygun */
  .tab-title { font-size: 1rem; }

  .ref-list { grid-template-columns: 1fr; }
  .report-summary-row { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   RAPORLAMA SEKMESİ
   ===================================================== */
.report-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.report-mini-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rmc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.rmc-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.rmc-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2px;
}
.report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.report-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 1.2rem;
}
.report-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.bar-label {
  width: 130px;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 7px;
  background: #f0f0f5;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #334155);
  border-radius: 4px;
  transition: width 0.7s cubic-bezier(.4,0,.2,1);
}
.bar-fill-district {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}
.bar-count {
  font-size: 0.78rem;
  color: #888;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
/* Aylık bar chart */
.month-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 120px;
  padding-top: 1.5rem;
  position: relative;
}
.month-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: default;
}
.month-bar-wrap:hover .month-bar { opacity: 0.8; }
.month-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(0deg, var(--primary) 0%, #334155 100%);
  min-height: 0;
  transition: height 0.5s ease;
}
.month-count {
  font-size: 0.6rem;
  color: #888;
  margin-bottom: 2px;
  height: 14px;
  line-height: 14px;
}
.month-label {
  font-size: 0.6rem;
  color: #aaa;
  margin-top: 4px;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}
/* Kapsama çubuğu */
.coverage-bar-wrap {
  background: #f0f0f5;
  border-radius: 8px;
  height: 28px;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}
.coverage-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #334155);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: width 0.8s ease;
  min-width: 40px;
}
.coverage-label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #555;
  pointer-events: none;
}
@media (max-width: 991px) {
  .report-summary-row { grid-template-columns: repeat(2, 1fr); }
  .report-two-col { grid-template-columns: 1fr; }
}
.uncovered-cities-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.uncovered-city-badge { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c4; border-radius: 20px; padding: 2px 10px; font-size: 0.78rem; font-weight: 500; }
.rmc-clickable { cursor: pointer; transition: box-shadow 0.15s, transform 0.1s; user-select: none; }
.rmc-clickable:hover { box-shadow: 0 4px 16px rgba(71,85,105,0.15); transform: translateY(-1px); }
.uncovered-dist-grid { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; padding-right: 4px; }
.uncov-city-group { border: 1px solid #e8d5f5; border-radius: 8px; padding: 8px 12px; background: #faf5ff; }
.uncov-city-name { font-weight: 600; font-size: 0.9rem; color: #5a1a6b; margin-bottom: 6px; }
.uncov-dist-list { display: flex; flex-wrap: wrap; gap: 5px; }
.uncov-dist-badge { background: #ede8f5; color: #5a1a6b; border: 1px solid #d4c5e8; border-radius: 14px; padding: 2px 10px; font-size: 0.78rem; }
.nd-list { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.nd-row { display: grid; grid-template-columns: 1fr 90px 160px 36px 36px; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; background: #fafafa; border: 1px solid #eee; }
.nd-city { font-size: 0.78rem; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-city { font-size: 0.78rem; color: #888; }
.slider-thumb { overflow: visible; }
.slider-link-btn {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.55); color: #ccc;
  border: none; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.slider-link-btn:hover { background: rgba(0,0,0,0.8); }
.slider-link-btn.has-link { color: #4caf50; }
.slider-link-edit {
  position: absolute; bottom: -84px; left: 0; right: 0;
  background: #fff; border: 1px solid #ddd;
  border-radius: 0 0 8px 8px; padding: 8px; z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.slide-link { display: block; width: 100%; height: 100%; }
.slide-link img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════════════════════
   SİPARİŞ MODÜLÜ — Admin Panel
   ══════════════════════════════════════════════════════════ */

/* Sipariş kartları listesi */
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: #fff; border-radius: 10px; border: 1px solid #e0e6f0; box-shadow: 0 2px 6px rgba(0,0,0,0.05); overflow: hidden; }
.order-card-header { background: #f0f4fa; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #dde3f0; }
.order-customer-name { font-weight: 700; color: #1e293b; font-size: 1rem; }
.order-phone { font-size: 0.85rem; color: #555; }
.order-token { font-size: 0.78rem; font-family: monospace; }
.order-date { font-size: 0.78rem; }
.order-card-body { padding: 10px 16px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 0.88rem; color: #555; }
.order-total { font-size: 1rem; color: #1e293b; }
.order-actions { display: flex; flex-wrap: wrap; gap: 6px; }
/* Sipariş kartı düz butonlar */
.obtn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 500; cursor: pointer; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; text-decoration: none; transition: background 0.12s, border-color 0.12s; white-space: nowrap; line-height: 1.4; }
.obtn:hover { background: #e8edf5; border-color: #cbd5e1; color: #334155; }
.obtn-wa { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.obtn-wa:hover { background: #dcfce7; border-color: #86efac; color: #166534; }
.obtn-del { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.obtn-del:hover { background: #fee2e2; border-color: #f87171; }
.sched-remind-btn { padding: 4px 8px; color: #64748b; }
.sched-remind-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #2563eb; }
@keyframes sched-blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.sched-alerting { animation: sched-blink 0.7s infinite !important; }
@keyframes sched-card-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,0)} 50%{box-shadow:0 0 0 6px rgba(220,38,38,0.35)} }
.sched-card-alert { border-left: 3px solid #dc2626 !important; animation: sched-card-pulse 1s infinite; }
.order-item-thumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.order-item-thumbs img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; border: 1px solid #e0e6f0; }
.order-item-thumb-placeholder { width: 36px; height: 36px; background: #f0f4fa; border-radius: 5px; border: 1px solid #e0e6f0; display: inline-flex; align-items: center; justify-content: center; color: #bbb; font-size: 0.7rem; }
.order-item-thumb-more { font-size: 0.75rem; color: #888; font-weight: 600; }

/* Yeni sipariş formu */
.order-form-section { background: #f8faff; border: 1px solid #dde3f0; border-radius: 10px; padding: 16px; height: 100%; }
.order-form-section-title { font-weight: 700; color: #1e293b; font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #dde3f0; }

/* Ürün arama dropdown */
.ord-product-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid #ccd5e3; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); z-index: 9999;
  max-height: 280px; overflow-y: auto;
}
.ord-product-item { padding: 8px 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.88rem; }
.ord-product-item:hover { background: #f0f4fa; }
.ord-product-item-name { color: #222; }
.ord-product-item-price { color: #1e293b; font-weight: 600; white-space: nowrap; }

/* Sepet */
.ord-basket { min-height: 80px; max-height: 340px; overflow-y: auto; margin-bottom: 8px; }
.ord-basket-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: start;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e6f0;
  margin-bottom: 6px;
}
.ord-basket-name { font-size: 0.88rem; font-weight: 600; color: #1e293b; }
.ord-basket-controls { font-size: 0.82rem; }
.ord-basket-subtotal { font-weight: 700; color: #1e293b; white-space: nowrap; font-size: 0.95rem; padding-top: 2px; }
.ord-total-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 0; border-top: 2px solid #dde3f0; font-size: 1rem; color: #1e293b; }

/* ── Kargo İş Günü Geri Sayımı ── */
.kargo-cd {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin-top: 4px;
}
.kargo-cd i { font-size: 0.75rem; }
.kargo-cd-ok   { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.kargo-cd-warn { background: #fff3e0; color: #e65100; border: 1px solid #ffb74d; }
.kargo-cd-expired { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }
.kargo-cd-future  { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

@keyframes kargo-pulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow: none; }
  50%      { opacity:0.82; transform:scale(1.04);
             box-shadow: 0 0 8px rgba(230,81,0,0.35); }
}
@keyframes kargo-pulse-red {
  0%,100% { opacity:1; transform:scale(1); box-shadow: none; }
  50%      { opacity:0.82; transform:scale(1.04);
             box-shadow: 0 0 8px rgba(198,40,40,0.4); }
}
.kargo-cd-warn    { animation: kargo-pulse     1.4s ease-in-out infinite; }
.kargo-cd-expired { animation: kargo-pulse-red 0.9s ease-in-out infinite; }
