.register-page {
  margin: auto;
}

/* Custom Drawer Sidebar Styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1037;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Sidebar transitions */
.main-sidebar {
  transition: margin-left 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* Desktop behavior (>= 992px) */
@media (min-width: 992px) {
  body:not(.sidebar-collapse) .main-sidebar {
    margin-left: 0;
  }

  body.sidebar-collapse .main-sidebar {
    margin-left: -250px;
  }

  body:not(.sidebar-collapse) .content-wrapper,
  body:not(.sidebar-collapse) .main-header,
  body:not(.sidebar-collapse) .main-footer {
    margin-left: 250px;
  }

  body.sidebar-collapse .content-wrapper,
  body.sidebar-collapse .main-header,
  body.sidebar-collapse .main-footer {
    margin-left: 0;
  }
}

/* Mobile behavior (< 992px) */
@media (max-width: 991.98px) {
  .main-sidebar {
    position: fixed;
    left: -250px;
    z-index: 1038;
  }

  body.sidebar-open .main-sidebar {
    left: 0;
  }

  .content-wrapper,
  .main-header,
  .main-footer {
    margin-left: 0 !important;
  }
}

/* Smooth transitions for content */
.content-wrapper,
.main-header,
.main-footer {
  transition: margin-left 0.3s ease-in-out;
}

@media (max-width: 991px) {
  .sticky-desktop-only {
    position: static !important;
  }
}

/* Notification Dropdown Styles */
.notification-item {
  padding: 10px 15px;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unseen {
  background-color: #fff8f8;
  border-left: 3px solid #dc3545;
}

.notification-item.unseen:hover {
  background-color: #fff0f0;
}

.navbar-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 4px;
  position: absolute;
  top: 5px;
  right: 5px;
}

/* =========================================================
   Brand Design System — unified colors, buttons, inputs, alerts
   ========================================================= */

:root {
  --brand-primary: #1b3a93;
  --brand-primary-dark: #142c6e;
  --brand-primary-light: #2d6fd8;
  --brand-secondary: #1eb4ea;
  --brand-secondary-dark: #0c95c8;
}

/* --- Buttons --- */
/* btn-primary → brand navy */
.btn-primary {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open>.dropdown-toggle.btn-primary {
  background-color: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
}

.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(27,58,147, 0.4) !important;
}

/* btn-outline-primary → brand navy outline */
.btn-outline-primary {
  color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

/* --- Card headers (card-primary) --- */
.card-primary:not(.card-outline)>.card-header {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.card-primary.card-outline {
  border-top: 3px solid var(--brand-primary);
}

/* --- Sidebar active/hover accent --- */
.nav-sidebar .nav-item>.nav-link.active,
.nav-sidebar .nav-item>.nav-link:hover {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  box-shadow: none !important;
}

/* --- Form controls — consistent sizing and focus ring --- */
.form-control {
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(27,58,147, 0.2);
  outline: none;
}

border-color: var(--brand-primary-light);
box-shadow: 0 0 0 0.2rem rgba(27,58,147, 0.2);
outline: none;
}

/* --- Alerts — consistent padding and icon alignment --- */
.alert {
  border-radius: 6px;
  border-left-width: 4px;
}

.alert-success {
  border-left-color: #28a745;
}

.alert-danger {
  border-left-color: #dc3545;
}

.alert-warning {
  border-left-color: #ffc107;
}

.alert-info {
  border-left-color: #17a2b8;
}

/* --- Flash container transitions --- */
#flash-container .alert {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: transparent;
  padding: 0.25rem 0;
  margin-bottom: 0;
}

/* --- Tables --- */
.table thead th {
  background-color: #f4f6f9;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #495057;
}

/* --- Page background --- */
.content-wrapper {
  background-color: #f4f6f9;
}

/* --- MGP Network palette: align Bootstrap "primary"/"info" utilities with brand --- */
a { color: var(--brand-primary-light); }
a:hover { color: var(--brand-primary); }

.text-primary { color: var(--brand-primary) !important; }
.bg-primary,
.badge-primary { background-color: var(--brand-primary) !important; color: #fff !important; }
.bg-info,
.badge-info { background-color: var(--brand-secondary) !important; color: #fff !important; }
.text-info { color: var(--brand-secondary-dark) !important; }

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

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* --- Sidebar brand logo --- */
.main-sidebar .brand-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 3px solid var(--brand-secondary);
}
.main-sidebar .brand-link .brand-image-mgp {
  height: 30px;
  width: auto;
}
.main-sidebar .brand-link .brand-text {
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1.1;
}
.main-sidebar .brand-link .brand-text small {
  display: block;
  color: var(--brand-primary-light);
  font-weight: 500;
  font-size: .6rem;
  letter-spacing: .25em;
}
