:root {
  --brand-primary: #0d6efd;
  --brand-secondary: #0a2540;
  --sidebar-width: 260px;
}

body {
  background-color: #f4f6f9;
}

/* ---------- Admin shell ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background-color: var(--brand-secondary);
  color: #fff;
  min-height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.sidebar .brand {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .brand img {
  max-height: 32px;
}

.sidebar .brand span {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar .submenu .nav-link {
  padding-left: 2.4rem;
  font-size: 0.87rem;
}

.sidebar .menu-toggle::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  margin-left: auto;
  transition: transform 0.15s ease;
  font-size: 0.7rem;
}

.sidebar .menu-toggle[aria-expanded='true']::after {
  transform: rotate(90deg);
}

.main-content {
  flex-grow: 1;
  min-width: 0;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-content {
  padding: 1.5rem;
}

.brand-btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: color-mix(in srgb, var(--brand-primary) 85%, black);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--brand-primary) 80%, black);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: color-mix(in srgb, var(--brand-primary) 75%, black);
  --bs-btn-active-border-color: color-mix(in srgb, var(--brand-primary) 70%, black);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--brand-primary);
  --bs-btn-disabled-border-color: var(--brand-primary);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.text-brand {
  color: var(--brand-primary);
}

.card-metric .value {
  font-size: 1.8rem;
  font-weight: 700;
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

/* ---------- Site público ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-hero {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  color: #fff;
  padding: 5rem 0;
}

.site-footer {
  background: var(--brand-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    z-index: 1040;
    left: -100%;
    transition: left 0.2s ease;
  }
  .sidebar.show {
    left: 0;
  }
}
