/* Bootstrap 5 theme — aligned with dashboard shell (dark sidebar, sky accent) */
:root {
  --app-shell-bg: #0f1419;
  --app-shell-border: rgba(255, 255, 255, 0.08);
  --app-accent: #7dd3fc;
  --app-accent-soft: rgba(125, 211, 252, 0.12);
  --app-primary: #0ea5e9;
  --app-primary-rgb: 14, 165, 233;
  --app-primary-hover: #0284c7;
  --app-primary-active: #0369a1;
  --app-surface: #f1f5f9;
  --app-surface-elevated: #ffffff;
  --app-text: #1e293b;
  --app-text-muted: #64748b;
  --app-border: #cbd5e1;

  --bs-body-bg: var(--app-surface);
  --bs-body-color: var(--app-text);
  --bs-secondary-color: var(--app-text-muted);
  --bs-tertiary-bg: #e2e8f0;
  --bs-emphasis-color: #0f172a;

  --bs-primary: var(--app-primary);
  --bs-primary-rgb: var(--app-primary-rgb);
  --bs-link-color: var(--app-primary-hover);
  --bs-link-hover-color: var(--app-primary-active);

  --bs-border-color: var(--app-border);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;

  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-info: #06b6d4;
  --bs-info-rgb: 6, 182, 212;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;

  --bs-secondary: #64748b;
  --bs-secondary-rgb: 100, 116, 139;
  --bs-dark: var(--app-shell-bg);
  --bs-dark-rgb: 15, 20, 25;

  --bs-btn-font-weight: 500;
}

/* Top bar — same family as sidebar */
.navbar-dark.bg-dark {
  background-color: var(--app-shell-bg) !important;
  border-bottom: 1px solid var(--app-shell-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.navbar-dark .navbar-brand {
  color: #f8fafc;
}

.navbar-dark .btn-dark {
  --bs-btn-color: #e2e8f0;
  --bs-btn-bg: rgba(255, 255, 255, 0.08);
  --bs-btn-border-color: rgba(255, 255, 255, 0.12);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.14);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.18);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.18);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.22);
  --bs-btn-focus-shadow-rgb: 125, 211, 252;
}

.navbar-dark .btn-secondary {
  --bs-btn-color: #e2e8f0;
  --bs-btn-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-border-color: rgba(255, 255, 255, 0.15);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.16);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.2);
  --bs-btn-focus-shadow-rgb: 125, 211, 252;
}

.navbar-dark .dropdown-menu {
  --bs-dropdown-bg: #1e293b;
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.1);
  --bs-dropdown-link-color: #e2e8f0;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(125, 211, 252, 0.12);
  --bs-dropdown-header-color: #94a3b8;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.navbar-dark .dropdown-item.active,
.navbar-dark .dropdown-item:active {
  background-color: var(--app-accent-soft);
  color: var(--app-accent);
}

.navbar-dark .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Main column */
main[role="main"] {
  background-color: var(--app-surface);
  min-height: calc(100vh - 48px);
}

/* Cards & surfaces */
.card {
  background-color: var(--app-surface-elevated);
  border-color: var(--app-border);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.card-header {
  background-color: rgba(241, 245, 249, 0.8);
  border-bottom-color: var(--app-border);
  font-weight: 600;
  color: var(--app-text);
}

/* Tables */
.table {
  --bs-table-bg: var(--app-surface-elevated);
  --bs-table-striped-bg: rgba(241, 245, 249, 0.65);
  --bs-table-hover-bg: rgba(125, 211, 252, 0.08);
  --bs-table-border-color: var(--app-border);
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--app-text-muted);
  border-bottom-width: 1px;
}

/* Forms */
.form-control,
.form-select {
  border-color: var(--app-border);
  border-radius: var(--bs-border-radius);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}

.form-label,
.col-form-label {
  font-weight: 500;
  color: var(--app-text);
}

/* Buttons (main content) */
.btn-primary {
  --bs-btn-bg: var(--app-primary);
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary-hover);
  --bs-btn-hover-border-color: var(--app-primary-hover);
  --bs-btn-active-bg: var(--app-primary-active);
  --bs-btn-active-border-color: var(--app-primary-active);
  --bs-btn-focus-shadow-rgb: var(--app-primary-rgb);
}

.btn-secondary {
  --bs-btn-color: #f8fafc;
  --bs-btn-bg: #64748b;
  --bs-btn-border-color: #64748b;
  --bs-btn-hover-bg: #475569;
  --bs-btn-hover-border-color: #475569;
  --bs-btn-active-bg: #334155;
  --bs-btn-active-border-color: #334155;
}

.btn-outline-primary {
  --bs-btn-color: var(--app-primary-hover);
  --bs-btn-border-color: var(--app-primary-hover);
  --bs-btn-hover-bg: var(--app-primary);
  --bs-btn-hover-border-color: var(--app-primary);
}

.btn-outline-secondary {
  --bs-btn-color: var(--app-text-muted);
  --bs-btn-border-color: var(--app-border);
  --bs-btn-hover-bg: #e2e8f0;
  --bs-btn-hover-border-color: #cbd5e1;
  --bs-btn-hover-color: var(--app-text);
}

/* Alerts */
.alert {
  border-radius: var(--bs-border-radius-lg);
  border-width: 1px;
}

.alert-info {
  --bs-alert-color: #0e7490;
  --bs-alert-bg: rgba(6, 182, 212, 0.12);
  --bs-alert-border-color: rgba(6, 182, 212, 0.35);
}

