/* ==========================================================================
   UMPSA Travel Management System — Premium Custom Style Sheet
   Designed for Visual WOW: HSL harmonies, Glassmorphism, Micro-Animations,
   Tactile feedback, Custom premium scrollbars & high-fidelity polish.
   ========================================================================== */

:root {
  /* Brand HSL base variables */
  --teal-h: 179;
  --teal-s: 100%;
  --teal-l: 32%;
  --teal:         hsl(var(--teal-h), var(--teal-s), var(--teal-l)); /* #00A3A1 */
  --teal-dark:    hsl(var(--teal-h), var(--teal-s), 23%);
  --teal-light:   hsl(var(--teal-h), var(--teal-s), 96%);

  --blue-h: 205;
  --blue-s: 100%;
  --blue-l: 31%;
  --blue:         hsl(var(--blue-h), var(--blue-s), var(--blue-l)); /* #005A9C */
  --blue-dark:    hsl(var(--blue-h), var(--blue-s), 20%);
  --blue-light:   hsl(var(--blue-h), var(--blue-s), 95%);

  --purple-h: 270;
  --purple:       hsl(var(--purple-h), 76%, 50%);
  --purple-light: hsl(var(--purple-h), 76%, 97%);

  --amber-h: 38;
  --amber:        hsl(var(--amber-h), 92%, 50%);
  --amber-light:  hsl(var(--amber-h), 92%, 96%);

  --emerald-h: 150;
  --emerald:      hsl(var(--emerald-h), 84%, 37%);
  --emerald-light:hsl(var(--emerald-h), 84%, 96%);

  --rose-h: 350;
  --rose:         hsl(var(--rose-h), 80%, 48%);
  --rose-light:   hsl(var(--rose-h), 80%, 96%);

  /* Layout variables */
  --sidebar-bg:   #0b132b; /* Sleeker, deep cosmic indigo */
  --sidebar-w:    260px;
  --body-bg:      #f8fafc; /* Pure premium soft slate background */
  
  /* Drop Shadows & Glows */
  --card-shadow:  0 8px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --glass-shadow: 0 20px 60px rgba(11, 19, 43, 0.15);
  
  --radius:       16px;
}

/* ==========================================================================
   Global Reset & Base Scrollbar
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--body-bg);
  color: #1e293b; /* Dark slate text for superb readability */
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ==========================================================================
   Auth Pages (Login / Register / Complete Profile)
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, hsl(var(--blue-h), 80%, 12%) 0%, hsl(var(--teal-h), 80%, 8%) 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* Floating Aura Blobs in background */
.auth-wrapper::before, .auth-wrapper::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}
.auth-wrapper::before {
  background: var(--teal);
  top: -120px;
  left: -120px;
  animation: float-aura 18s infinite alternate ease-in-out;
}
.auth-wrapper::after {
  background: var(--blue);
  bottom: -120px;
  right: -120px;
  animation: float-aura 18s infinite alternate-reverse ease-in-out;
}

@keyframes float-aura {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.15); }
}

.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  display: flex;
  min-height: 560px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(11, 19, 43, 0.22);
}

.auth-brand {
  background: linear-gradient(135deg, hsl(var(--blue-h), 80%, 18%) 0%, hsl(var(--teal-h), 75%, 22%) 100%);
  color: #fff;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1.1;
  text-align: center;
  position: relative;
}
.auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.auth-brand .logo-circle {
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  overflow: hidden;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15), 0 10px 25px rgba(0, 0, 0, 0.25);
  padding: 6px;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-brand h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.auth-brand p {
  opacity: .85;
  font-size: .95rem;
  margin: 0;
  font-weight: 500;
}
.auth-brand .brand-tagline {
  margin-top: 24px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(to right, #2af598 0%, #009efd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  border-bottom: 1.5px solid rgba(42, 245, 152, 0.3);
  padding-bottom: 4px;
}

.auth-form-wrap {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1.2;
}
.auth-form-wrap h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.auth-form-wrap .sub {
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 32px;
  font-weight: 500;
}

/* Steps list inside auth-brand for Register page */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2af598 0%, #009efd 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 4px 10px rgba(0, 158, 253, 0.3);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.step-text {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Sidebar & Layout
   ========================================================================== */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .3s ease, width .3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(11, 19, 43, 0.08);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }

