/* ============================================================
   SÜPERNET MERKEZİ YÖNETİM — STYLE SHEET
   ============================================================ */

/* ---------- TEMA DEĞİŞKENLERİ ---------- */
:root[data-theme="koyu"], :root {
  --bg-primary:    #070714;
  --bg-secondary:  #0d0d28;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border-glass:  rgba(255,255,255,0.08);
  --border-input:  rgba(255,255,255,0.15);
  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --accent-1:      #7c3aed;
  --accent-2:      #2563eb;
  --accent-3:      #06b6d4;
  --accent-red:    #ef4444;
  --accent-green:  #10b981;
  --accent-yellow: #f59e0b;
  --gradient-main: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(124,58,237,.15) 0%, rgba(37,99,235,.1) 100%);
  --shadow-card:   0 8px 32px rgba(0,0,0,.4);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.3);
  --navbar-bg:     rgba(7,7,20,0.92);
  --sidebar-bg:    rgba(13,13,40,0.95);
  --input-bg:      rgba(255,255,255,0.05);
  --scrollbar-bg:  rgba(255,255,255,0.05);
  --scrollbar-thumb: rgba(124,58,237,.5);
}

:root[data-theme="acik"] {
  --bg-primary:    #f1f5f9;
  --bg-secondary:  #e2e8f0;
  --bg-card:       rgba(255,255,255,0.9);
  --bg-card-hover: rgba(255,255,255,1);
  --border-glass:  rgba(0,0,0,0.07);
  --border-input:  rgba(0,0,0,0.15);
  --text-primary:  #1e293b;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --shadow-card:   0 4px 24px rgba(0,0,0,.08);
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --navbar-bg:     rgba(241,245,249,0.95);
  --sidebar-bg:    rgba(226,232,240,0.98);
  --input-bg:      rgba(0,0,0,0.03);
  --scrollbar-bg:  rgba(0,0,0,0.05);
  --scrollbar-thumb: rgba(124,58,237,.4);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background .3s, color .3s;
  min-height: 100vh;
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { color: var(--accent-1); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.navbar-brand { display: flex; align-items: center; gap: .75rem; }

.sidebar-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 1.1rem; padding: .4rem;
  border-radius: 8px; transition: color .2s, background .2s;
  display: none;
}
.sidebar-toggle:hover { color: var(--text-primary); background: var(--bg-card); }

.brand-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; }

.brand-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
}

.brand-text {
  font-size: .95rem; font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.navbar-actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- SIDEBAR ---------- */
.layout {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
}

.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-glass);
  display: flex; flex-direction: column;
  position: fixed; top: 60px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
  transition: transform .25s ease;
}

.sidebar-nav { padding: 1rem .75rem; flex: 1; }

.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background .2s, color .2s;
  margin-bottom: .2rem;
}
.nav-item i { width: 18px; text-align: center; font-size: .95rem; }
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active {
  background: var(--gradient-card);
  color: var(--accent-3);
  border: 1px solid rgba(124,58,237,.3);
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.rol-badge {
  font-size: .75rem; padding: .3rem .8rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--accent-3);
  font-weight: 600;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  margin-left: 220px;
  flex: 1;
  padding: 1.75rem;
  min-width: 0;
}

/* ---------- GLASSMORPHISM KART ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: background .2s, box-shadow .2s;
}
.glass-card:hover { background: var(--bg-card-hover); }

/* ---------- İSTATİSTİK KARTLARI ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform .2s, box-shadow .2s, background .2s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-main);
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  background: var(--bg-card-hover);
}

.stat-label {
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .5rem;
}
.stat-value {
  font-size: 2rem; font-weight: 700; line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-icon {
  position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 2rem; opacity: .08;
}

/* ---------- GRAFİK ALANI ---------- */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.charts-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.chart-box { position: relative; height: 260px; }

