/* ==========================================================================
   AdminLTE v4 Theme Integration & Luxury Dashboard Styling
   WEES Alumni Welfare Trust
   Modeled accurately after ColorlibHQ/AdminLTE v4.10.x
   ========================================================================== */

:root {
  --lte-primary: #0d6efd;
  --lte-primary-rgb: 13, 110, 253;
  --lte-success: #198754;
  --lte-info: #0dcaf0;
  --lte-warning: #ffc107;
  --lte-danger: #dc3545;
  --lte-dark: #212529;
  --lte-navy: #001f3f;
  --lte-sidebar-bg: #1e2229;
  --lte-sidebar-hover: rgba(255, 255, 255, 0.08);
  --lte-sidebar-active: #0d6efd;
  --lte-sidebar-color: #c2c7d0;
  --lte-sidebar-header-color: #6c757d;
  --lte-card-border-radius: 0.75rem;
  --lte-box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.08);
  --lte-gold: #f59e0b;
}

/* ==========================================================================
   1. AdminLTE Sidebar Styling (Luxury Dark Sidebar)
   ========================================================================== */
.adminlte-sidebar-wrapper {
  position: sticky;
  top: 85px;
  z-index: 100;
}

/* Mobile Offcanvas Sidebar Adjustments */
#workspaceMobileOffcanvas {
  z-index: 1075 !important;
}

#workspaceMobileOffcanvas.show {
  z-index: 1075 !important;
}

.offcanvas-backdrop.show {
  z-index: 1060 !important;
}

#workspaceMobileOffcanvas .adminlte-sidebar-wrapper {
  position: static;
  top: 0;
  width: 100%;
  z-index: auto;
}

#workspaceMobileOffcanvas .adminlte-sidebar-card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

#workspaceMobileOffcanvas .sidebar-brand-box {
  display: none;
}

#workspaceMobileOffcanvas .sidebar-nav-link {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.adminlte-sidebar-card {
  background: var(--lte-sidebar-bg);
  color: var(--lte-sidebar-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Sidebar Brand Header */
.sidebar-brand-box {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand-box .brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.sidebar-brand-box .brand-badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sidebar User Panel */
.sidebar-user-panel {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px !important;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.sidebar-user-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-status {
  font-size: 0.72rem;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sidebar-user-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* Sidebar Menu Navigation */
.sidebar-nav-list {
  padding: 0.65rem 0.5rem;
  list-style: none;
  margin: 0;
}

.sidebar-nav-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lte-sidebar-header-color);
  padding: 0.65rem 0.85rem 0.35rem;
}

.sidebar-nav-item {
  margin-bottom: 0.2rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  color: var(--lte-sidebar-color);
  text-decoration: none;
  border-radius: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-nav-link:hover {
  color: #ffffff;
  background-color: var(--lte-sidebar-hover);
}

.sidebar-nav-link.active {
  color: #ffffff;
  background-color: var(--lte-sidebar-active);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
  font-weight: 600;
}

.sidebar-nav-link .nav-icon {
  width: 20px;
  font-size: 1rem;
  margin-right: 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav-link .nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-link .nav-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

.sidebar-cta-box {
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   2. AdminLTE Small Box Widgets (Metric Cards)
   ========================================================================== */
.small-box {
  border-radius: 0.85rem;
  position: relative;
  display: block;
  box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.07), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
  color: #ffffff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.small-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -2px rgba(0, 0, 0, 0.16);
  color: #ffffff !important;
}

.small-box.small-box-clickable {
  text-decoration: none;
}

.small-box.small-box-clickable:active {
  transform: scale(0.98);
}

.small-box > .inner {
  position: relative;
  z-index: 2;
}

.small-box h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.small-box p {
  font-size: 0.88rem;
  margin-bottom: 0;
  font-weight: 500;
  opacity: 0.9;
}

.small-box .small-box-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
  line-height: 1;
  pointer-events: none;
}

.small-box:hover .small-box-icon {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.28);
}

.small-box-footer {
  position: relative;
  text-align: center;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.88);
  display: block;
  z-index: 2;
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.small-box-footer:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
}

/* Luxury Color Gradients for Small Boxes */
.bg-gradient-navy {
  background: linear-gradient(135deg, #001f3f 0%, #003366 100%) !important;
}

.bg-gradient-emerald {
  background: linear-gradient(135deg, #0f5132 0%, #198754 100%) !important;
}

.bg-gradient-amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
}

.bg-gradient-royal {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%) !important;
}

/* ==========================================================================
   3. AdminLTE Standard Cards (Clean & Outline Styles)
   ========================================================================== */
.adminlte-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--bs-body-bg, #ffffff);
  background-clip: border-box;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--lte-card-border-radius);
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.adminlte-card.card-outline {
  border-top: 3px solid #0d6efd;
}

