:root {
  /* ===== Paleta base ===== */
  --bs-blue: #1763c6;
  --bs-indigo: #0b3a6f;
  --bs-green: #1c8a4e;
  --bs-red: #c92a36;
  --bs-yellow: #e8920a;

  /* ===== Cores semânticas (tema) ===== */
  --bs-primary: #0b3a6f;
  --bs-primary-rgb: 11, 58, 111;
  --bs-secondary: #6b7a90;
  --bs-secondary-rgb: 107, 122, 144;
  --bs-success: #1c8a4e;
  --bs-success-rgb: 28, 138, 78;
  --bs-danger: #c92a36;
  --bs-danger-rgb: 201, 42, 54;
  --bs-warning: #e8920a;
  --bs-warning-rgb: 232, 146, 10;
  --bs-info: #1763c6;
  --bs-info-rgb: 23, 99, 198;
  --bs-light: #eaeef4;
  --bs-light-rgb: 234, 238, 244;
  --bs-dark: #16263d;
  --bs-dark-rgb: 22, 38, 61;

  /* ===== Tipografia ===== */
  --bs-font-sans-serif: 'Public Sans', system-ui, -apple-system, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 0.9375rem;   /* 15px */
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;

  /* ===== Texto e superfícies ===== */
  --bs-body-color: #16263d;
  --bs-body-color-rgb: 22, 38, 61;
  --bs-body-bg: #d5dce8;
  --bs-body-bg-rgb: 213, 220, 232;
  --bs-secondary-color: rgba(107, 122, 144, 0.85);
  --bs-tertiary-color: #9aa7b8;
  --bs-emphasis-color: #0b3a6f;

  /* ===== Bordas ===== */
  --bs-border-color: #d3dce8;
  --bs-border-color-translucent: rgba(11, 58, 111, 0.12);
  --bs-border-radius: 0.6875rem;     /* 11px — cards/inputs */
  --bs-border-radius-sm: 0.5625rem;  /* 9px */
  --bs-border-radius-lg: 1rem;       /* 16px — cards grandes */
  --bs-border-radius-xl: 1.125rem;

  /* ===== Links ===== */
  --bs-link-color: #1763c6;
  --bs-link-color-rgb: 23, 99, 198;
  --bs-link-hover-color: #114e9e;

  /* ===== Foco ===== */
  --bs-focus-ring-color: rgba(23, 99, 198, 0.18);

  /* ===== Sombras ===== */
  --bs-box-shadow: 0 10px 30px -22px rgba(11, 58, 111, 0.4);
  --bs-box-shadow-sm: 0 1px 3px rgba(11, 58, 111, 0.18);
  --bs-box-shadow-lg: 0 18px 40px -24px rgba(11, 58, 111, 0.38);
}

.btn-primary {
  --bs-btn-bg: #0b3a6f;
  --bs-btn-border-color: #0b3a6f;
  --bs-btn-hover-bg: #092f5a;
  --bs-btn-hover-border-color: #092f5a;
  --bs-btn-active-bg: #072545;
  --bs-btn-active-border-color: #072545;
  --bs-btn-disabled-bg: #0b3a6f;
  --bs-btn-disabled-border-color: #0b3a6f;
}

.auth-bg{
  background-color:#0b3a6f;
  background-image:linear-gradient(135deg,#0b3a6f 0%,#0e4685 55%,#1763c6 100%);
}

.auth-pattern{
  background-color:#0b3a6f;
  background-image:
    radial-gradient(circle at 1px 1px,rgba(255,255,255,.10) 1px,transparent 0),
    linear-gradient(135deg,#0b3a6f 0%,#0e4685 55%,#1763c6 100%);
  background-size:26px 26px,auto;
}

.form-control:focus,.btn:focus{box-shadow:0 0 0 .25rem rgba(23,99,198,.18);}

body { background-color: var(--bs-light); }

/* ===== Sidebar ===== */
:root {
  --navbar-height: 56px;
  --sidebar-width: 240px;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background-color: var(--bs-primary);
  border-right: none;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.75rem;
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

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

.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
}

.sidebar-link i {
  font-size: 1rem;
  flex-shrink: 0;
}

.sidebar .border-top {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-username { font-size: 0.8rem; max-width: 150px; color: rgba(255, 255, 255, 0.85); }
.sidebar-user-sub { font-size: 0.7rem; max-width: 150px; color: rgba(255, 255, 255, 0.45); }