/* ---------- TABLO ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}
table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
}
thead tr {
  border-bottom: 1px solid var(--border-glass);
}
th {
  padding: .85rem 1rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: left; white-space: nowrap;
  background: rgba(0,0,0,.1);
}
td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-primary);
  vertical-align: middle;
}
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- BADGES ---------- */
.badge {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  white-space: nowrap;
}
.badge-havuzda    { background: rgba(100,116,139,.2); color: #94a3b8; border: 1px solid rgba(100,116,139,.3); }
.badge-atandi     { background: rgba(37,99,235,.2);  color: #60a5fa; border: 1px solid rgba(37,99,235,.3); }
.badge-bekliyor   { background: rgba(245,158,11,.2); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-tamamlandi { background: rgba(16,185,129,.2); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.badge-iptal      { background: rgba(239,68,68,.2);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.badge-acil       { background: rgba(239,68,68,.2);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.badge-normal     { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.badge-default    { background: var(--bg-card); color: var(--text-secondary); }

/* ---------- FORMLAR ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }

label {
  font-size: .8rem; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .03em;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], textarea, select {
  width: 100%;
  padding: .65rem .9rem;
  background: var(--input-bg);
  border: 1px solid var(--border-input);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
select option { background: var(--bg-secondary); color: var(--text-primary); }
textarea { resize: vertical; min-height: 90px; }

/* Radio toggle grubu */
.toggle-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.toggle-group input[type="radio"] { display: none; }
.toggle-group label {
  padding: .5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  cursor: pointer;
  font-size: .85rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
  letter-spacing: 0;
}
.toggle-group input[type="radio"]:checked + label {
  background: var(--gradient-main);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 12px rgba(124,58,237,.3);
}

/* ---------- BUTONLAR ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: 10px;
  border: none; cursor: pointer;
  font-size: .88rem; font-weight: 600;
  font-family: inherit;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
}
.btn-danger:hover { background: rgba(239,68,68,.25); color: #fca5a5; }
.btn-success {
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  color: #34d399;
}
.btn-success:hover { background: rgba(16,185,129,.25); }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: .45rem;
  border-radius: 8px; font-size: 1rem;
  transition: color .2s, background .2s;
}
.btn-icon:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-text { background: none; border: none; cursor: pointer; color: var(--accent-3); font-size: .8rem; font-family: inherit; }
.btn-text:hover { text-decoration: underline; }

/* ---------- SAYFA BAŞLIĞI ---------- */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem;
}
.page-title { font-size: 1.4rem; font-weight: 700; }
.page-subtitle { font-size: .85rem; color: var(--text-muted); margin-top: .1rem; }

/* ---------- ALERTler ---------- */
.alert {
  padding: .85rem 1.1rem;
  border-radius: 10px; margin-bottom: 1rem;
  font-size: .88rem; display: flex; align-items: center; gap: .6rem;
}
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #34d399; }
.alert-danger   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; }
.alert-warning  { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fbbf24; }
.alert-info     { background: rgba(6,182,212,.1);  border: 1px solid rgba(6,182,212,.3);  color: #22d3ee; }

/* ---------- BİLDİRİM DROPDOWN ---------- */
.notif-wrapper { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--accent-red);
  color: #fff; border-radius: 9px;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.notif-badge.hidden { display: none; }
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 320px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: none; z-index: 200;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-weight: 600; font-size: .9rem;
}
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: .84rem;
  display: flex; gap: .6rem; align-items: flex-start;
  transition: background .15s;
}
.notif-item:hover { background: var(--bg-card); }
.notif-item.okunmamis { background: rgba(124,58,237,.05); }
.notif-item .notif-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-1); flex-shrink: 0; margin-top: 5px;
}
.notif-item .notif-tarih { font-size: .73rem; color: var(--text-muted); }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ---------- KULLANICI DROPDOWN ---------- */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: 10px; cursor: pointer; padding: .4rem .75rem;
  color: var(--text-primary); font-family: inherit;
  transition: background .2s;
}
.user-btn:hover { background: var(--bg-card-hover); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700;
}
.user-name { font-size: .85rem; font-weight: 500; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: none; z-index: 200; overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  color: var(--text-secondary); font-size: .88rem;
  transition: background .15s, color .15s;
}
.user-dropdown a:hover { background: var(--bg-card); color: var(--text-primary); }
.user-dropdown a i { width: 16px; text-align: center; }

/* ---------- MODALler ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-card);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 1.05rem; font-weight: 700;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: .75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-glass);
}
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.1rem;
  padding: .2rem; border-radius: 6px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text-primary); }

/* ---------- GİRİŞ / KAYIT SAYFALARI ---------- */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: var(--bg-primary);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: fixed; top: -30%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: fixed; bottom: -30%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-card);
  position: relative; z-index: 1;
}
.auth-logo {
  text-align: center; margin-bottom: 2rem;
}
.auth-logo-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gradient-main);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin-bottom: .75rem;
  box-shadow: 0 8px 24px rgba(124,58,237,.3);
}
.auth-title {
  font-size: 1.25rem; font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-subtitle { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }

/* ---------- TEMA TOGGLE BUTON ---------- */
.tema-toggle { font-size: 1.05rem; }

/* ---------- EKIP STATÜSÜ TOGGLE ---------- */
.toggle-switch {
  position: relative; display: inline-block;
  width: 42px; height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer;
  inset: 0; background: var(--border-input);
  border-radius: 24px; transition: .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; bottom: 3px;
  background: #fff; transition: .2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent-1);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

/* ---------- DETAY SAYFASI ---------- */
.detail-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem;
}
.detail-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: .5rem; padding: .6rem 0;
  border-bottom: 1px solid var(--border-glass);
  align-items: start;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding-top: .1rem; }
