/* ==========================================================================
   Vishwabharti Staff & Operations Admin Portal — Hope UI Custom Enhancements
   Clean compatibility layer for Hope UI Bootstrap 5 Design System.
   ========================================================================== */

/* ─── Logo & Brand in Sidebar & Navbar ─── */
.sidebar .logo-main img,
.iq-navbar .logo-main img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.sidebar .logo-title {
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 0;
  font-size: 1.15rem;
}

/* ─── Card Slides in Swiper ─── */
.card-slide {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 0.75rem;
}
.card-slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(58, 87, 232, 0.15);
}

.dark .card-slide:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ─── Progress widget circle centering ─── */
.progress-widget .circle-progress {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.progress-widget .card-slie-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ─── Sidebar & Sidebar Toggle Stacking (Never Hide Behind Top Navbar) ─── */
.sidebar {
  z-index: 1050 !important;
}

.sidebar .sidebar-toggle {
  z-index: 1060 !important;
  position: absolute;
  right: -14px;
  top: 18px;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary, #3a57e8) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(58, 87, 232, 0.4) !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .sidebar-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(58, 87, 232, 0.6) !important;
}

.sidebar.sidebar-mini .sidebar-toggle .icon {
  transform: rotate(180deg);
}

@media (max-width: 1199.98px) {
  .sidebar .sidebar-toggle {
    display: none !important;
  }
  .nav .sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 32px;
    height: 32px;
    margin-right: 0.75rem;
    background: var(--bs-primary, #3a57e8) !important;
    color: #ffffff !important;
    border-radius: 0.5rem;
    z-index: 910;
  }
}

@media (min-width: 1200px) {
  .nav .sidebar-toggle {
    display: none !important;
  }
}

/* ─── Hope UI Top Navbar & Header Banner System ─── */
.iq-navbar {
  position: relative;
  z-index: 900 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding: 0.75rem 0;
}
.dark .iq-navbar {
  background: #1b2030 !important;
  border-bottom: 1px solid #30384f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991.98px) {
  .iq-navbar .navbar-collapse:not(.offcanvas-collapse) {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    z-index: 1000;
  }
  .dark .iq-navbar .navbar-collapse:not(.offcanvas-collapse) {
    background: #1b2030 !important;
    border-bottom-color: #30384f;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
}

/* Banner Container */
.iq-banner {
  position: relative;
  z-index: 0;
}

/* Authentic Hope UI Curved Top Header Banner */
.iq-navbar-header {
  position: relative;
  height: 215px;
  color: #ffffff !important;
  border-radius: 0 0 1rem 1rem;
}

/* Curved Graphics Background Canvas */
.iq-navbar-header .iq-header-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 264px;
  z-index: 0;
  overflow: hidden;
  border-radius: 0 0 1rem 1rem;
  pointer-events: none;
  transform-origin: center left;
  transition: all 400ms ease;
}

@media (max-width: 767.98px) {
  .iq-navbar-header {
    height: auto;
    min-height: 240px;
  }
  .iq-navbar-header .iq-header-img {
    height: 310px !important;
  }
}

.iq-navbar-header .iq-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1 !important; /* Authentic Hope UI unattenuated vivid graphic curves */
  display: block;
}

.dark .iq-navbar-header .iq-header-img img {
  filter: brightness(0.85) contrast(1.1);
}

/* Banner Content Wrapper */
.iq-navbar-header .iq-container {
  position: relative;
  z-index: 1;
  padding: calc(var(--bs-gutter-x, 0.75rem) * 3);
}

/* ─── Main Content Container (Floats above curved banner) ─── */
.content-inner {
  position: relative;
  z-index: 2;
}

.iq-navbar-header h1,
.iq-navbar-header .h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff !important;
  margin-bottom: 0.35rem;
}

.iq-navbar-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ─── Hope UI Header Banner Transparent Glass Buttons ─── */
.iq-navbar-header .btn,
.iq-navbar-header .btn-soft-light,
.iq-navbar-header .btn-link {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 0.5rem !important;
  font-weight: 500 !important;
  padding: 0.45rem 1rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.25s ease !important;
}
.iq-navbar-header .btn:hover,
.iq-navbar-header .btn-soft-light:hover,
.iq-navbar-header .btn-link:hover {
  background-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px);
}
.iq-navbar-header .btn:active,
.iq-navbar-header .btn-soft-light:active,
.iq-navbar-header .btn-link:active {
  background-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(0);
}