.adminlte-card.card-outline-primary { border-top-color: #0d6efd; }
.adminlte-card.card-outline-success { border-top-color: #198754; }
.adminlte-card.card-outline-warning { border-top-color: #f59e0b; }
.adminlte-card.card-outline-info { border-top-color: #0dcaf0; }
.adminlte-card.card-outline-danger { border-top-color: #dc3545; }
.adminlte-card.card-outline-navy { border-top-color: #001f3f; }

.adminlte-card .card-header {
  background-color: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 0.95rem 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adminlte-card .card-title {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.adminlte-card .card-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.adminlte-card .card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.adminlte-card .card-footer {
  padding: 0.85rem 1.25rem;
  background-color: rgba(15, 23, 42, 0.02);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom-left-radius: var(--lte-card-border-radius);
  border-bottom-right-radius: var(--lte-card-border-radius);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .adminlte-card {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .adminlte-card .card-header,
[data-bs-theme="dark"] .adminlte-card .card-footer {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   4. Hero Welcome Card (AdminLTE Jumbotron Luxury Header)
   ========================================================================== */
.adminlte-hero-card {
  background: linear-gradient(135deg, #0b192c 0%, #1e3e62 50%, #001f3f 100%);
  color: #ffffff;
  border-radius: var(--lte-card-border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px -5px rgba(0, 15, 35, 0.35);
  padding: 1.65rem 1.85rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.adminlte-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(13, 110, 253, 0) 70%);
  pointer-events: none;
}

.hero-avatar-lte {
  width: 72px;
  height: 72px;
  border-radius: 8px !important;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.hero-avatar-lte-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.strength-bar-adminlte {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.strength-bar-adminlte .progress-bar {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.strength-badge-adminlte {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.strength-badge-adminlte.is-completed {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.strength-badge-adminlte.is-pending {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   5. Interactive Widgets & Elements
   ========================================================================== */
/* Directory Finder in AdminLTE style */
.directory-search-input {
  border-radius: 0.5rem;
  padding-left: 2.25rem;
  font-size: 0.88rem;
  border-color: rgba(15, 23, 42, 0.12);
}

.directory-search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.filter-badge-pill {
  cursor: pointer;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.15);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-badge-pill:hover,
.filter-badge-pill.active {
  background: #0d6efd;
  color: #ffffff;
  border-color: #0d6efd;
}

/* Event Date Badges */
.event-date-stamp {
  width: 48px;
  height: 52px;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  padding: 2px;
}

.event-date-stamp .stamp-month {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #dc3545;
  line-height: 1;
}

.event-date-stamp .stamp-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bs-body-color, #1e293b);
  line-height: 1.1;
}

/* Secretariat Banner */
.secretariat-adminlte-callout {
  border-radius: var(--lte-card-border-radius);
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-left: 5px solid #f59e0b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   5. AdminLTE Sidebar Collapsed State (Minimize & Maximize)
   ========================================================================== */
.adminlte-sidebar-wrapper {
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: width;
}

/* Collapsed Mini-Sidebar Mode */
.adminlte-sidebar-wrapper.sidebar-collapsed {
  width: 74px !important;
}

.adminlte-sidebar-wrapper.sidebar-collapsed .brand-text,
.adminlte-sidebar-wrapper.sidebar-collapsed .sidebar-user-info,
.adminlte-sidebar-wrapper.sidebar-collapsed .sidebar-nav-header,
.adminlte-sidebar-wrapper.sidebar-collapsed .nav-text,
.adminlte-sidebar-wrapper.sidebar-collapsed .nav-badge {
  display: none !important;
}

.adminlte-sidebar-wrapper.sidebar-collapsed .sidebar-brand-box {
  padding: 0.85rem 0.5rem;
  justify-content: center;
}

.adminlte-sidebar-wrapper.sidebar-collapsed .sidebar-user-panel {
  padding: 0.75rem 0.5rem;
  justify-content: center;
}

.adminlte-sidebar-wrapper.sidebar-collapsed .sidebar-nav-link {
  padding: 0.75rem 0.5rem;
  justify-content: center;
}

.adminlte-sidebar-wrapper.sidebar-collapsed .sidebar-nav-link .nav-icon {
  margin-right: 0;
  font-size: 1.15rem;
}

/* Responsive Offcanvas / Mobile Optimization */
@media (max-width: 991.98px) {
  .adminlte-sidebar-wrapper {
    position: static;
    margin-bottom: 1.5rem;
    width: 100% !important;
  }
}

/* ==========================================================================
   6. Universal Workspace Consistent Grid, Spacing, & AdminLTE Cohesion
   Eliminating overlapping elements, tight text lines, & cramped cards
   ========================================================================== */

/* Universal Workspace Viewport Container */
.workspace-page-container {
  max-width: 1520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Typography line heights & text spacing */
body, p, .lead {
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  line-height: 1.35;
  letter-spacing: -0.25px;
}

/* Compact, Single-Line Workspace Breadcrumb Bar */
.workspace-breadcrumb-bar {
  background: var(--bs-tertiary-bg, #f8fafc);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  margin-bottom: 0 !important;
  font-size: 0.84rem;
  line-height: 1.2;
}

.workspace-breadcrumb-bar nav[aria-label="breadcrumb"],
.workspace-breadcrumb-bar .breadcrumb {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.84rem;
  line-height: 1.2;
}

.workspace-breadcrumb-bar .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  line-height: 1.2;
}

.workspace-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
  color: var(--bs-secondary-color, #94a3b8);
  padding: 0 0.45rem;
  line-height: 1;
}

/* Breadcrumb Spacing & Polishing (fallback for non-bar pages) */
nav[aria-label="breadcrumb"]:not(.workspace-breadcrumb-bar *), 
.breadcrumb:not(.workspace-breadcrumb-bar *) {
  margin-bottom: 1.25rem !important;
  font-size: 0.86rem;
}

/* Universal AdminLTE Workspace Cards & Containers */
.card-custom {
  background: var(--wees-card-bg, #ffffff);
  border-radius: 1rem !important;
  border: 1px solid var(--bs-border-color, rgba(0,0,0,0.08)) !important;
  padding: 1.75rem !important;
  margin-bottom: 1.75rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
  .card-custom {
    padding: 2.25rem !important;
  }
}

/* Header Action Bars in Cards */
.card-custom > .d-flex.border-bottom,
.checkout-card > .d-flex.border-bottom {
  padding-bottom: 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

/* Modern Clean Buttons */
.btn {
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
}

/* Form Groups and Inputs Spacing */
.form-label {
  margin-bottom: 0.45rem !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bs-body-color, #1e293b);
}

.form-control, .form-select {
  padding: 0.65rem 0.95rem;
  font-size: 0.92rem;
  border-radius: 0.6rem;
}

.form-text, small.text-muted, .extra-small {
  margin-top: 0.35rem;
  line-height: 1.5;
  display: inline-block;
}

/* List Items & Rows Comfort Spacing */
.list-group-item {
  padding: 1rem 1.25rem;
  line-height: 1.55;
}

/* Badges Alignment & Padding */
.badge {
  padding: 0.35em 0.7em;
  font-weight: 600;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
}

/* Table Padding & Legibility */
.table > :not(caption) > * > * {
  padding: 1rem 1.15rem;
  vertical-align: middle;
}

/* Tab Navigation Polishing */
.nav-pills .nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
}

/* Checkout Card Refinements */
.checkout-card {
  background: var(--wees-card-bg, #ffffff);
  border-radius: 1rem;
  border: 1px solid var(--bs-border-color, rgba(0,0,0,0.08));
  padding: 1.75rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .checkout-card {
    padding: 2.25rem;
  }
}

/* ==========================================================================
   PWA NATIVE MOBILE APP MODE
   Activated strictly when launched via installed standalone window, ?source=pwa, or on mobile screen (< 992px)
   ========================================================================== */
.pwa-mode header.header-wrapper,
.pwa-mode .wees-topbar,
.pwa-mode #mainNavbar,
.pwa-mode .footer-section,
.pwa-mode .public-website-header,
.pwa-mode .public-website-footer,
body.pwa-mode header.header-wrapper,
body.pwa-mode .public-website-header,
body.pwa-mode .public-website-footer {
  display: none !important;
}

@media all and (display-mode: standalone) {
  header.header-wrapper,
  .wees-topbar,
  #mainNavbar,
  .footer-section,
  .public-website-header,
  .public-website-footer {
    display: none !important;
  }
}

/* On mobile phones (< 768px), keep layout app-clean and focused on dashboard/content */
@media (max-width: 767.98px) {
  .wees-topbar {
    display: none !important;
  }
}

.pwa-mode body,
body.pwa-mode {
  padding-bottom: 76px !important;
  -webkit-tap-highlight-color: transparent;
  overflow-y: auto !important;
}

@media all and (display-mode: standalone) {
  body {
    padding-bottom: 76px !important;
    -webkit-tap-highlight-color: transparent;
    overflow-y: auto !important;
  }
}

.pwa-mode .pwa-app-header,
body.pwa-mode .pwa-app-header {
  display: flex !important;
}

@media all and (display-mode: standalone) {
  .pwa-app-header {
    display: flex !important;
  }
}

/* Force bottom nav bar strictly in app mode */
.pwa-mode .pwa-bottom-nav,
body.pwa-mode .pwa-bottom-nav {
  display: flex !important;
  z-index: 1050 !important;
}

body:not(.pwa-mode) .pwa-bottom-nav {
  display: none !important;
}

@media all and (display-mode: standalone) {
  .pwa-bottom-nav {
    display: flex !important;
  }
  body {
    padding-bottom: 74px !important;
  }
}

/* Completely hide breadcrumbs in PWA mode */
.pwa-mode .workspace-breadcrumb-bar,
body.pwa-mode .workspace-breadcrumb-bar,
.pwa-mode #workspaceBreadcrumbBar,
body.pwa-mode #workspaceBreadcrumbBar {
  display: none !important;
}

@media all and (display-mode: standalone) {
  .workspace-breadcrumb-bar,
  #workspaceBreadcrumbBar {
    display: none !important;
  }
}

/* User Profile Header Card */
.user-profile-header-card {
  background-color: var(--bs-card-bg, #ffffff);
  border-color: var(--bs-border-color, #e2e8f0) !important;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .user-profile-header-card {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Mobile & PWA Responsive Card Polishing */
@media (max-width: 767.98px) {
  .small-box .small-box-icon {
    font-size: 2.2rem !important;
    top: 8px !important;
    right: 8px !important;
    opacity: 0.18 !important;
  }
  .small-box h3 {
    font-size: 1.25rem !important;
  }
  .small-box p {
    font-size: 0.72rem !important;
  }
  .small-box .small-box-footer {
    font-size: 0.7rem !important;
  }
  .adminlte-card {
    border-radius: 0.85rem !important;
  }
  .adminlte-card .card-header {
    padding: 0.85rem 1rem !important;
  }
  .adminlte-card .card-body {
    padding: 1rem !important;
  }
}

/* Bottom Nav Styling */
.pwa-bottom-nav {
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pwa-bottom-nav .pwa-tab-label {
  font-size: 0.65rem;
  font-weight: 600;
  display: block;
  letter-spacing: 0.2px;
}

.pwa-bottom-nav .pwa-nav-tab.active {
  color: #ffc107 !important;
  opacity: 1 !important;
}

.pwa-bottom-nav .pwa-nav-tab:active .pwa-center-btn {
  transform: scale(0.92);
}

.pwa-center-btn {
  transition: transform 0.15s ease;
}

/* ==========================================================================
   PWA Welcome Splash Screen & Animation
   ========================================================================== */
.pwa-splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.pwa-splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  display: none !important;
}

.pwa-splash-logo-card {
  width: 130px;
  height: 130px;
  background: #ffffff;
  border-radius: 28px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pwaLogoPulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pwa-splash-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes pwaLogoPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(245, 158, 11, 0.45);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
  }
}