.detail-value { color: var(--text-primary); font-size: .92rem; }

/* ---------- FİLTRE FORMU ---------- */
.filter-bar {
  display: flex; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1rem; align-items: flex-end;
}
.filter-bar select, .filter-bar input { max-width: 200px; }
.filter-bar .btn { white-space: nowrap; }

/* ---------- BOŞ DURUM ---------- */
.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; }
.empty-state p { font-size: .9rem; }

/* ---------- RESPONSİVE ---------- */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .charts-grid { grid-template-columns: 1fr; }
  .charts-grid-3 { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .brand-text { display: none; }

  /* Tabloda yardımcı sütunları gizle */
  .tbl-gizle-md { display: none !important; }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 1rem; }
  .navbar { padding: 0 .75rem; }
  .auth-card { padding: 1.75rem; }

  /* Daha az sütun göster */
  .tbl-gizle-sm { display: none !important; }

  /* Tablo hücre padding'i küçült */
  td, th { padding: .6rem .5rem !important; font-size: .78rem; }
}

/* ---------- ADRES BULMA ---------- */
.adres-secim-item {
  padding: .6rem .85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .83rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  margin-bottom: .35rem;
  background: var(--bg-card);
  transition: background .15s, color .15s;
  display: flex; align-items: flex-start; gap: .4rem;
}
.adres-secim-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-3);
}

/* ---------- 3D TİLT EFEKTİ ---------- */
.tilt-kart {
  transform-style: preserve-3d;
  transition: transform .08s ease, box-shadow .2s ease !important;
  will-change: transform;
}
.tilt-kart:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,.5) !important;
}
.tilt-ic {
  transform: translateZ(12px);
  pointer-events: none;
}

/* ---------- ANİMASYONLAR & EFEKTLER ---------- */

/* Blob arka plan */
.blob-bg {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18;
  animation: blobMove 12s ease-in-out infinite alternate;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -100px; left: -100px;
  animation-duration: 14s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #2563eb, transparent);
  top: 30%; right: -80px;
  animation-duration: 10s; animation-delay: -4s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -60px; left: 30%;
  animation-duration: 16s; animation-delay: -8s;
}

@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-30px, 20px) scale(.95); }
  100% { transform: translate(20px, 40px) scale(1.05); }
}