/* ─── Authentic Hope UI Soft Transparent Button System ─── */
.btn-soft-primary {
  background-color: rgba(58, 87, 232, 0.12) !important;
  color: #3a57e8 !important;
  border: 1px solid rgba(58, 87, 232, 0.1) !important;
  transition: all 0.2s ease;
}
.btn-soft-primary:hover {
  background-color: #3a57e8 !important;
  color: #ffffff !important;
  border-color: #3a57e8 !important;
  box-shadow: 0 4px 12px rgba(58, 87, 232, 0.3) !important;
}
.dark .btn-soft-primary {
  background-color: rgba(58, 87, 232, 0.22) !important;
  color: #8ba2ff !important;
  border-color: rgba(58, 87, 232, 0.25) !important;
}
.dark .btn-soft-primary:hover {
  background-color: #3a57e8 !important;
  color: #ffffff !important;
}

.btn-soft-secondary {
  background-color: rgba(108, 117, 125, 0.12) !important;
  color: #6c757d !important;
  border: 1px solid rgba(108, 117, 125, 0.1) !important;
  transition: all 0.2s ease;
}
.btn-soft-secondary:hover {
  background-color: #6c757d !important;
  color: #ffffff !important;
  border-color: #6c757d !important;
}
.dark .btn-soft-secondary {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.dark .btn-soft-secondary:hover {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.btn-soft-success {
  background-color: rgba(26, 160, 83, 0.12) !important;
  color: #1aa053 !important;
  border: 1px solid rgba(26, 160, 83, 0.1) !important;
  transition: all 0.2s ease;
}
.btn-soft-success:hover {
  background-color: #1aa053 !important;
  color: #ffffff !important;
  border-color: #1aa053 !important;
  box-shadow: 0 4px 12px rgba(26, 160, 83, 0.3) !important;
}

.btn-soft-danger {
  background-color: rgba(192, 50, 33, 0.12) !important;
  color: #c03221 !important;
  border: 1px solid rgba(192, 50, 33, 0.1) !important;
  transition: all 0.2s ease;
}
.btn-soft-danger:hover {
  background-color: #c03221 !important;
  color: #ffffff !important;
  border-color: #c03221 !important;
  box-shadow: 0 4px 12px rgba(192, 50, 33, 0.3) !important;
}

.btn-soft-warning {
  background-color: rgba(241, 106, 27, 0.12) !important;
  color: #f16a1b !important;
  border: 1px solid rgba(241, 106, 27, 0.1) !important;
  transition: all 0.2s ease;
}
.btn-soft-warning:hover {
  background-color: #f16a1b !important;
  color: #ffffff !important;
  border-color: #f16a1b !important;
}

.btn-soft-info {
  background-color: rgba(7, 154, 162, 0.12) !important;
  color: #079aa2 !important;
  border: 1px solid rgba(7, 154, 162, 0.1) !important;
  transition: all 0.2s ease;
}
.btn-soft-info:hover {
  background-color: #079aa2 !important;
  color: #ffffff !important;
  border-color: #079aa2 !important;
}

/* Glass & Ghost Buttons for subpages */
.btn-admin-ghost, .btn-ghost {
  background-color: rgba(58, 87, 232, 0.08) !important;
  color: #3a57e8 !important;
  border: 1px solid rgba(58, 87, 232, 0.22) !important;
}
.btn-admin-ghost:hover, .btn-ghost:hover {
  background-color: #3a57e8 !important;
  color: #ffffff !important;
  border-color: #3a57e8 !important;
  box-shadow: 0 4px 12px rgba(58, 87, 232, 0.25) !important;
}
.dark .btn-admin-ghost, .dark .btn-ghost {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border-color: #30384f !important;
}
.dark .btn-admin-ghost:hover, .dark .btn-ghost:hover {
  background-color: #3a57e8 !important;
  color: #ffffff !important;
  border-color: #3a57e8 !important;
}

/* ─── Loader Styles & Asset Resilience ─── */
.loader.simple-loader {
  background-color: #f5f6fa;
}
.dark .loader.simple-loader {
  background-color: #151824 !important;
}
.loader.simple-loader .loader-body {
  background-image: url("assets/hope-ui/images/loader.gif");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 80px 80px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   ─── Comprehensive Dark Mode Typography & Visibility System ───
   ═════════════════════════════════════════════════════════════════════════════ */

/* 1. Global Background & High-Contrast Body Base */
.dark body {
  background-color: #151824 !important;
  color: #cbd5e1 !important; /* Slate 300: 9.8:1 contrast against #222738 */
}

/* 2. Headings & Titles: Crisp, Luminous Slate-White */
.dark h1, .dark .h1,
.dark h2, .dark .h2,
.dark h3, .dark .h3,
.dark h4, .dark .h4,
.dark h5, .dark .h5,
.dark h6, .dark .h6,
.dark .card-title,
.dark .header-title h1,
.dark .header-title h2,
.dark .header-title h3,
.dark .header-title h4,
.dark .header-title h5,
.dark .header-title h6,
.dark .admin-panel__title,
.dark .caption-title,
.dark .logo-title {
  color: #f8fafc !important; /* Slate 50: 14.2:1 contrast against #222738 */
}

/* 3. Metric Widgets & Counters */
.dark .counter {
  color: #ffffff !important;
}
.dark .progress-detail p {
  color: #94a3b8 !important; /* Slate 400: Clear legible secondary metric label */
}
.dark .card-slie-arrow {
  color: #94a3b8 !important;
}

/* 4. Lightened, High-Contrast Status & Brand Colors */
.dark .text-success, .dark .counter.text-success {
  color: #4ade80 !important; /* Emerald 400: Crisp 10.5:1 contrast */
}
.dark .text-warning, .dark .counter.text-warning {
  color: #fbbf24 !important; /* Amber 400: Bright 11.2:1 contrast */
}
.dark .text-danger, .dark .counter.text-danger {
  color: #f87171 !important; /* Red 400: Crisp 7.5:1 contrast */
}
.dark .text-primary, .dark .counter.text-primary {
  color: #60a5fa !important; /* Blue 400: High clarity 6.8:1 contrast */
}
.dark .text-info, .dark .counter.text-info {
  color: #38bdf8 !important; /* Sky 400: Vibrant 9.9:1 contrast */
}

/* 5. Utility Class Color Fixes (Never Invisible or Muddy in Dark Mode) */
.dark .text-dark,
.dark .text-body,
.dark .invoice-number,
.dark .lead-msg {
  color: #f1f5f9 !important; /* Prevent dark-on-dark invisible text */
}
.dark .text-muted,
.dark small.text-muted,
.dark p.text-muted,
.dark span.text-muted,
.dark .caption-sub-title {
  color: #94a3b8 !important; /* Slate 400: 5.2:1 contrast, exceeds WCAG AA */
}
.dark .text-gray,
.dark .text-gray-dark,
.dark .text-secondary-label {
  color: #cbd5e1 !important; /* Slate 300 */
}

/* 6. Cards & Containers */
.dark .card {
  background-color: #222738 !important;
  border: 1px solid #30384f !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}
.dark .card-header {
  background-color: #222738 !important;
  border-bottom: 1px solid #30384f !important;
}
.dark .card-footer {
  background-color: #222738 !important;
  border-top: 1px solid #30384f !important;
}

/* 7. Deliverables & Data Tables */
.dark .table thead th,
.dark .admin-table th {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid #30384f !important;
  font-weight: 600 !important;
}
.dark .table tbody td,
.dark .admin-table td {
  border-bottom: 1px solid #283149 !important;
  color: #cbd5e1 !important;
}
.dark .table tbody td h6,
.dark .table tbody td .font-weight-bold,
.dark .table tbody td strong,
.dark .admin-table td strong,
.dark .admin-table td h6 {
  color: #f8fafc !important;
}
.dark .table tbody td small,
.dark .admin-table td small {
  color: #94a3b8 !important;
}
.dark .table-hover > tbody > tr:hover,
.dark .admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

/* 8. Recent Invoices & List Groups */
.dark .list-group-item {
  background-color: transparent !important;
  border-color: #30384f !important;
  color: #cbd5e1 !important;
}
.dark .list-group-item .font-weight-bold {
  color: #f8fafc !important;
}
.dark .list-group-item small {
  color: #94a3b8 !important;
}

/* 9. Soft Badges in Dark Mode */
.dark .badge.bg-soft-primary, .dark .badge-soft-primary {
  background-color: rgba(58, 87, 232, 0.22) !important;
  color: #93c5fd !important;
}
.dark .badge.bg-soft-success, .dark .badge-soft-success {
  background-color: rgba(34, 197, 94, 0.22) !important;
  color: #86efac !important;
}
.dark .badge.bg-soft-info, .dark .badge-soft-info {
  background-color: rgba(6, 182, 212, 0.22) !important;
  color: #67e8f9 !important;
}
.dark .badge.bg-soft-warning, .dark .badge-soft-warning {
  background-color: rgba(245, 158, 11, 0.22) !important;
  color: #fde047 !important;
}
.dark .badge.bg-soft-danger, .dark .badge-soft-danger {
  background-color: rgba(239, 68, 68, 0.22) !important;
  color: #fca5a5 !important;
}
.dark .badge.bg-soft-secondary, .dark .badge-soft {
  background-color: rgba(148, 163, 184, 0.22) !important;
  color: #cbd5e1 !important;
}

/* 10. Sidebar Navigation */
.dark .sidebar {
  background-color: #1e2433 !important;
  border-right: 1px solid #30384f !important;
}
.dark .sidebar-list .nav-link {
  color: #cbd5e1 !important;
}
.dark .sidebar-list .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}
.dark .sidebar-list .nav-link.active {
  color: #ffffff !important;
  background-color: var(--bs-primary) !important;
}
.dark .sidebar-list .nav-item .nav-link.static-item .default-icon {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}
.dark .sidebar-list .nav-link .icon {
  color: #94a3b8 !important;
}
.dark .sidebar-list .nav-link:hover .icon,
.dark .sidebar-list .nav-link.active .icon {
  color: #ffffff !important;
}

/* 11. Top Navbar & Dropdown Menus */
.dark .iq-navbar {
  background-color: #1e2433 !important;
  border-bottom: 1px solid #30384f !important;
}
.dark .dropdown-menu {
  background-color: #1e2433 !important;
  border: 1px solid #30384f !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
.dark .dropdown-item {
  color: #cbd5e1 !important;
}
.dark .dropdown-item:hover,
.dark .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.dark .dropdown-divider {
  border-color: #30384f !important;
}

/* 12. Form Controls & Modals */
.dark .form-control,
.dark .form-select,
.dark .form-control-admin {
  background-color: #1b2030 !important;
  border-color: #30384f !important;
  color: #f8fafc !important;
}
.dark .form-control:focus,
.dark .form-select:focus,
.dark .form-control-admin:focus {
  background-color: #1b2030 !important;
  border-color: #3a57e8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.25rem rgba(58, 87, 232, 0.25) !important;
}
.dark .form-control::placeholder,
.dark .form-control-admin::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
.dark .form-label,
.dark label {
  color: #e2e8f0 !important;
  font-weight: 500 !important;
}
.dark .modal-content {
  background-color: #222738 !important;
  border: 1px solid #30384f !important;
  color: #cbd5e1 !important;
}
.dark .modal-header,
.dark .modal-footer {
  border-color: #30384f !important;
}
.dark .modal-title {
  color: #ffffff !important;
}

/* 13. ApexCharts SVG Text & Elements */
.dark .apexcharts-text,
.dark .apexcharts-text tspan,
.dark .apexcharts-xaxis-texts-g text,
.dark .apexcharts-yaxis-texts-g text,
.dark .apexcharts-svg .apexcharts-yaxis-texts-g text,
.dark .apexcharts-svg .apexcharts-xaxis-texts-g text {
  fill: #94a3b8 !important;
}
.dark .apexcharts-gridline,
.dark .apexcharts-grid line,
.dark .apexcharts-svg line {
  stroke: rgba(255, 255, 255, 0.08) !important;
}
.dark .apexcharts-radialbar-track path,
.dark .apexcharts-svg .apexcharts-track path {
  stroke: rgba(255, 255, 255, 0.08) !important;
}
.dark .apexcharts-datalabel-value {
  fill: #ffffff !important;
}
.dark .apexcharts-datalabel-label {
  fill: #94a3b8 !important;
}
.dark .apexcharts-tooltip.apexcharts-theme-dark {
  background: #1b2030 !important;
  border: 1px solid #30384f !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45) !important;
}
.dark .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: #222738 !important;
  border-bottom: 1px solid #30384f !important;
  color: #f8fafc !important;
}

/* ─── Subpage Compatibility Layer (Maps legacy .admin-* classes to Hope UI) ─── */
.admin-panel {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px 0 rgba(17, 38, 146, 0.05);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.dark .admin-panel {
  background: #222738;
  border-color: #30384f;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.25);
}

.admin-panel__head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dark .admin-panel__head {
  border-bottom-color: #30384f;
}

.admin-panel__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #232d42;
  margin-bottom: 0;
}
.dark .admin-panel__title {
  color: #ffffff;
}

.admin-panel__body {
  padding: 1.5rem;
}

.admin-table {
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
  border-collapse: collapse;
}
.admin-table th {
  background: #f5f6fa;
  color: #8a92a6;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
}
.dark .admin-table th {
  background: #1b2030;
  color: #8a92a6;
  border-bottom-color: #30384f;
}
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  color: #232d42;
  font-size: 0.88rem;
}
.dark .admin-table td {
  border-bottom-color: #30384f;
  color: #cbd5e1;
}
.admin-table tbody tr:hover {
  background-color: rgba(58, 87, 232, 0.03);
}
.dark .admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.form-control-admin {
  display: block;
  width: 100%;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.5;
  color: #232d42;
  background-color: #fff;
  border: 1px solid #d3d8df;
  border-radius: 0.5rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.dark .form-control-admin {
  background-color: #1b2030;
  border-color: #30384f;
  color: #cbd5e1;
}
.form-control-admin:focus {
  border-color: #3a57e8;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(58, 87, 232, 0.25);
}

.btn-admin, .btn-hope {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-admin-primary, .btn-hope-primary {
  background: #3a57e8;
  color: #ffffff;
}
.btn-admin-primary:hover, .btn-hope-primary:hover {
  background: #2845d4;
  color: #ffffff;
}
.btn-admin-secondary, .btn-hope-light {
  background: #f1f2f6;
  color: #232d42;
}
.dark .btn-admin-secondary, .dark .btn-hope-light {
  background: #30384f;
  color: #e2e8f0;
}
.btn-admin-sm, .btn-hope-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}
.btn-admin-danger {
  background: #c03221;
  color: #fff;
}
.btn-admin-danger:hover {
  background: #a02819;
  color: #fff;
}

/* ─── Badge mappings ─── */
.badge-admin, .badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 30px;
}
.badge-soft-primary { background: rgba(58, 87, 232, 0.15); color: #3a57e8; }
.badge-soft-success { background: rgba(26, 160, 83, 0.15); color: #1aa053; }
.badge-soft-warning { background: rgba(241, 106, 27, 0.15); color: #f16a1b; }
.badge-soft-danger  { background: rgba(192, 50, 33, 0.15); color: #c03221; }
.badge-soft-info    { background: rgba(0, 195, 249, 0.15); color: #00c3f9; }

/* ─── Hope UI Timeline Activity ─── */
.profile-media {
  position: relative;
}
.profile-dots-pills {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
  background-color: #fff;
  flex-shrink: 0;
}
.dark .profile-dots-pills {
  background-color: #222738;
}

/* ─── Hope UI Simple Enterprise Internal Authentication ─── */
.login-page-wrapper {
  min-height: 100vh;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: background-color 0.3s ease;
  position: relative;
}
.dark .login-page-wrapper {
  background-color: #0b0f19;
}

.login-centered-box {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.enterprise-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
}
.dark .enterprise-card {
  background-color: #161e2e;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.auth-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.badge-internal {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
}
.dark .badge-internal {
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.login-input-group .input-group-text {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #64748b;
  font-size: 0.95rem;
  padding: 0.65rem 0.95rem;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.dark .login-input-group .input-group-text {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.login-input-group .form-control {
  height: 46px;
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  font-size: 0.92rem;
  padding-left: 0.75rem;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: all 0.2s ease;
}
.login-input-group .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2);
}
.dark .login-input-group .form-control {
  background-color: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}
.dark .login-input-group .form-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

.login-input-group .btn-pwd-toggle {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #64748b;
  border-left: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}
.login-input-group .btn-pwd-toggle:hover {
  background-color: #f1f5f9;
  color: #2563eb;
}
.dark .login-input-group .btn-pwd-toggle {
  background-color: #0f172a;
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}
.dark .login-input-group .btn-pwd-toggle:hover {
  background-color: #1e293b;
  color: #38bdf8;
}

.btn-login-submit {
  height: 48px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  background-color: #2563eb;
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
.btn-login-submit:hover:not(:disabled) {
  background-color: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}
.btn-login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.caps-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #d97706;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 8px;
  border-radius: 5px;
  margin-top: 4px;
}
.dark .caps-lock-badge {
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

.security-footer-notice {
  font-size: 0.74rem;
  color: #64748b;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
}
.dark .security-footer-notice {
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.auth-floating-actions {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-page-wrapper h1,
.login-page-wrapper h2,
.login-page-wrapper h3 {
  color: #0f172a;
}
.dark .login-page-wrapper h1,
.dark .login-page-wrapper h2,
.dark .login-page-wrapper h3 {
  color: #ffffff;
}

.login-page-wrapper .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.8rem;
}
.dark .login-page-wrapper .form-label {
  color: #cbd5e1;
}

.login-page-wrapper .form-check-label {
  color: #475569;
}
.dark .login-page-wrapper .form-check-label {
  color: #94a3b8;
}
