/* ========= THEME TOKENS ========= */
:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface2:#fbfcff;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(15,23,42,.10);
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --primary:#4361ee;
}

html[data-theme="dark"]{
  --bg:#0b1220;
  --surface:#0f172a;
  --surface2:#111c33;
  --text:#e7eefc;
  --muted:#9fb0d0;
  --border:rgba(231,238,252,.10);
  --shadow:0 12px 32px rgba(0,0,0,.45);
}

html[data-theme="midnight"]{
  --bg:#060814;
  --surface:#0b1024;
  --surface2:#0e1630;
  --text:#eaf0ff;
  --muted:#a7b6da;
  --border:rgba(234,240,255,.10);
  --shadow:0 16px 44px rgba(0,0,0,.55);
}

html[data-theme="neon"]{
  --bg:#070812;
  --surface:#0c0f1f;
  --surface2:#10142a;
  --text:#f3f6ff;
  --muted:#b3c0ff;
  --border:rgba(243,246,255,.10);
  --shadow:0 16px 44px rgba(0,0,0,.55);
}

/* ========= GLOBAL APPLY ========= */
body{
  background:var(--bg);
  color:var(--text);
}

/* surfaces */
.sidebar,
.navbar,
.card,
.table-container,
.modal-content{
  background:var(--surface);
  border-color:var(--border);
}

.card{
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:18px;
}

.sidebar{
  box-shadow:none;
  border-right:1px solid var(--border);
}