/* Sayaç animasyonu */
.stat-value { transition: all .3s; }

/* Glow efektleri */
@keyframes glowRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { box-shadow: 0 0 18px 4px rgba(239,68,68,.35); }
}
@keyframes glowGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
  50%       { box-shadow: 0 0 18px 4px rgba(16,185,129,.35); }
}
@keyframes glowBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50%       { box-shadow: 0 0 14px 3px rgba(37,99,235,.3); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.012); }
}

tr.acil-satir td:first-child { border-left: 3px solid var(--accent-red); }
.is-kart.acil         { animation: glowRed 2.5s ease-in-out infinite; }
.is-kart.tamamlandi   { animation: glowGreen 3s ease-in-out infinite; }

.badge-acil { animation: pulse 1.8s ease-in-out infinite; }

/* Stat kart glow hover */
.stat-card:hover { animation: glowBlue 1.5s ease-in-out infinite; }

/* ---------- DURUM ZAMANÇİZELGESİ ---------- */
.timeline {
  display: flex; align-items: center;
  gap: 0; margin: 1.25rem 0;
  overflow-x: auto; padding-bottom: .5rem;
}
.timeline-adim {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 80px; position: relative;
}
.timeline-adim:not(:last-child)::after {
  content: '';
  position: absolute; top: 20px; left: 50%;
  width: 100%; height: 2px;
  background: var(--border-glass);
  z-index: 0;
}
.timeline-adim:not(:last-child).gecti::after {
  background: var(--gradient-main);
}
.timeline-nokta {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; z-index: 1; position: relative;
  background: var(--bg-secondary);
  border: 2px solid var(--border-glass);
  color: var(--text-muted);
  transition: all .3s;
}
.timeline-adim.aktif .timeline-nokta {
  background: var(--gradient-main);
  border-color: transparent; color: #fff;
  box-shadow: 0 0 16px rgba(124,58,237,.5);
  animation: pulse 2s ease-in-out infinite;
}
.timeline-adim.gecti .timeline-nokta {
  background: var(--gradient-main);
  border-color: transparent; color: #fff;
}
.timeline-adim.iptal .timeline-nokta {
  background: rgba(239,68,68,.2);
  border-color: rgba(239,68,68,.4); color: #f87171;
}
.timeline-label {
  font-size: .7rem; font-weight: 600; margin-top: .4rem;
  color: var(--text-muted); text-align: center;
  white-space: nowrap;
}
.timeline-adim.aktif .timeline-label { color: var(--accent-3); }
.timeline-adim.gecti .timeline-label { color: var(--text-primary); }

/* Sayfa fade-in */
.main-content { animation: fadeIn .35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HIZLI ARAMA ---------- */
.arama-wrapper { position: relative; }

.arama-kutu {
  display: none; align-items: center; gap: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  border-radius: 10px; padding: .3rem .5rem;
  min-width: 260px;
}
.arama-kutu.acik { display: flex; }
.arama-kutu input {
  border: none; background: none; outline: none;
  color: var(--text-primary); font-size: .88rem;
  width: 100%; padding: .2rem .3rem;
}

.arama-sonuclar {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 320px; max-height: 380px; overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: none; z-index: 200;
}
.arama-sonuclar.acik { display: block; }

.arama-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
  text-decoration: none; color: var(--text-primary);
  transition: background .15s;
}
.arama-item:hover { background: var(--bg-card); }
.arama-item:last-child { border-bottom: none; }
.arama-item-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-card);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--accent-3); flex-shrink: 0;
}
.arama-item-musteri { font-weight: 600; font-size: .88rem; }
.arama-item-alt { font-size: .76rem; color: var(--text-muted); margin-top: .1rem; }
.arama-bos { padding: 1.25rem; text-align: center; color: var(--text-muted); font-size: .85rem; }

/* ---------- YARDIMCI ---------- */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--text-muted); font-size: .85rem; }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
