/* ============================================================
   YAKUP GÜLER FIGHT CLUB — Admin Paneli (yeniden tasarım)
   ============================================================ */
.admin-body { background: #0b0b0e; }
.admin-layout { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.admin-sidebar {
  width: 270px; flex: 0 0 auto;
  background: linear-gradient(180deg, #141419 0%, #0f0f13 100%);
  border-right: 1px solid var(--c-border-soft);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
}
.admin-brand {
  display: flex; align-items: center; gap: 13px; padding: 22px 20px;
  border-bottom: 1px solid var(--c-border-soft);
}
.admin-brand .brand-logo { width: 42px; height: 42px; border-radius: 11px; }
.admin-brand .brand-name { font-size: 1.02rem; letter-spacing: 0.03em; line-height: 1.1; }
.admin-brand .brand-name span { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--c-accent); }
.admin-brand .badge {
  margin-left: auto; background: var(--c-accent-soft); color: #ff6b7a; border-color: rgba(225,29,46,.3);
}

.admin-nav { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.admin-nav .group-label {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #aab0c5; font-weight: 700; padding: 18px 12px 7px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 10px; color: #fff; font-size: 0.9rem; font-weight: 500;
  transition: all var(--tr); border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.admin-nav a::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(12,12,16,0.62), rgba(12,12,16,0.34));
  border-radius: inherit;
}
.admin-nav a > * { position: relative; z-index: 1; }
.admin-nav a:hover { border-color: rgba(255,255,255,0.22); }
.admin-nav a:hover::after { background: linear-gradient(90deg, rgba(12,12,16,0.5), rgba(12,12,16,0.26)); }
.admin-nav a.active { border-color: rgba(255,255,255,0.25); }

/* ---------- Grup renkleri: Genel=mavi, İçerik=kırmızı, Yönetim=altın ---------- */
.admin-nav .group-label.tone-blue { color: #7fb2ff; }
.admin-nav .group-label.tone-red { color: #ff8a95; }
.admin-nav .group-label.tone-gold { color: #f5c93b; }

/* Aktif menü — grup rengiyle vurgu */
.admin-nav a.active.tone-blue { border-color: rgba(59,130,246,0.55); box-shadow: inset 3px 0 0 0 #3b82f6; }
.admin-nav a.active.tone-blue::after { background: linear-gradient(90deg, rgba(37,99,235,0.45), rgba(12,12,16,0.4)); }
.admin-nav a.active.tone-red { border-color: rgba(225,29,46,0.6); box-shadow: inset 3px 0 0 0 var(--c-accent); }
.admin-nav a.active.tone-red::after { background: linear-gradient(90deg, rgba(225,29,46,0.5), rgba(12,12,16,0.4)); }
.admin-nav a.active.tone-gold { border-color: rgba(240,185,11,0.55); box-shadow: inset 3px 0 0 0 var(--c-gold); }
.admin-nav a.active.tone-gold::after { background: linear-gradient(90deg, rgba(240,185,11,0.4), rgba(12,12,16,0.4)); }

.admin-nav a > span:not(.count) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-nav .count {
  margin-left: auto; background: var(--c-accent); color: #fff; font-size: 0.68rem;
  min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 6px; font-weight: 700;
}

.admin-sidebar-foot { border-top: 1px solid var(--c-border-soft); padding: 14px; }
.admin-sidebar-user { display: flex; align-items: center; gap: 11px; padding: 8px; margin-bottom: 8px; }
.admin-sidebar-user .avatar { width: 38px; height: 38px; border-radius: 11px; font-size: 0.85rem; }
.admin-sidebar-user b { display: block; font-size: 0.88rem; line-height: 1.2; }
.admin-sidebar-user span { font-size: 0.72rem; color: var(--c-dim); text-transform: capitalize; }
.admin-sidebar-foot .logout {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.16); border-radius: 10px;
  color: #f87171; font-size: 0.88rem; cursor: pointer; font-family: var(--font-body); font-weight: 600;
  transition: all var(--tr);
}
.admin-sidebar-foot .logout:hover { background: rgba(239,68,68,0.16); }

/* ---------- Topbar ---------- */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  min-height: 70px; background: rgba(15,15,19,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; position: sticky; top: 0; z-index: 60; flex-wrap: wrap;
}
.admin-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-crumb { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.admin-crumb .root { color: var(--c-dim); font-size: 0.86rem; }
.admin-crumb .sep { color: #3a3a44; }
.admin-crumb h1 {
  font-size: 1.12rem; margin: 0; font-weight: 600; letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-topbar-right { display: flex; align-items: center; gap: 12px; }
.admin-search { position: relative; display: flex; align-items: center; }
.admin-search svg { position: absolute; left: 12px; stroke: var(--c-dim); pointer-events: none; }
.admin-search input {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px;
  color: var(--c-text); padding: 9px 14px 9px 38px; font-size: 0.86rem; width: 220px;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.admin-search input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.admin-bell {
  position: relative; width: 42px; height: 42px; border-radius: 11px;
  background: var(--c-surface); border: 1px solid var(--c-border); display: grid; place-items: center;
  color: #cdd0e4; transition: all var(--tr);
}
.admin-bell:hover { color: #fff; border-color: #3a3a44; }
.admin-bell .dot {
  position: absolute; top: -5px; right: -5px; background: var(--c-accent); color: #fff;
  font-size: 0.62rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px; border: 2px solid #0f0f13;
}
.admin-user { display: flex; align-items: center; gap: 11px; padding-left: 4px; }
.admin-user .avatar { width: 40px; height: 40px; border-radius: 11px; }
.admin-user b { display: block; font-size: 0.88rem; line-height: 1.2; }
.admin-user span { font-size: 0.72rem; color: var(--c-dim); text-transform: capitalize; }

.admin-content { padding: 28px; min-width: 0; }

/* ---------- Page heading ---------- */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head .t h1 { font-size: 1.55rem; margin: 0; }
.admin-head .t p { color: var(--c-dim); margin: 4px 0 0; font-size: 0.88rem; }
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-head form { min-width: 0; }
.admin-head .input { width: 100%; }

/* ---------- Stat cards ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.kpi {
  background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: 14px;
  padding: 20px; display: flex; gap: 15px; align-items: center; min-width: 0;
  background-size: cover; background-position: center;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.kpi:hover { transform: translateY(-3px); border-color: #3a3a44; box-shadow: var(--shadow); }
.kpi-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; background: var(--c-surface-2); color: #fff; }
.kpi-icon.red { background: linear-gradient(135deg, #e11d2e, #7c0f1d); color: #fff; }
.kpi-icon.gold { background: linear-gradient(135deg, #f0b90b, #b8860b); color: #fff; }
.kpi-icon.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.kpi-icon.green { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.kpi b { font-family: var(--font-display); font-size: 1.75rem; display: block; line-height: 1; white-space: nowrap; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.kpi span { color: #c2c2cd; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.dash-card { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: 14px; padding: 22px; }
.dash-card h3 { font-size: 1.02rem; margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.dash-card h3 svg { stroke: var(--c-accent); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--c-border-soft); }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .grow span { font-size: 0.76rem; color: var(--c-dim); }
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 18px; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar .bar { width: 100%; max-width: 40px; background: linear-gradient(180deg, var(--c-accent), #6a0d19); border-radius: 7px 7px 0 0; min-height: 2px; transition: height .45s ease; }
.chart-bar .lbl { font-size: 0.68rem; color: var(--c-dim); }
.chart-bar .val { font-size: 0.78rem; color: var(--c-text); font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border-soft); border-radius: 14px; background: var(--c-surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.table th {
  text-align: left; padding: 13px 18px; background: #121217; color: var(--c-dim);
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--c-border-soft); white-space: nowrap; font-weight: 600;
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--c-border-soft); vertical-align: middle; word-break: break-word; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--tr); }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table td .text-muted { word-break: break-word; }

/* ---------- Forms ---------- */
.form-card { background: var(--c-surface); border: 1px solid var(--c-border-soft); border-radius: 14px; padding: 28px; max-width: 840px; }
.form-card .form-title { font-size: 1.15rem; margin: 0 0 4px; }
.form-card .form-sub { color: var(--c-dim); font-size: 0.88rem; margin: 0 0 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.image-preview { width: 100%; max-width: 260px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--c-border); margin-bottom: 12px; background: var(--c-surface-2); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-input { background: var(--c-surface-2); border: 1px dashed var(--c-border); border-radius: 11px; padding: 18px; text-align: center; color: var(--c-muted); cursor: pointer; transition: border-color var(--tr), background var(--tr); }
.file-input:hover { border-color: var(--c-accent); background: var(--c-surface-3); }
.file-input input { display: none; }
.file-input .fname { display: block; font-size: 0.85rem; margin-top: 6px; color: var(--c-dim); }

/* ---------- Empty ---------- */
.admin .empty { border-style: dashed; }

/* ---------- Responsive nav toggle ---------- */
.admin-toggle { display: none; background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); width: 42px; height: 42px; border-radius: 11px; cursor: pointer; place-items: center; }
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--tr); }

.admin-nav-view {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 8px;
  border-radius: 10px; color: var(--c-muted); font-size: 0.86rem; transition: all var(--tr);
}
.admin-nav-view:hover { color: #fff; background: rgba(255,255,255,0.04); }
.admin-layout .empty { border-style: dashed; }

/* Tüm admin ikonlarını beyaza zorla (siyah görünümü engelle) */
.admin-body svg { stroke: #fff; }

/* İşlemler (aksiyon) butonları renkli */
.admin-content .btn--ghost {
  color: #8fb4ff;
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.3);
}
.admin-content .btn--ghost:hover {
  color: #fff;
  background: rgba(59,130,246,0.26);
  border-color: rgba(59,130,246,0.45);
}
.admin-content .btn--danger {
  color: #fff;
  background: rgba(239,68,68,0.85);
  border-color: rgba(239,68,68,0.9);
}
.admin-content .btn--danger:hover { background: #dc2626; }

