/* ==========================================================================
   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;
}

.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.75rem;
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  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.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.small-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -2px rgba(0, 0, 0, 0.12);
}

.small-box > .inner {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  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;
  }
}


