:root {
  --bc-primary: #f2c428;
  --bc-primary-dark: #d9ad13;
  --bc-dark: #111827;
  --bc-sidebar: #111827;
  --bc-bg: #f5f7fa;
  --bc-border: #e5e7eb;
  --bc-muted: #6b7280;
  --bc-radius: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
}
body.bc-body {
  margin: 0;
  background: var(--bc-bg);
  color: #1f2937;
}
.bc-app-shell {
  min-height: 100vh;
  display: flex;
}
.bc-sidebar {
  width: 270px;
  background: var(--bc-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.bc-sidebar-brand {
  height: 76px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bc-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bc-primary);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -1px;
}
.bc-sidebar-brand strong {
  font-size: 17px;
  color: #000;
}
.bc-sidebar-brand small {
  font-size: 10px;
}
.bc-sidebar-scroll {
  padding: 20px 14px;
  overflow: auto;
  flex: 1;
}
.bc-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  font-weight: 800;
  margin: 4px 10px 8px;
}
.bc-nav-link {
  color: #9ca3af;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.15s;
}
.bc-nav-link i {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.bc-nav-link:hover {
  color: #000;
  background: rgba(255, 255, 255, 0.06);
}
.bc-nav-link.active {
  color: #111827;
  background: var(--bc-primary);
}
.bc-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.bc-main {
  min-width: 0;
  flex: 1;
}
.bc-topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--bc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.bc-topbar-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}
.bc-topbar-subtitle {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}
.bc-menu-btn {
  border: 1px solid var(--bc-border);
}
.bc-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: #fff !important;
  padding: 4px 6px;
}
.bc-user-btn:focus {
  box-shadow: none;
}
.bc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff5c7;
  color: #8a6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.bc-user-btn strong,