.sidebar-brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.sidebar-brand .brand-icon {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.sidebar-brand .brand-text { color: #fff; }
.sidebar-brand .brand-text strong { display: block; font-size: .95rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.3px; }
.sidebar-brand .brand-text small  { color: rgba(255, 255, 255, 0.45); font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; display: block; margin-top: 1px; }

.sidebar-section {
  padding: 20px 14px 8px;
}
.sidebar-section-label {
  color: rgba(255, 255, 255, 0.35);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 0 12px;
  margin-bottom: 8px;
}
.nav-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 4px;
  position: relative;
  border: 1px solid transparent;
}
.nav-item-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding-left: 20px;
}
.nav-item-link.active {
  background: linear-gradient(135deg, var(--teal), #00bfbd);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 163, 161, 0.35);
  font-weight: 600;
  padding-left: 20px;
}
.nav-item-link i { width: 20px; text-align: center; font-size: .95rem; opacity: 0.85; }
.nav-item-link .badge-count {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 163, 161, 0.3);
}
.nav-item-link.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}
.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-user .avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 163, 161, 0.2);
}
.sidebar-user .user-info strong { display: block; color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: -0.2px; }
.sidebar-user .user-info small  { color: rgba(255, 255, 255, 0.45); font-size: .72rem; text-transform: capitalize; font-weight: 500; display: block; margin-top: 1px; }

/* ==========================================================================
   Main Content Layout & Topbar
   ========================================================================== */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0;
  letter-spacing: -0.5px;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }

.btn-topbar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #475569;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-topbar:hover {
  background: var(--teal-light);
  color: var(--teal);
  border-color: rgba(0, 163, 161, 0.3);
  transform: translateY(-1px);
}
.btn-topbar:active {
  transform: translateY(1px) scale(0.95);
}
.btn-topbar .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #f43f5e;
  border-radius: 50%;
  border: 2px solid #fff;
}
.btn-topbar .notif-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #f43f5e;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  border: 2px solid #fff;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(244, 63, 94, 0.3);
}

.page-content { padding: 32px; flex: 1; }

.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0;
  letter-spacing: -0.5px;
}
.page-header .breadcrumb { font-size: .85rem; margin: 0; font-weight: 500; }
.page-header .breadcrumb-item.active { color: #64748b; }

/* ==========================================================================
   Stat Cards (Dashboard)
   ========================================================================== */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(241, 245, 249, 0.8);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all .3s ease;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}
