/* ============ Admin Panel Namespace — Violet–Teal Dark Neon ============ */
:root {
  --ap-bg: #07080a;              /* Sayfa arka planı (siyah) */
  --ap-panel-bg: #0e1117;        /* İçerik/kart zemin */
  --ap-sidebar-bg: #050607;      /* Sidebar siyah */
  --ap-sidebar-hover: rgba(139,92,246,.14);

  --ap-text: #f1f5f9;            /* Genel metin rengi */
  --ap-muted: #a8b3c7;           /* Küçük yazılar */
  --ap-border: rgba(255,255,255,.13);
  --ap-card-shadow: 0 8px 22px rgba(0,0,0,.55);
  --ap-radius: 12px;

  /* Mor–Teal paleti */
  --ap-primary: #8b5cf6;         /* Violet 500 */
  --ap-primary-600: #6d28d9;     /* Violet 700 */
  --ap-accent: #14b8a6;          /* Teal 500 */
  --ap-focus: 0 0 0 3px rgba(139,92,246,.35);

  --ap-z-navbar: 1002;
  --ap-z-sidebar: 1001;
  --ap-z-infopanel: 1100;
}

/* Dark mode yine koyu kalsın */
@media (prefers-color-scheme: dark) {
  :root {
    --ap-bg: #050608;
    --ap-panel-bg: #0b0f14;
    --ap-sidebar-bg: #040506;
    --ap-text: #f8fafc;
    --ap-muted: #b2bccd;
    --ap-border: rgba(255,255,255,.12);
    --ap-card-shadow: 0 10px 26px rgba(0,0,0,.6);
    --ap-primary: #7c3aed;
    --ap-primary-600: #5b21b6;
    --ap-accent: #0d9488;
    --ap-focus: 0 0 0 3px rgba(124,58,237,.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ Genel ============ */
.ap .topbar { display: none; }

.ap {
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--ap-bg);
  color: var(--ap-text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.ap, .ap p, .ap li, .ap td, .ap label,
.ap input, .ap select, .ap textarea, .ap .card-body {
  color: var(--ap-text);
}
.ap .text-muted, .ap small, .ap .form-text, .ap .hint {
  color: var(--ap-muted) !important;
}
.ap h1, .ap h2, .ap h3, .ap h4, .ap h5, .ap h6,
.ap .card-header { color: #fff; }
.ap a { color: #c8d9ff; text-decoration: none; }
.ap a:hover { color: #fff; text-decoration: underline; }

/* ============ Sidebar ============ */
.ap .sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100dvh;
  background: var(--ap-sidebar-bg);
  color: #fff;
  z-index: var(--ap-z-sidebar);
  transition: width .25s ease;
  padding-top: 16px;
  box-shadow: 6px 0 22px rgba(0,0,0,.45), inset -1px 0 0 rgba(255,255,255,.04);
}
.ap.ap--collapsed .sidebar { width: 72px; }
.ap.ap--collapsed .sidebar a { padding-left: 18px; }
.ap.ap--collapsed .sidebar a span { display: none; }
.ap .sidebar a {
  color: #d9e1ef;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; margin: 8px 12px;
  border-radius: 10px; font-size: 16px;
  transition: all .2s ease;
}
.ap .sidebar a:hover {
  background: linear-gradient(90deg, rgba(139,92,246,.18), rgba(20,184,166,.18));
  color: #fff; padding-left: 26px;
}
.ap .sidebar i { min-width: 20px; text-align: center; }
.sidebar .lang-switch {
  display: flex; justify-content: center; gap: 12px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.sidebar .lang-switch a {
  color: #c7cfdb; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; font-size: 14px; font-weight: 600;
}
.sidebar .lang-switch a.active {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #0b0d12;
  border-color: transparent;
}

/* ========== Sidebar collapsible groups (details/summary) ========== */
.ap .sidebar details { margin: .35rem 12px; }

.ap .sidebar summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .9rem;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.ap .sidebar summary:hover {
  background: var(--ap-sidebar-hover);
}
.ap .sidebar summary:focus {
  outline: none;
  box-shadow: var(--ap-focus);
}
.ap .sidebar summary::-webkit-details-marker { display: none; }
.ap .sidebar summary .label { display: flex; align-items: center; }
.ap .sidebar summary .label i {
  width: 1.1rem;
  text-align: center;
  margin-right: .5rem;
}
.ap .sidebar summary .caret { transition: transform .2s ease; }
.ap .sidebar details[open] summary .caret { transform: rotate(90deg); }

.ap .sidebar .group-links { margin-top: 4px; }
.ap .sidebar .group-links a {
  display: flex;
  align-items: center;
  padding: .45rem .9rem;
  color: #d9e1ef;
  margin: 6px 0;
}
.ap .sidebar .group-links a .fas,
.ap .sidebar .group-links a .fab { width: 1.1rem; text-align: center; margin-right: .5rem; }
/* ========== /Sidebar collapsible groups ========== */

/* ============ İçerik ============ */
.ap .content {
  margin-left: 280px;
  padding: 28px;
  min-height: 100dvh;
  background: var(--ap-panel-bg);
  transition: margin-left .25s ease;
}
.ap.ap--collapsed .content { margin-left: 72px; }

/* Kartlar */
.ap .card {
  margin-bottom: 20px;
  border-radius: var(--ap-radius);
  background: var(--ap-panel-bg);
  border: 1px solid var(--ap-border);
  box-shadow: var(--ap-card-shadow);
}
.ap .card-header {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #fff;
  font-size: 18px; padding: 14px 16px; font-weight: 700;
}
.ap .card .card-body { padding: 18px; }

/* Formlar */
.ap input, .ap select, .ap textarea {
  width: 100%; font-size: 15px;
  border-radius: 10px; border: 1px solid var(--ap-border);
  padding: 10px 12px;
  background: #0a0d12;
  color: var(--ap-text);
}
.ap input::placeholder, .ap textarea::placeholder { color: #c3cad6; opacity: .8; }
.ap input:focus, .ap select:focus, .ap textarea:focus {
  border-color: var(--ap-primary);
  box-shadow: var(--ap-focus);
  background: #0f131a;
  outline: none;
}

/* Butonlar */
.ap button, .ap .btn-ap {
  width: 100%;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #fff;
  border: none; border-radius: 10px;
  margin-top: 14px;
  font-size: 16px; font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ap button:hover, .ap .btn-ap:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(139,92,246,.25), 0 6px 18px rgba(20,184,166,.18);
}
.ap button:active { transform: translateY(0); }
.ap .btn-ghost {
  background: transparent;
  color: var(--ap-text);
  border: 1px solid var(--ap-border);
}
.ap .btn-ghost:hover {
  background: rgba(139,92,246,.1);
  color: #fff; border-color: var(--ap-primary);
}

/* Tablolar */
.ap .table-responsive {
  width: 100%; overflow: auto;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
}
.ap table { width: 100%; border-collapse: collapse; min-width: 720px; }
.ap th, .ap td {
  padding: 12px 14px; border-bottom: 1px solid var(--ap-border);
}
.ap th {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #fff; font-weight: 700;
  position: sticky; top: 0; z-index: 1;
}
.ap tr:hover td { background: rgba(139,92,246,.08); }

/* Scrollbar */
.ap *::-webkit-scrollbar { height: 10px; width: 10px; }
.ap *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--ap-primary), var(--ap-accent));
  border-radius: 8px;
}
.ap *::-webkit-scrollbar-track { background: transparent; }

/* Alert */
.ap .alert { border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.ap .alert-success {
  background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.42); color: #b6fff0;
}
.ap .alert-danger {
  background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.42); color: #ffd0d9;
}
.ap .alert-info {
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.42); color: #e1d6ff;
}

/* ============ Mobil Navbar (≤992px) ============ */
@media (max-width: 992px) {
  .ap .topbar {
    position: fixed; top:0; left:0; right:0; height:56px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
    color:#fff; display:flex; align-items:center;
    padding:0 12px; z-index: var(--ap-z-navbar);
  }
  .ap .content {
    margin-left: 0 !important;
    padding: 20px !important; padding-top: 68px !important;
  }
  .ap .sidebar {
    position: fixed; top: 56px; left: 0; right: 0;
    width: auto; max-height: calc(100dvh - 56px);
    overflow: auto;
    background: var(--ap-sidebar-bg);
    padding: 8px 10px;
    z-index: var(--ap-z-navbar);
    transform-origin: top;
    transform: scaleY(0); opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .ap.ap--mopen .sidebar { transform: scaleY(1); opacity: 1; pointer-events: auto; }
}

/* ========== Login ========== */
.ap.ap--login {
  min-height: 100dvh;
  display: grid; grid-template-rows: 1fr auto;
  align-items: center; justify-items: center;
  padding: 24px;
  background: var(--ap-bg);
}
.ap.ap--login [role="main"] {
  max-width: 460px; width: 100%;
  background: var(--ap-panel-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 32px; box-shadow: var(--ap-card-shadow);
}
.ap.ap--login [role="main"] .logo {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; color: #fff; font-weight: 800; font-size: 22px;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
}
.ap.ap--login [role="main"] h1 {
  margin: 10px 0 6px; text-align: center; font-size: 24px; color: var(--ap-text);
}
.ap.ap--login [role="main"] .sub {
  margin: 0 0 18px; text-align: center; opacity: .8; font-size: 14px;
}
.ap.ap--login [role="main"] input {
  text-align: center;
}
.ap.ap--login [role="main"] button[type="submit"] {
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  color: #fff; font-weight: 800;
}
.ap.ap--login .footer {
  text-align: center; opacity: .75; font-size: 12px; color: var(--ap-text);
}
/* ==================== TYPOGRAFİ VARİANTLARI ==================== */

/* Varsayılan (typo-normal eklenmezse de çalışır) */
.ap.typo-normal {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
.ap.typo-normal h1, .ap.typo-normal h2, .ap.typo-normal h3,
.ap.typo-normal h4, .ap.typo-normal h5, .ap.typo-normal h6,
.ap.typo-normal .card-header {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ap.typo-normal .sidebar a { font-weight: 600; }
.ap.typo-normal button, .ap.typo-normal .btn-ap { font-weight: 700; }

/* Compact — daha küçük, sıkışık */
.ap.typo-compact {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.ap.typo-compact h1, .ap.typo-compact h2, .ap.typo-compact h3,
.ap.typo-compact .card-header {
  font-size: 16px;
  font-weight: 600;
}
.ap.typo-compact .sidebar a { font-size: 14px; font-weight: 500; }
.ap.typo-compact th, .ap.typo-compact td { font-size: 13px; }

/* Wide — daha büyük ve kalın */
.ap.typo-wide {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
}
.ap.typo-wide h1, .ap.typo-wide h2, .ap.typo-wide h3,
.ap.typo-wide .card-header {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.ap.typo-wide .sidebar a { font-size: 17px; font-weight: 700; }
.ap.typo-wide button, .ap.typo-wide .btn-ap { font-size: 17px; font-weight: 800; }
.ap.typo-wide th, .ap.typo-wide td { font-size: 16px; }

/* ───────────── PASİF KULLANICI RAPORU: SADECE BU SEKME ───────────── */
/* Dış kart (başlık) — yalnızca #inactiveReportsContent içinde geçerli */
#inactiveReportsContent .card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;      /* ikon + başlık SOLDA kalsın */
  gap: .5rem;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
  border-bottom: none;
  border-radius: .8rem .8rem 0 0;
}
#inactiveReportsContent .card-header i { margin-right: .4rem; }
/* loader sağa gitsin */
#inactiveReportsLoader { margin-left: auto !important; }

/* Form alanları — SADECE bu raporun gövdesinde */
#inactiveReportsBody form.form-inline {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem; padding: .8rem 1rem .5rem; background: #0f172a;
  border-bottom: 1px solid #1f2937;
}
#inactiveReportsBody form.form-inline label {
  color: #d1d5db; font-weight: 500; margin-right: .25rem; white-space: nowrap;
}
#inactiveReportsBody form.form-inline .form-control-sm {
  height: 2.4rem; font-size: .95rem; border-radius: .45rem;
  background: #1e293b; color: #e2e8f0; border:1px solid #334155; min-width:140px;
  transition: all .15s;
}
#inactiveReportsBody form.form-inline .form-control-sm:focus {
  background:#111827; border-color:#06b6d4; box-shadow:0 0 0 .15rem rgba(6,182,212,.25);
}
#inactiveReportsBody .btn-sm { padding:.45rem .9rem; font-size:.95rem; border-radius:.45rem; font-weight:500; }
#inactiveReportsBody .btn-primary { background:#06b6d4; border:none; }
#inactiveReportsBody .btn-outline-secondary { color:#e2e8f0; border-color:#475569; }
#inactiveReportsBody .btn-outline-secondary:hover { background:#475569; color:#fff; }

@media (max-width: 768px){
  #inactiveReportsBody form.form-inline{ flex-direction: column; align-items: stretch; }
  #inactiveReportsBody form.form-inline > *{ width:100%; }
}

/* İç kartlar (Platform Dağılımı / Detay) — SADECE bu raporun gövdesinde */
#inactiveReportsBody .card{
  background:#0f172a; border:1px solid #1f2937; border-radius:.8rem; margin-bottom:1rem;
  box-shadow:0 0 12px rgba(0,0,0,.35);
}
#inactiveReportsBody .card > .card-header{
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  background:linear-gradient(90deg,#6366f1,#06b6d4); color:#fff; font-weight:700;
  border-bottom:none; border-radius:.8rem .8rem 0 0; padding:.55rem .9rem;
}
#inactiveReportsBody .card > .card-header i{ font-size:1.05rem; opacity:.95; }
#inactiveReportsBody .card > .card-body{ background:#0f172a; color:#e5e7eb; }

/* Tablo ve barlar — SADECE bu raporun gövdesinde */
#inactiveReportsBody .table-scroll{ max-height:65vh; overflow:auto; }
#inactiveReportsBody table.table{ color:#e5e7eb; background:#111827; border-collapse:collapse; }
#inactiveReportsBody .table thead th{ position:sticky; top:0; background:#1e293b!important; border-color:#1f2937; font-weight:600; }
#inactiveReportsBody .table tbody tr:nth-child(odd){ background:#0f172a; }
#inactiveReportsBody .table tbody tr:nth-child(even){ background:#0b1220; }
#inactiveReportsBody .table td, #inactiveReportsBody .table th{ border-color:#1f2937; vertical-align:middle; }
#inactiveReportsBody .table-striped tbody tr:hover{ background:#172136; }
#inactiveReportsBody .table-scroll::-webkit-scrollbar{ height:8px; width:8px; }
#inactiveReportsBody .table-scroll::-webkit-scrollbar-thumb{ background:#334155; border-radius:8px; }
#inactiveReportsBody .table-scroll::-webkit-scrollbar-thumb:hover{ background:#475569; }

#inactiveReportsBody .ap-tiles{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.8rem; margin-bottom:1.2rem; }
#inactiveReportsBody .ap-tiles .tile{ border:1px solid #1f2937; border-radius:.75rem; padding:.75rem .9rem; background:#0f172a; box-shadow:0 0 8px rgba(0,0,0,.25); transition:transform .15s; }
#inactiveReportsBody .ap-tiles .tile:hover{ transform:translateY(-2px); }
#inactiveReportsBody .ap-tiles .tile .k{ font-size:.82rem; color:#9ca3af; }
#inactiveReportsBody .ap-tiles .tile .v{ font-weight:700; color:#e5e7eb; }
#inactiveReportsBody .ap-tiles .badge-soft{ background:#0b1220; border:1px solid #1f2937; color:#a7b1c2; padding:.15rem .4rem; border-radius:.35rem; }
#inactiveReportsBody .mini-bar{ height:8px; background:#1f2937; border-radius:6px; overflow:hidden; }
#inactiveReportsBody .mini-bar>span{ display:block; height:100%; background:linear-gradient(90deg,#6366f1,#06b6d4); transition:width .8s ease; }

@media (max-width:768px){
  #inactiveReportsBody .ap-tiles{ grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
}

/* ── SADECE Mobil Kullanıcı Raporu ───────────────────────────────── */
#mobilUserReportsBody{
  --cell-py: .35rem;
  --cell-px: .5rem;
  --fs: .92rem;
}

/* 1) FORMU 2 SÜTUN YAP (geniş ekranda) */
#mobilUserReportsBody form.form-inline{
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px 16px;
  align-items: end;
  padding: .8rem 1rem .6rem;
}
#mobilUserReportsBody form.form-inline .form-group{ margin:0; }
#mobilUserReportsBody form.form-inline label{
  display:block; margin:0 0 6px; color:#d1d5db; font-weight:500;
}
#mobilUserReportsBody form.form-inline .form-control,
#mobilUserReportsBody form.form-inline .form-control-sm{
  height: 2.2rem; font-size: .95rem; border-radius: .45rem;
}
/* Buton/aksiyon satırı iki kolonu kaplasın */
#mobilUserReportsBody form.form-inline .btn,
#mobilUserReportsBody form.form-inline .btn-group,
#mobilUserReportsBody form.form-inline .actions-row{
  grid-column: 1 / -1;
}