.bc-user-btn small {
  display: block;
}
.bc-user-btn strong {
  font-size: 13px;
}
.bc-user-btn small {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 1px;
}
.bc-content {
  padding: 28px;
  max-width: 1700px;
  margin: 0 auto;
}
.bc-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.bc-kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #9ca3af;
}
.bc-page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 4px 0 5px;
  font-weight: 800;
}
.bc-page-heading p {
  margin: 0;
  color: var(--bc-muted);
  font-size: 14px;
}
.bc-card {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.035);
}
.bc-stat {
  padding: 20px;
}
.bc-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7cc;
  color: #8a6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.bc-stat-label {
  font-size: 12px;
  color: #6b7280;
}
.bc-stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 3px;
}
.bc-card-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}
.bc-card-subtitle {
  font-size: 12px;
  color: #9ca3af;
  margin: 3px 0 0;
}
.bc-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 800;
  border-bottom-width: 1px;
  white-space: nowrap;
}
.bc-table tbody td {
  font-size: 13px;
  vertical-align: middle;
  padding-top: 13px;
  padding-bottom: 13px;
}
.bc-table tbody tr:last-child td {
  border-bottom: 0;
}
.bc-empty {
  padding: 42px 20px !important;
  text-align: center;
  color: #9ca3af;
}
.bc-empty i {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.bc-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.form-control,
.form-select {
  border-color: #d9dee7;
  border-radius: 10px;
  min-height: 44px;
  font-size: 14px;
}
.form-control:focus,
.form-select:focus {
  border-color: #d5ae17;
  box-shadow: 0 0 0 0.2rem rgba(242, 196, 40, 0.18);
}
textarea.form-control {
  min-height: auto;
}
.btn-bc-primary {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #111827;
  font-weight: 800;
}
.btn-bc-primary:hover,
.btn-bc-primary:focus {
  background: var(--bc-primary-dark);
  border-color: var(--bc-primary-dark);
  color: #111827;
}
.btn-bc-light {
  background: #fff;
  border: 1px solid var(--bc-border);
  font-weight: 700;
}
.btn-bc-light:hover {
  background: #f9fafb;
}
.bc-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #6b7280;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--bc-border);
  margin: 24px 0 16px;
}
.bc-choice {
  border: 1px solid var(--bc-border);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  height: 100%;
  transition: 0.15s;
}
.bc-choice:has(input:checked) {
  border-color: #e1b91d;
  background: #fffbea;
  box-shadow: 0 0 0 2px rgba(242, 196, 40, 0.08);
}
.bc-choice input {
  margin-right: 8px;
}
.bc-choice strong {
  font-size: 14px;
}
.bc-choice small {
  display: block;
  color: #9ca3af;
  margin-left: 24px;
  margin-top: 2px;
}
.bc-status {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bc-status-active {
  background: #dcfce7;
  color: #166534;
}
.bc-status-inactive {
  background: #f3f4f6;
  color: #6b7280;
}
.bc-status-pending {
  background: #fff7cc;
  color: #806400;
}
.bc-status-paid {
  background: #dcfce7;
  color: #166534;
}
.bc-status-overdue {
  background: #fee2e2;
  color: #991b1b;
}
.bc-alert {
  border-radius: 11px;
  font-size: 13px;
}
.bc-detail-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.bc-detail-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bc-detail-muted {
  font-size: 12px;
  color: #6b7280;
}
.bc-contact-card {
  border: 1px solid var(--bc-border);
  border-radius: 12px;
  padding: 15px;
}
.bc-contact-card:hover {
  background: #fafafa;
}
.bc-login-page {
  min-height: 100vh;
  background: radial-gradient(
      circle at 15% 10%,
      rgba(242, 196, 40, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #f8fafc, #eef1f5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bc-login-card {
  width: min(430px, 100%);
}
.bc-login-logo {
  width: 64px;
  height: 64px;
  background: #111827;
  color: var(--bc-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.18);
  margin: 0 auto;
}
.bc-login-brand {
  text-align: center;
  margin-bottom: 22px;
}
.bc-login-brand h1 {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -0.7px;
  margin: 14px 0 5px;
}
.bc-login-brand p {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
}
.bc-login-panel {
  background: #fff;
  border: 1px solid var(--bc-border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
}
.bc-login-footer {
  text-align: center;
  color: #9ca3af;
  font-size: 11px;
  margin-top: 15px;
}
.bc-input-group .btn {
  border-color: #d9dee7;
}
.bc-toast {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.15);
}
@media (max-width: 991.98px) {
  .bc-sidebar {
    width: 270px;
  }
  .bc-content {
    padding: 22px;
  }
  .bc-topbar {
    padding: 0 18px;
  }
  .bc-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .bc-page-heading .btn-group,
  .bc-page-heading > a {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .bc-content {
    padding: 16px;
  }
  .bc-topbar {
    height: 68px;
  }
  .bc-page-heading h1 {
    font-size: 24px;
  }
  .bc-login-panel {
    padding: 22px;
  }
  .bc-table {
    min-width: 760px;
  }
}

/* =========================
   MODO DARK
   ========================= */
[data-bs-theme="dark"] {
  --bc-bg: #0b0f14;
  --bc-border: #27313d;
  --bc-muted: #9ca3af;
  --bc-dark: #f3f4f6;
}
[data-bs-theme="dark"] body.bc-body {
  background: var(--bc-bg);
  color: #e5e7eb;
}
[data-bs-theme="dark"] .bc-topbar {
  background: #11161d;
  border-color: var(--bc-border);
}
[data-bs-theme="dark"] .bc-topbar-title,
[data-bs-theme="dark"] .bc-detail-value {
  color: #f3f4f6;
}
[data-bs-theme="dark"] .bc-card,
[data-bs-theme="dark"] .bc-login-panel {
  background: #11161d;
  border-color: var(--bc-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}
[data-bs-theme="dark"] .bc-table {
  --bs-table-bg: transparent;
  --bs-table-color: #e5e7eb;
  --bs-table-border-color: #27313d;
}
[data-bs-theme="dark"] .bc-table thead th {
  color: #9ca3af;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #0d131a;
  border-color: #33404d;
  color: #e5e7eb;
}
[data-bs-theme="dark"] .form-control::placeholder {
  color: #6b7280;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #0d131a;
  color: #fff;
}
[data-bs-theme="dark"] .btn-bc-light {
  background: #151c24;
  border-color: #33404d;
  color: #e5e7eb;
}
[data-bs-theme="dark"] .btn-bc-light:hover {
  background: #1c2630;
}
[data-bs-theme="dark"] .bc-choice {
  border-color: #33404d;
  background: #151c24;
}
[data-bs-theme="dark"] .bc-choice:has(input:checked) {
  background: #27230e;
  border-color: #d5ae17;
}
[data-bs-theme="dark"] .bc-contact-card {
  border-color: #33404d;
  background: #151c24;
}
[data-bs-theme="dark"] .bc-contact-card:hover {
  background: #1b242e;
}
[data-bs-theme="dark"] .dropdown-menu {
  background: #151c24;
  border-color: #33404d;
}
[data-bs-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .dropdown-item-text {
  color: #e5e7eb;
}
[data-bs-theme="dark"] .dropdown-item:hover {
  background: #222c36;
  color: #fff;
}
[data-bs-theme="dark"] .dropdown-divider {
  border-color: #33404d;
}
[data-bs-theme="dark"] .bc-user-btn {
  background: transparent !important;
  color: #e5e7eb;
}
[data-bs-theme="dark"] .bc-user-btn strong {
  color: #f3f4f6;
}
[data-bs-theme="dark"] .bc-menu-btn {
  background: #151c24;
  border-color: #33404d;
  color: #e5e7eb;
}
[data-bs-theme="dark"] .bc-theme-btn {
  background: #151c24;
  border-color: #33404d;
  color: #f2c428;
  border-radius: 10px;
  width: 40px;
  height: 40px;
}
[data-bs-theme="dark"] .bc-theme-btn:hover {
  background: #202a34;
}
.bc-theme-btn {
  background: #fff;
  border: 1px solid var(--bc-border);
  color: #6b7280;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bc-theme-btn:hover {
  background: #f8fafc;
  color: #111827;
}
[data-bs-theme="dark"] .modal-content {
  background: #11161d;
  color: #e5e7eb;
  border-color: #33404d;
}
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
  border-color: #33404d;
}
[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
[data-bs-theme="dark"] .alert-light {
  background: #151c24;
  border-color: #33404d;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .brand-name {
  color: #fff;
}

[data-bs-theme="dark"] .bc-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Configurações */
#cfgTabs .nav-link {
    border-radius: .75rem;
    color: var(--bs-body-color);
}
#cfgTabs .nav-link.active {
    background: var(--bs-warning);
    color: #111827;
}
#cfgTabs .nav-link:hover {
    background: rgba(242,196,40,.14);
}
.secret-field {
    letter-spacing: .03em;
}

.bc-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

.bc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}



/* =========================================================
   PAGINAÇÃO
========================================================= */

.bc-pagination .pagination {
    --bs-pagination-border-radius: 8px;
    --bs-pagination-padding-x: .7rem;
    --bs-pagination-padding-y: .38rem;
    margin: 0;
}

.bc-pagination .page-link {
    min-width: 34px;
    text-align: center;
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

.bc-pagination .page-item.active .page-link {
    background: var(--bs-warning);
    border-color: var(--bs-warning);
    color: #111827;
    font-weight: 700;
}

.bc-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: var(--bs-tertiary-bg);
}