.stat-card:hover::after {
  border-color: rgba(0, 163, 161, 0.15);
}
.stat-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-icon.teal   { background: linear-gradient(135deg, var(--teal-light), #ccfbf1); color: var(--teal); box-shadow: 0 4px 10px rgba(0, 163, 161, 0.15); }
.stat-icon.blue   { background: linear-gradient(135deg, var(--blue-light), #dbeafe); color: var(--blue); box-shadow: 0 4px 10px rgba(0, 90, 156, 0.15); }
.stat-icon.warn   { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: var(--amber); box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15); }
.stat-icon.green  { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--emerald); box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15); }
.stat-icon.red    { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: var(--rose); box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15); }
.stat-icon.purple { background: linear-gradient(135deg, #faf5ff, #f3e8ff); color: var(--purple); box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15); }

.stat-body .stat-num   { font-size: 2.1rem; font-weight: 800; color: #0f172a; line-height: 1; letter-spacing: -0.5px; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-body .stat-label { color: #64748b; font-size: .85rem; font-weight: 600; margin-top: 4px; }
.stat-body .stat-sub   { font-size: .78rem; color: #94a3b8; margin-top: 3px; font-weight: 500; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease;
  background: #fff;
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
}
.card-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h5, .card-header h6 {
  margin: 0;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.card-body { padding: 24px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: .9rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active {
  transform: scale(0.97);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 163, 161, 0.3);
}
.btn-teal:hover {
  background: linear-gradient(135deg, var(--teal-dark) 0%, hsl(var(--teal-h), var(--teal-s), 18%) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 163, 161, 0.4);
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 90, 156, 0.3);
}
.btn-blue:hover {
  background: linear-gradient(135deg, var(--blue-dark) 0%, hsl(var(--blue-h), var(--blue-s), 15%) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 90, 156, 0.4);
}
.btn-outline-teal {
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 163, 161, 0.25);
}
.btn-outline-secondary {
  border: 2.5px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  background: #fff;
}
.btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-label { font-weight: 600; font-size: .875rem; color: #334155; margin-bottom: 6px; }
.form-text { color: #64748b; font-size: .8rem; font-weight: 500; }

.form-control, .form-select {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .9rem;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s ease;
  color: #1e293b;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px hsla(var(--teal-h), var(--teal-s), var(--teal-l), 0.15);
}
.input-group-text {
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

/* ==========================================================================
   Badges (Status Labels)
   ========================================================================== */
.badge-pending  {
  background: hsl(var(--amber-h), 92%, 96%);
  color: hsl(var(--amber-h), 92%, 30%);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid hsl(var(--amber-h), 92%, 90%);
}
.badge-pending::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: badge-pulse 1.5s infinite ease-in-out;
}

.badge-approved {
  background: hsl(var(--emerald-h), 84%, 96%);
  color: hsl(var(--emerald-h), 84%, 28%);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid hsl(var(--emerald-h), 84%, 90%);
}
.badge-approved::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.badge-rejected {
  background: hsl(var(--rose-h), 80%, 96%);
  color: hsl(var(--rose-h), 80%, 30%);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid hsl(var(--rose-h), 80%, 90%);
}
.badge-rejected::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

.badge-cancelled {
  background: hsl(220, 13%, 95%);
  color: hsl(220, 13%, 40%);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid hsl(220, 13%, 88%);
}
.badge-cancelled::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: hsl(220, 13%, 55%);
}

@keyframes badge-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.badge-role-admin { background: var(--blue-light); color: var(--blue); font-size: .75rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; border: 1px solid rgba(0, 90, 156, 0.15); }
.badge-role-hod   { background: #f3e8ff; color: #6d28d9; font-size: .75rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; border: 1px solid rgba(109, 40, 217, 0.15); }
.badge-role-user  { background: #f0fdf4; color: #166534; font-size: .75rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; border: 1px solid rgba(22, 101, 52, 0.15); }

/* ==========================================================================
   Tables & DataTables Styling
   ========================================================================== */
.table { font-size: .875rem; }
.table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 2px solid #edf2f7;
  padding: 14px 16px;
  white-space: nowrap;
}
.table tbody td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; color: #334155; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* DataTables overrides */
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter {
  padding: 18px 24px 14px;
}
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #64748b;
  margin: 0;
  font-weight: 600;
}

div.dataTables_wrapper div.dataTables_length select {
  cursor: pointer;
}
div.dataTables_wrapper div.dataTables_length select:focus,
div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: var(--teal) !important;
  outline: none;
  box-shadow: 0 0 0 3px hsla(var(--teal-h), var(--teal-s), var(--teal-l), 0.12) !important;
}

div.dataTables_wrapper .row:first-child {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0 !important;
}

div.dataTables_wrapper div.dataTables_info {
  padding: 16px 24px;
  font-size: .85rem;
  color: #64748b;
  font-weight: 500;
}
div.dataTables_wrapper div.dataTables_paginate {
  padding: 14px 24px;
}
div.dataTables_wrapper .row:last-child {
  border-top: 1px solid #e2e8f0;
  margin-top: 0 !important;
  align-items: center;
}

/* Pagination buttons styling */
div.dataTables_wrapper div.dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  font-size: .82rem !important;
  padding: 6px 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #475569 !important;
  transition: all 0.2s ease !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.current:hover {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 163, 161, 0.2) !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button:hover {
  background: var(--teal-light) !important;
  border-color: var(--teal) !important;
  color: var(--teal) !important;
}
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled,
div.dataTables_wrapper div.dataTables_paginate .paginate_button.disabled:hover {
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  background: #f8fafc !important;
  cursor: not-allowed;
}

/* ==========================================================================
   Notification Items
   ========================================================================== */
.notif-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.notif-item.unread {
  border-left: 4px solid var(--teal);
  background: #f0fdfa; /* Super subtle warm teal bg */
}
.notif-item:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.notif-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.notif-icon.success { background: #d1fae5; color: #059669; }
.notif-icon.danger  { background: #fee2e2; color: #dc2626; }
.notif-icon.info    { background: var(--blue-light); color: var(--blue); }
.notif-icon.warning { background: #fff9e6; color: #d97706; }

.notif-body strong  { font-size: .925rem; color: #0f172a; font-weight: 700; }
.notif-body p       { font-size: .875rem; color: #475569; margin: 4px 0 0; font-weight: 500; }
.notif-body small   { font-size: .78rem; color: #94a3b8; display: block; margin-top: 4px; font-weight: 500; }

/* ==========================================================================
   Application Detail & Timelines
   ========================================================================== */
.detail-section { margin-bottom: 32px; }
.detail-section h6 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #e2e8f0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.detail-row { display: flex; gap: 12px; margin-bottom: 12px; font-size: .9rem; align-items: baseline; }
.detail-row .dl { color: #64748b; min-width: 180px; font-weight: 600; }
.detail-row .dv { color: #0f172a; font-weight: 700; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content:''; position:absolute; left:7px; top:4px; bottom:4px; width:2.5px; background:#e2e8f0; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2.5px var(--teal);
  transition: all 0.3s ease;
}
.timeline-item:hover::before {
  transform: scale(1.2);
}
.timeline-item.inactive::before { background: #cbd5e1; box-shadow: 0 0 0 2.5px #cbd5e1; }
.timeline-item .ti-date { font-size: .78rem; color: #94a3b8; margin-bottom: 3px; font-weight: 600; }
.timeline-item .ti-body { font-size: .9rem; color: #334155; font-weight: 500; }

/* ==========================================================================
   Mobile Sidebar Toggle
   ========================================================================== */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--blue);
  cursor: pointer;
  padding: 6px;
  transition: transform 0.2s ease;
}
.sidebar-toggle:hover {
  transform: scale(1.08);
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
}

/* ==========================================================================
   Company Subsidiary Badge & Misc
   ========================================================================== */
.company-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-light), #ccfbf1);
  color: var(--teal-dark);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid rgba(0, 163, 161, 0.12);
  box-shadow: 0 2px 4px rgba(0, 163, 161, 0.05);
}

.text-teal  { color: var(--teal)  !important; }
.text-blue  { color: var(--blue)  !important; }
.bg-teal    { background: var(--teal)  !important; color: #fff; }
.bg-blue    { background: var(--blue)  !important; color: #fff; }
.divider    { border: none; border-top: 1.5px solid #e2e8f0; margin: 24px 0; }

.empty-state {
  text-align: center;
  padding: 72px 24px;
  color: #94a3b8;
  background: #fff;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}
.empty-state i   { font-size: 3.8rem; margin-bottom: 18px; opacity: .55; display: block; color: var(--teal); }
.empty-state p   { font-size: 1rem; margin: 0; font-weight: 600; }

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
  .sidebar {
    width: var(--sidebar-w);
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .sidebar-toggle { display: block; }
  .main-content { margin-left: 0; }
  .auth-brand { display: none; }
  .auth-form-wrap { padding: 48px 32px; }
  .auth-card { max-width: 480px; border-radius: 20px; }
  .page-content { padding: 20px; }
}
@media (max-width: 576px) {
  .topbar { padding: 0 20px; height: 64px; }
  .page-content { padding: 16px; }
  .stat-card { padding: 20px; }
  .auth-form-wrap { padding: 36px 20px; }
  .auth-card { border-radius: 16px; }

  /* Detail Row Stacking for mobile */
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 16px;
  }
  .detail-row .dl {
    min-width: 100% !important;
    color: #64748b;
  }
  
  /* Topbar Title Scale */
  .topbar-title {
    font-size: 1.05rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }
  
  /* Notification Cards Mobile Polish */
  .notif-item {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .notif-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
  .notif-body strong {
    font-size: 0.875rem !important;
  }
  .notif-body p {
    font-size: 0.8rem !important;
  }
  
  /* DataTables Mobile Integration */
  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter {
    padding: 10px 14px !important;
    text-align: left !important;
  }
  div.dataTables_wrapper div.dataTables_filter label {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  div.dataTables_wrapper div.dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 6px !important;
  }
  div.dataTables_wrapper div.dataTables_length label {
    justify-content: flex-start !important;
    width: 100% !important;
  }
  div.dataTables_wrapper div.dataTables_length select {
    margin-top: 6px !important;
  }
  
  /* Timeline Adjustments */
  .timeline {
    padding-left: 20px !important;
  }
  .timeline::before {
    left: 5px !important;
  }
  .timeline-item::before {
    left: -19px !important;
    width: 10px !important;
    height: 10px !important;
  }
  .timeline-item .ti-body {
    font-size: 0.85rem !important;
  }
  
  /* Complex form alignment & member rows */
  .member-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px !important;
  }
  .member-row .col-md-5, .member-row .col-md-6, .member-row .col-md-1 {
    width: 100% !important;
  }
  .member-row button {
    width: 100% !important;
    margin-top: 4px;
  }
}

/* ==========================================================================
   Zero Horizontal Scroll & Responsive Mobile Fit Overrides
   ========================================================================== */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

td, th, p, span, div, h1, h2, h3, h4, h5, h6, label, a {
  overflow-wrap: break-word;
  word-break: break-word;
}

.table thead th,
.table tbody td {
  white-space: normal !important;
}

@media (max-width: 768px) {
  .page-content {
    padding: 12px !important;
  }
  
  .card-body {
    padding: 14px !important;
  }

  .table thead th {
    padding: 10px 8px !important;
    font-size: 0.75rem !important;
  }
  
  .table tbody td {
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
  }

  .btn {
    white-space: normal !important;
  }

  .detail-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 14px !important;
  }

  .detail-row .dl {
    min-width: 100% !important;
    width: 100% !important;
    color: #64748b !important;
    font-weight: 700 !important;
  }

  .detail-row .dv {
    width: 100% !important;
    font-size: 0.9rem !important;
    word-break: break-word !important;
  }
}