.alert-success {
  --bs-alert-bg: rgba(16, 185, 129, 0.1);
  --bs-alert-border-color: rgba(16, 185, 129, 0.35);
}

.alert-warning {
  --bs-alert-bg: rgba(245, 158, 11, 0.12);
  --bs-alert-border-color: rgba(245, 158, 11, 0.4);
}

.alert-danger {
  --bs-alert-bg: rgba(239, 68, 68, 0.1);
  --bs-alert-border-color: rgba(239, 68, 68, 0.35);
}

/* Badges */
.badge.text-bg-primary {
  background-color: var(--app-primary) !important;
}

/* Pagination */
.pagination .page-link {
  color: var(--app-primary-hover);
  border-color: var(--app-border);
  border-radius: var(--bs-border-radius-sm);
}

.pagination .page-item.active .page-link {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

/* Modals */
.modal-content {
  border-radius: var(--bs-border-radius-lg);
  border-color: var(--app-border);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.modal-header {
  border-bottom-color: var(--app-border);
}

.modal-footer {
  border-top-color: var(--app-border);
}

/* List groups */
.list-group-item {
  border-color: var(--app-border);
}

.list-group-item.active {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

/* Nav tabs / pills in content */
.nav-tabs {
  border-bottom-color: var(--app-border);
}

.nav-tabs .nav-link {
  color: var(--app-text-muted);
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.nav-tabs .nav-link:hover {
  color: var(--app-primary-hover);
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: var(--app-text);
  font-weight: 500;
  border-color: var(--app-border) var(--app-border) var(--app-surface-elevated);
}

.nav-pills .nav-link.active {
  background-color: var(--app-primary);
}

/* Breadcrumbs */
.breadcrumb-item a {
  color: var(--app-primary-hover);
}

.breadcrumb-item.active {
  color: var(--app-text-muted);
}
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
  --bd-accent-rgb: var(--app-primary-rgb, 14, 165, 233);

  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--app-primary, #0ea5e9);
  --bs-btn-border-color: var(--app-primary, #0ea5e9);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--app-primary-hover, #0284c7);
  --bs-btn-hover-border-color: var(--app-primary-hover, #0284c7);
  --bs-btn-focus-shadow-rgb: var(--bd-accent-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: var(--app-primary-active, #0369a1);
  --bs-btn-active-border-color: var(--app-primary-active, #0369a1);
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}
/* Dashboard shell (replaces Bootstrap 4 “dashboard” example styles for BS5) */
body {
  font-size: 0.875rem;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

/* —— Modern sidebar (app) — dark —— (tokens: bootstrap_overrides.css :root) */
.app-sidebar {
  --sidebar-bg: var(--app-shell-bg, #0f1419);
  --sidebar-border: var(--app-shell-border, rgba(255, 255, 255, 0.08));
  --sidebar-text: #e2e8f0;
  --sidebar-muted: #94a3b8;
  --sidebar-accent: var(--app-accent, #7dd3fc);
  --sidebar-accent-soft: var(--app-accent-soft, rgba(125, 211, 252, 0.12));
  color: var(--sidebar-text);
  background-color: var(--sidebar-bg) !important;
  box-shadow: inset -1px 0 0 var(--sidebar-border);
}

.app-sidebar .feather,
.app-sidebar svg.feather {
  stroke: currentColor;
}

.sidebar-billing {
  margin: 0.75rem 0.75rem 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sidebar-billing-text strong {
  font-weight: 600;
  color: #f1f5f9;
}

.sidebar-billing-link {
  font-weight: 500;
  color: var(--sidebar-accent);
  text-decoration: none;
}

.sidebar-billing-link:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.sidebar-sections {
  padding: 0 0.5rem 1rem;
}

.sidebar-section {
  margin-bottom: 0.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: transparent;
}

.sidebar-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-section-toggle:hover {
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-section-toggle:focus-visible {
  outline: 2px solid var(--sidebar-accent);
  outline-offset: 2px;
}

.sidebar-section-title {
  flex: 1;
  min-width: 0;
}

.sidebar-section-chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--sidebar-muted);
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.sidebar-section-chevron .feather,
.sidebar-section-chevron svg {
  width: 16px;
  height: 16px;
}

.sidebar-section-toggle[aria-expanded="true"] .sidebar-section-chevron {
  transform: rotate(180deg);
  color: #cbd5e1;
  opacity: 1;
}

.sidebar-nav-list {
  padding: 0.125rem 0 0.5rem 0.25rem;
  gap: 0.125rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.625rem;
  margin: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.sidebar-nav-link:focus-visible {
  outline: 2px solid var(--sidebar-accent);
  outline-offset: 0;
}

.sidebar-nav-link.is-active {
  color: var(--sidebar-accent);
  background-color: var(--sidebar-accent-soft);
  font-weight: 600;
}

.sidebar-nav-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--sidebar-muted);
  opacity: 1;
}

.sidebar-nav-link:hover .sidebar-nav-icon {
  color: #cbd5e1;
}

.sidebar-nav-link.is-active .sidebar-nav-icon {
  color: var(--sidebar-accent);
}

.app-sidebar .sidebar-nav-icon .feather,
.app-sidebar .sidebar-nav-icon svg {
  width: 17px;
  height: 17px;
}

.sidebar-nav-text {
  min-width: 0;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

@supports (position: sticky) {
  .sidebar-sticky {
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
  }
}

.navbar-brand {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1rem;
  color: #f8fafc;
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: inset -1px 0 0 var(--app-shell-border, rgba(255, 255, 255, 0.08));
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