/* 2) TABLOYU SIKLAŞTIR */
#mobilUserReportsBody .table-scroll{
  max-height: 48vh;              /* daha kısa görünüm */
  overflow: auto;
}
#mobilUserReportsBody table.table{
  font-size: var(--fs);
}
#mobilUserReportsBody table.table th,
#mobilUserReportsBody table.table td{
  padding: var(--cell-py) var(--cell-px);
  line-height: 1.25;
}

/* 2a) Sütun genişlikleri + ellipsis (uzun nick vs.) */
#mobilUserReportsBody table.table th:nth-child(1),
#mobilUserReportsBody table.table td:nth-child(1){
  max-width: 220px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#mobilUserReportsBody table.table th:nth-child(2),
#mobilUserReportsBody table.table td:nth-child(2){ width: 110px; white-space: nowrap; }
#mobilUserReportsBody table.table th:nth-child(3),
#mobilUserReportsBody table.table td:nth-child(3){ width: 70px; text-align: right; }
#mobilUserReportsBody table.table th:nth-child(4),
#mobilUserReportsBody table.table td:nth-child(4){ width: 170px; white-space: nowrap; }

/* Hover çok koyu olmasın (dar alan) */
#mobilUserReportsBody .table-striped tbody tr:hover{ background:#131b2b; }

/* Küçük ekran: tek sütun */
@media (max-width: 992px){
  #mobilUserReportsBody form.form-inline{
    grid-template-columns: 1fr;
  }
}