.navbar{
  box-shadow:none;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .navbar,
html[data-theme="midnight"] .navbar,
html[data-theme="neon"] .navbar{
  background: rgba(15,23,42,.70);
}

.navbar-left h1{ color:var(--text); }

/* nav items */
.nav-item{ color:var(--muted); border-left-color:transparent; }
.nav-item:hover{
  background:rgba(67,97,238,.10);
  color:var(--text);
  border-left-color:transparent;
}
.nav-item.active{
  background:rgba(67,97,238,.14);
  color:var(--text);
  border-left-color:transparent;
  box-shadow: inset 0 0 0 1px rgba(67,97,238,.22);
}

/* table */
.table thead th{
  background:var(--surface2);
  color:var(--muted);
  border-bottom:1px solid var(--border);
}
.table tbody td{
  border-bottom:1px solid var(--border);
  color:var(--text);
}
.table tbody tr:hover{
  background:rgba(67,97,238,.06);
}

/* inputs */
.form-group label,
.form-control label{ color:var(--muted); }

.form-group input,
.form-group select,
.form-group textarea,
.form-control input,
.form-control select,
.form-control textarea{
  background:var(--surface2);
  color:var(--text);
  border:1px solid var(--border);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus{
  border-color: rgba(67,97,238,.55);
  box-shadow: 0 0 0 4px rgba(67,97,238,.12);
  outline:none;
}

/* buttons */
.btn{
  background:var(--surface2);
  color:var(--text);
  border:1px solid var(--border);
}
.btn-primary{
  background:var(--primary);
  border-color: rgba(67,97,238,.35);
  color:#fff;
}

/* avatar */
.user-avatar{
  background:var(--primary);
  color:#fff;
}

/* badges */
.badge-success{ background: rgba(46,204,113,.18); color:#2ecc71; }
.badge-warning{ background: rgba(243,156,18,.18); color:#f39c12; }
.badge-danger{ background: rgba(231,76,60,.18); color:#e74c3c; }
.badge-info{ background: rgba(52,152,219,.18); color:#3498db; }




/* ========= DISABLE HOVER SCALE / MOVE ========= */
*,
*::before,
*::after{
  transition-property: color, background-color, border-color, box-shadow, opacity !important;
}

.btn:hover,
.card:hover,
.nav-item:hover,
.stat-card:hover,
.table tbody tr:hover{
  transform: none !important;
}

.btn:active,
.card:active{
  transform: none !important;
}







/* ===== Settings Modal UI ===== */
.settings-modal{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.settings-meta{
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface2);
  color:var(--text);
  display:grid;
  gap:6px;
}

.settings-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.settings-label{
  font-weight:700;
  color:var(--muted);
  font-size:13px;
}

.settings-select{
  width:100%;
  height:44px;
  border-radius:12px;
  background:var(--surface2);
  color:var(--text);
  border:1px solid var(--border);
  padding:0 12px;
  outline:none;
}

.settings-select:focus{
  border-color: rgba(67,97,238,.55);
  box-shadow: 0 0 0 4px rgba(67,97,238,.12);
}

.accent-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.accent-input{
  width:64px;
  height:44px;
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
}

.accent-preview{
  flex:1;
  height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--primary);
}

.accent-presets{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

.accent-chip{
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid var(--border);
  background: var(--c);
  cursor:pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

.settings-help{
  color:var(--muted);
  font-size:12px;
}

/* Modal buttons görünümü */
.modal-footer .btn,
.modal-footer .btn-primary{
  height:40px;
  padding:0 16px;
  border-radius:12px;
}

/* BUTONLARIN SİYAH OLMASINI ENGELLE (senin başka CSS override ediyor) */
.btn-primary{
  background: var(--primary) !important;
  color:#fff !important;
  border: 1px solid rgba(67,97,238,.35) !important;
}













































/* ===== Dashboard Pro Layer ===== */
.content-area{
  padding: 18px;
}

.dash-wrap{
  display: grid;
  gap: 14px;
}

/* Section headers inside cards */
.card-header .card-title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .2px;
}
.card-header .card-subtitle{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* KPI cards */
.kpi{
  padding: 16px 16px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.kpi-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.kpi-main{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 0;
}
.kpi-value{
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.kpi-meta{
  margin-left:auto;
  text-align:right;
  min-width: 120px;
}
.kpi-delta{
  display:inline-flex;
  gap: 6px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.kpi-delta.up{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.16); }
.kpi-delta.down{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.16); }
.kpi-period{
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}

/* Quick actions */
.quick-grid{
  padding: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.quick-btn{
  display:flex;
  align-items:center;
  gap: 12px;
  text-align:left;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.quick-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.quick-ico{
  width: 42px; height: 42px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 14px;
  background: rgba(67,97,238,.18);
  border: 1px solid rgba(67,97,238,.28);
  color: var(--primary);
}
.quick-title{
  font-weight: 950;
  font-size: 13px;
}
.quick-desc{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* Charts area */
.chart-box{
  padding: 12px 14px 16px 14px;
}
.chart-canvas{
  width: 100%;
  height: 220px;
}

/* Tables: better readability */
.table thead th{
  font-size: 11.5px;
  letter-spacing: .2px;
}
.table tbody td{
  font-size: 12.8px;
}
.table .right{ text-align:right; font-variant-numeric: tabular-nums; }
.table a{ font-weight: 900; }

/* Responsive dashboard grid */
.dash-grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.span-3{ grid-column: span 3; }
.span-6{ grid-column: span 6; }
.span-12{ grid-column: span 12; }

@media (max-width: 980px){
  .span-3,.span-6{ grid-column: span 12; }
  .quick-grid{ grid-template-columns: 1fr; }
  .chart-canvas{ height: 200px; }
}












/*navbar.js profil cssleri*/





/* ===== Settings Modal (Navbar.showProfile) ===== */
.settings-modal{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.settings-meta{
  display:grid;
  gap:6px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface2);
  font-size:13px;
}

.settings-section{
  display:grid;
  gap:8px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
}

.settings-label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}

.settings-input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--text);
  outline:none;
}

.settings-input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(67,97,238,.14);
}

.settings-select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface2);
  color:var(--text);
  outline:none;
}

.settings-help{
  font-size:12px;
  color:var(--muted);
}

.accent-row{
  display:flex;
  gap:10px;
  align-items:center;
}

.accent-input{
  width:52px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  padding:0;
}

.accent-preview{
  flex:1;
  height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--primary);
}

/* ===== Navbar Avatar (image fits circle) ===== */
.user-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  overflow:hidden;            /* taşmayı kes */
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(67,97,238,.14);
  color:var(--primary);
}

.user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;           /* büyük görseli yuvarlağa oturt */
  display:block;
}



/*moil icin*/

/* ===== MOBILE PATCH (en sona ekle) ===== */
@media (max-width: 992px){

  html, body{ overflow-x:hidden; }

  /* sidebar kapalı, içerik tam genişlik */
  .sidebar{ display:none !important; }
  .main-content{
    margin-left:0 !important;
    width:100% !important;
  }

  /* navbar daha kompakt */
  .navbar{ padding: 10px 12px; }
  .navbar-left h1{ font-size: 16px; }
  .navbar-right{ gap: 10px; }
  .lang-label{ display:none; } /* bayrak + ok kalsın */

  /* content padding + bottom nav boşluğu */
  .content-area{ padding: 12px !important; padding-bottom: 90px !important; }

  /* tablolar: kontrollü scroll */
  .table-container,
  .reports-table-scroll,
  .betting-table-scroll{
    overflow-x:auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .table{ min-width: 720px; }
  .table thead th{ position: static; } /* sticky kapat: mobilde daha stabil */

  /* filter bar'lar: 2 kolon -> 1 kolon */
  .reports-filters,
  .betting-filters{
    display:grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    align-items: stretch;
  }
  .rf-group, .bf-group{ min-width:0 !important; }
  .rf-grow, .bf-grow{ grid-column: 1 / -1; }

  .rf-actions, .bf-actions{
    grid-column: 1 / -1;
    width:100%;
  }
  .rf-actions .rf-btn,
  .bf-actions .bf-btn{
    flex:1;
    width:100%;
  }

  /* KPI grid (reports) */
  .reports-grid{ grid-template-columns: 1fr !important; }
  .report-kpi{ grid-column: auto !important; }

  /* modal mobil */
  .modal-content{
    width: calc(100% - 24px) !important;
    max-width: none !important;
    padding: 16px !important;
    max-height: 85vh !important;
  }

  /* toast mobil */
  #toast-container{
    top: 12px;
    right: 12px;
    left: 12px;
    align-items: stretch;
  }
  .toast{ width: 100% !important; }
}

@media (max-width: 520px){
  .reports-filters,
  .betting-filters{
    grid-template-columns: 1fr !important;
  }
}




















/* --- 2. Arama Kutusu (Search Box) --- */
.search-box {
  position: relative;
  width: 260px; /* Genişlik */
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 14px; /* Sağ tarafa ikon için boşluk bırakmadık, ikon sağda */
  padding-right: 36px; /* İkonun üzerine yazı gelmemesi için sağ boşluk */
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--surface2);
  transition: all 0.2s ease;
  outline: none;
}

.search-box input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.search-box i {
  /* JS kodunda inline style var ama burası onu destekler */
  pointer-events: none; /* İkona tıklayınca inputtan çıkmasın */
}

/* --- 3. Tablo ve İçerik Alanı --- */
.table-container {
  overflow-x: auto; /* Mobilde yan kaydırma */
  position: relative;
  min-height: 200px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th {
  background: var(--surface2);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(67, 97, 238, 0.02); /* Hafif hover efekti */
}