/* ============================================================
   LoginGuard Central — Custom Dark Theme
   Bootstrap 5.3 dark mode base + overrides
   ============================================================ */

[data-bs-theme="dark"] {
  --bs-body-bg: #111c2b;
  --bs-body-color: #dce3ed;
  --bs-card-bg: #1a2b3f;
  --bs-border-color: #2d4159;
  --bs-secondary-bg: #1a2b3f;
  --bs-tertiary-bg: #162335;
}

body {
  background-color: #111c2b;
  color: #dce3ed;
  font-family: "Segoe UI", system-ui, sans-serif;
}

/* ---- NAVBAR ---- */
.lg-navbar {
  background: #0d1622 !important;
  border-bottom: 1px solid #1e3050;
  height: 56px;
}

.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: .02em;
}

/* ---- BREADCRUMB ---- */
.lg-breadcrumb {
  background: #0d1622;
  border-bottom: 1px solid #1e3050;
  font-size: .85rem;
}

/* ---- STAT CARDS ---- */
.lg-stat-card {
  background: #1a2b3f;
  border: 1px solid #2d4159;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lg-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.lg-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.lg-stat-label {
  font-size: .78rem;
  color: #7a93b0;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- LOJA CARD ---- */
.lg-loja-card {
  background: #1a2b3f;
  border: 1px solid #2d4159;
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color .2s, transform .15s;
}

.lg-loja-card:hover {
  border-color: #3d6b9a;
  transform: translateY(-2px);
}

/* ---- PDV CARD ---- */
.lg-pdv-card {
  background: #1a2b3f;
  border: 1px solid #2d4159;
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color .2s, transform .15s;
}

.lg-pdv-card:hover {
  transform: translateY(-2px);
}

.lg-pdv-card.online {
  border-color: #1a6b3a;
}

.lg-pdv-card.offline {
  opacity: .85;
}

.lg-pdv-info {
  background: #142233;
  border-radius: 8px;
  padding: .75rem;
  font-size: .85rem;
}

/* ---- PDV HEADER ---- */
.lg-pdv-header {
  background: #1a2b3f;
  border: 1px solid #2d4159;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

/* ---- STATUS DOT ---- */
.lg-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.lg-status-dot.online {
  background: #27ae60;
  box-shadow: 0 0 8px #27ae6066;
  animation: pulse 2s infinite;
}

.lg-status-dot.offline {
  background: #6c757d;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px #27ae6066; }
  50%       { box-shadow: 0 0 12px #27ae6099; }
}

/* ---- TABS ---- */
.lg-tabs .nav-link {
  color: #7a93b0;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .5rem 1rem;
  font-size: .9rem;
  transition: color .15s, border-color .15s;
}

.lg-tabs .nav-link:hover {
  color: #dce3ed;
  border-bottom-color: #3d6b9a;
}

.lg-tabs .nav-link.active {
  color: #4fa3e0;
  border-bottom-color: #4fa3e0;
  background: transparent;
  font-weight: 600;
}

/* ---- TABLE ---- */
.lg-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: #142233;
  --bs-table-hover-bg: #1e3353;
  font-size: .88rem;
}

.lg-table thead th {
  color: #7a93b0;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom-color: #2d4159;
  font-weight: 600;
  padding-bottom: .75rem;
}

.lg-table tbody td {
  border-color: #1e3050;
  vertical-align: middle;
}

/* ---- MODAL ---- */
.lg-modal {
  background: #142233;
  border: 1px solid #2d4159;
}

.lg-modal .modal-header {
  background: #1a2b3f;
  border-radius: .375rem .375rem 0 0;
}

/* ---- LOGIN CARD ---- */
.lg-login-card {
  background: #1a2b3f;
  border: 1px solid #2d4159;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px #0008;
}

/* ---- EMPTY STATE ---- */
.lg-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

/* ---- FORMS ---- */
.form-control, .form-select {
  background-color: #0d1622;
  border-color: #2d4159;
  color: #dce3ed;
}

.form-control:focus, .form-select:focus {
  background-color: #0d1622;
  border-color: #4fa3e0;
  color: #dce3ed;
  box-shadow: 0 0 0 .2rem #4fa3e033;
}

.form-control::placeholder {
  color: #4a6480;
}

.input-group-text {
  background-color: #142233;
  border-color: #2d4159;
  color: #7a93b0;
}

/* ---- BUTTONS ---- */
.btn-success {
  background-color: #1e7a47;
  border-color: #1e7a47;
}
.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

/* ---- BADGES ---- */
code {
  color: #5bc8f5;
  background: #0d1622;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .82em;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d1622; }
::-webkit-scrollbar-thumb { background: #2d4159; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d6b9a; }

/* ---- RESPONSIVO ---- */
@media (max-width: 768px) {
  .lg-pdv-header { padding: 1rem; }
  main { padding-left: 1rem !important; padding-right: 1rem !important; }
}
