/* =========================================================
   Trade-in CRM – végleges dark UI + élő kalkulátor + aktív menükiemelés
   ========================================================= */
:root {
  --sidebar-w: 290px;
  --sidebar-bg: #0f172a;
  --sidebar-soft: #111827;
  --sidebar-fg: #e5e7eb;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --content-bg: #0f172a;
}

/* ---------------------------------------------------------
   ALAP
   --------------------------------------------------------- */
html, body {
  margin: 0;
  background: var(--content-bg);
  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
* { box-sizing: border-box; }

/* ---------------------------------------------------------
   SIDEBAR
   --------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-fg);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  color: #fff;
}
.brand .logo { color: var(--accent); }

.userbox {
  background: var(--sidebar-soft);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.userbox .uname { font-weight: 600; color: #fff; }
.userbox .urole { font-size: 12px; opacity: .8; color: #9ca3af; }

.mgroup {
  margin-top: 14px;
  font-size: 12px;
  text-transform: uppercase;
  opacity: .7;
  letter-spacing: .06em;
  color: rgba(229,231,235,0.8);
}

.mlink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  color: var(--sidebar-fg);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}
.mlink:hover {
  background: rgba(34,197,94,0.15);
  color: #fff;
  transform: translateX(4px);
}

/* Aktív menüpont kiemelés (pl. aktuális oldal) */
.mlink.active {
  background: rgba(34,197,94,0.25);
  color: #fff;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.sidebar i {
  color: var(--accent);
}
.sidebar .mlink.active i {
  color: #a7f3d0;
}
.sidebar .text-danger {
  color: #ef4444 !important;
}
.sidebar .text-danger:hover {
  color: #f87171 !important;
}

/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */
.content {
  margin-left: var(--sidebar-w);
  padding: 24px;
  background: var(--content-bg);
  color: #ffffff;
  min-height: 100vh;
}
.card,
.card-body,
.bg-dark {
  background: rgba(17,24,39,0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 10px;
}

/* ---------------------------------------------------------
   KALKULÁTOR kérdések / válaszok
   --------------------------------------------------------- */
.form-label,
.form-check-label {
  color: #ffffff !important;
  font-weight: 500;
}
label.fw-bold {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 16px;
}
.form-check-input {
  accent-color: var(--accent);
  background-color: #1e293b;
  border: 1px solid rgba(255,255,255,0.3);
  transform: scale(1.2);
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-label:hover {
  color: #a7f3d0 !important;
  transition: color 0.2s ease-in-out;
}

/* ---------------------------------------------------------
   INPUTOK, SELECTEK
   --------------------------------------------------------- */
.form-control,
.form-select {
  background-color: #1e293b;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(34,197,94,0.3);
}

/* ---------------------------------------------------------
   TÁBLÁZATOK
   --------------------------------------------------------- */
.table-dark {
  background-color: #1e293b !important;
  color: #ffffff !important;
}
.table-dark thead th {
  background-color: #0f172a !important;
  color: #ffffff !important;
}
.table-dark tbody tr:hover {
  background-color: rgba(255,255,255,0.06) !important;
}

/* ---------------------------------------------------------
   GOMBOK
   --------------------------------------------------------- */
.btn-primary {
  background-color: var(--accent);
  border: none;
  color: #ffffff;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: scale(1.03);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffffff;
}

/* ---------------------------------------------------------
   KIEGÉSZÍTŐ – scrollbars, finomságok
   --------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255,255,255,0.35);
}


/* ====== DARK MODE ====== */
body.dark-mode {
  background-color: #0b0f1a;
  color: #f8f9fa;
}
body.dark-mode .content-wrapper,
body.dark-mode .card {
  background-color: #121622;
  color: #f8f9fa;
}

/* ====== LIGHT MODE ====== */
body.light-mode {
  background-color: #f8f9fa;
  color: #212529;
}
body.light-mode .content-wrapper,
body.light-mode .card {
  background-color: #ffffff;
  color: #212529;
}
.navbar.light-mode {
  background-color: #e9ecef !important;
  color: #212529;
}


/* ======== HEADER STATS ======== */
.stats-bar {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 8px;
}

.stat-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.stat-item strong {
  color: #fff;
}

@media (max-width: 992px) {
  .stats-bar {
    display: none; /* kisebb képernyőn elrejtjük */
  }
}

/* =========================================================
   DARK-SOFT FIX – világosabb, szemkímélő dark UI (force override)
   ========================================================= */

html, body, .content, .content-wrapper {
  background-color: #181a1f !important; /* lágy grafit háttér */
  color: #f1f1f1 !important;
}

.sidebar {
  background-color: #121418 !important;
}

.card,
.card-body,
.bg-dark {
  background-color: #20232a !important;  /* világosabb, neutrális sötétszürke */
  color: #f5f5f5 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.navbar,
.navbar-dark.bg-dark {
  background-color: #1b1d22 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.text-secondary {
  color: #b3b8c0 !important;
}
.text-light {
  color: #e6e8eb !important;
}

/* A gombok halványabb outline színei */
.btn-outline-success,
.btn-outline-info,
.btn-outline-warning,
.btn-outline-primary,
.btn-outline-danger,
.btn-outline-light {
  opacity: 0.9 !important;
  border-width: 1.5px !important;
}

/* Sidebar hover kicsit lágyabb */
.mlink:hover {
  background: rgba(34,197,94,0.08) !important;
  transform: translateX(2px);
}

/* Kisebb kártyaárnyék */
.card {
  box-shadow: 0 2px 4px rgba(0,0,0,0.25) !important;
}
