/* assets/css/style.css */
/* Professional Water Refilling Station Theme */
:root {
  --primary-blue: #0B3D91;
  --primary-blue-2: #0A2C66;
  --accent-teal: #10B981;
  --font-sans: 'Poppins', sans-serif;
  --header-height: 76px;
}

body::after {
  content: '';
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body .glass-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body .glass-edge::before,
body .glass-edge::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  filter: blur(1px);
}

body .glass-edge::before {
  width: 320px;
  height: 320px;
  top: 5%;
  left: -120px;
}

body .glass-edge::after {
  width: 280px;
  height: 280px;
  bottom: 8%;
  right: -110px;
}

body .bubble-group {
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body .bubble-group span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.24);
  backdrop-filter: blur(4px);
}

body .bubble-group span:nth-child(1) { width: 26px; height: 26px; top: 16%; left: 5%; }
body .bubble-group span:nth-child(2) { width: 18px; height: 18px; top: 22%; left: 9%; opacity: 0.78; }
body .bubble-group span:nth-child(3) { width: 42px; height: 42px; top: 72%; right: 6%; opacity: 0.18; }
body .bubble-group span:nth-child(4) { width: 20px; height: 20px; top: 82%; right: 11%; opacity: 0.32; }
body .bubble-group span:nth-child(5) { width: 14px; height: 14px; top: 88%; left: 18%; opacity: 0.22; }

/* Full-page background image container. */
.bg-image {
  position: fixed;
  inset: 0;
  background-image: url('../images/eden.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -3;
  pointer-events: none;
}

/* Dark overlay improves readability over the background image */
.bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: -2;
}

.login-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 1rem 1.5rem;
  position: relative;
  z-index: 3;
}

.portal-shell {
  width: 100%;
  max-width: 680px;
  padding: 2.5rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.portal-shell.fade-in-up {
  animation: fadeInUp 0.85s ease forwards;
}

.portal-intro {
  max-width: 720px;
}

.portal-eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.portal-heading {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.portal-copy {
  font-size: 1.05rem;
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.portal-options {
  width: 100%;
  display: grid;
  gap: 1.5rem;
}

.portal-action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.portal-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
  opacity: 0.98;
}

.portal-action-blue {
  background: linear-gradient(90deg, rgba(30, 96, 255, 0.95), rgba(35, 141, 255, 0.9));
}

.portal-action-green {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
}

.portal-action-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.4rem;
}

.portal-action-copy h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #FFFFFF;
}

.portal-action-copy p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
  font-size: 0.98rem;
}

.portal-action-button {
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}

.portal-action-blue .portal-action-button,
.portal-action-green .portal-action-button {
  background: rgba(255, 255, 255, 0.18);
}

.portal-footer {
  color: #FFFFFF;
  font-size: 0.95rem;
}

.portal-footer p {
  margin-bottom: 0.35rem;
}

.footer-meta {
  margin-bottom: 0.25rem;
}

.portal-alert {
  width: 100%;
  max-width: 680px;
  border-radius: 18px;
}

/* Force portal text to pure white for maximum clarity */
.portal-shell,
.portal-shell .portal-eyebrow,
.portal-shell .portal-heading,
.portal-shell .portal-copy,
.portal-shell .portal-action-copy h2,
.portal-shell .portal-action-copy p,
.portal-shell .portal-action-button,
.portal-shell .portal-footer,
.portal-shell .footer-meta {
  color: #ffffff !important;
}

.profile-dropdown-menu {
  width: min(360px, 92vw);
}

.profile-avatar-lg {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent), #34d399);
  color: #fff;
  font-size: 1.2rem;
  overflow: hidden;
}

.profile-page-card,
.profile-settings-card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.profile-page-card .card-header,
.profile-settings-card .card-header {
  background: linear-gradient(135deg, rgba(11, 61, 145, 0.06), rgba(16, 185, 129, 0.08));
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.theme-dark .app-header {
  background: linear-gradient(90deg, #0f172a 0%, #111827 100%);
}

.theme-dark .card,
.theme-dark .sidebar-panel {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #f8fafc;
}

.theme-dark .text-muted {
  color: #cbd5e1 !important;
}

.theme-dark .dropdown-menu {
  background: #111827;
  color: #f8fafc;
}

.theme-dark .dropdown-item {
  color: #f8fafc;
}

.theme-dark .dropdown-item:hover {
  background: rgba(255,255,255,0.08);
}


.portal-shell {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.portal-shell .portal-heading,
.portal-shell .portal-copy,
.portal-shell .portal-eyebrow {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45) !important;
}

@media (max-width: 640px) {
  .portal-shell {
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }

  .portal-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .portal-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-icon {
    width: 54px;
    height: 54px;
  }
}

.welcome-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.28);
}

.welcome-wrap {
  margin-top: 48px;
}

.welcome-subtitle {
  color: #ffffff !important;
  font-size: 1.05rem;
}

.btn-auth {
  padding: 18px 20px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(2,6,23,0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-auth:hover { transform: translateY(-3px); }
.btn-staff { background: linear-gradient(90deg,#2E7BE6,#1D4ED8); color: #fff; }
.btn-customer { background: linear-gradient(90deg,#10B981,#059669); color: #fff; }

.security-section { margin-top: 1.25rem; }
.security-section .security-label { color: #ffffff !important; font-weight:700; letter-spacing:0.12em; }
.security-section .divider { display:inline-block; width:120px; height:1px; background: rgba(255,255,255,0.35); }
.security-icon { font-size: 1rem; color: #ffffff; }
.security-description { color: #ffffff !important; opacity: 0.95; margin-top: 0.5rem; }

.feature-strip .feature-item { width: 96px; }
.feature-strip .feature-item i { color: #ffffff !important; opacity: 0.95 !important; }
.feature-strip .feature-label { font-size: 0.9rem; color: #ffffff !important; opacity: 0.95 !important; }
.feature-item.muted { pointer-events: none; opacity: 0.95 !important; }

.page-footer { color: #ffffff !important; opacity: 1; }

/* Stronger overrides specifically for the main selection/login page to ensure legibility */
.login-page-container .security-label,
.login-page-container .security-description,
.login-page-container .security-icon,
.login-page-container .security-section .divider,
.login-page-container .feature-strip .feature-item i,
.login-page-container .feature-strip .feature-label,
.login-page-container .page-footer {
  color: #ffffff !important;
  opacity: 1 !important;
}

.login-page-container .security-section .divider {
  background: rgb(255, 255, 255) !important;
}

.login-card-body {
  padding: 40px;
  overflow-y: auto;
  /* leave room for header/footer inside the card so footer button is reachable */
  max-height: calc(88vh - 40px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-title {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-subtitle {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}

.welcome-subtitle {
  color: #6B7280;
  font-size: 1rem;
}

.index-hero {
  min-height: calc(100vh - 80px);
  color: #ffffff;
}

.hero-panel {
  width: 100%;
  max-width: 620px;
  padding: 3rem 2rem;
  text-align: center;
  background: transparent;
}

.index-hero .welcome-title {
  color: #ffffff;
  font-size: 2.35rem;
}

.index-hero .welcome-subtitle {
  color: #ffffff;
  font-size: 1.05rem;
}

.hero-buttons .btn-auth {
  min-height: 70px;
  border-radius: 999px;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.hero-buttons .btn-auth i {
  font-size: 1.1rem;
  color: #ffffff;
}

.security-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
  color: #ffffff;
}

.security-divider::before,
.security-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.security-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.security-description {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.8;
  max-width: 520px;
}

.hero-feature-strip {
  justify-content: center;
  gap: 12px;
}

.hero-feature-strip .feature-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 110px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  opacity: 1;
  font-size: 0.92rem;
}

.hero-feature-strip .feature-item span {
  color: #ffffff;
}

.hero-feature-strip .feature-icon {
  font-size: 1.35rem;
}

.page-bottom-text {
  margin-top: 3rem;
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-bottom-text p {
  margin-bottom: 0.25rem;
}

.btn-auth {
  height: 58px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-auth:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-staff {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  border: none;
}

.btn-staff:hover {
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.28);
}

.btn-customer {
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  color: #fff;
  border: none;
}

.btn-customer:hover {
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.security-section {
  padding-top: 1rem;
}

.security-icon {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.security-description {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
}

.login-selection-page {
  min-height: 100vh;
}

.login-selection-page .bg-image {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(3, 37, 65, 0.9), rgba(8, 24, 54, 0.92)), url('assets/images/login-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -3;
}

.login-selection-page .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -2;
}

.page-top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 24px; /* left/right padding; logo will have its own left offset */
  background: linear-gradient(90deg, #0B3D91 0%, #0A2C66 100%);
  box-shadow: 0 6px 18px rgba(4, 20, 40, 0.22);
  color: #ffffff;
}
.page-top-header .selection-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  margin-left: 20px; /* 20px left offset as requested */
}
.page-top-header .selection-logo i {
  color: #ffffff !important;
}
.page-top-header .site-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px; /* spacing between logo and text */
  margin-left: 0;
}
.page-top-header .site-title h1 {
  margin: 0;
  font-size: 30px; /* slightly larger per spec */
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.36);
}
.page-top-header .site-title p {
  color: #ffffff;
}

@media (max-width: 768px) {
  .page-top-header {
    height: 72px;
    padding: 0 18px;
  }
  .page-top-header .selection-logo {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .page-top-header .site-title h1 {
    font-size: 18px;
  }
}

.login-card-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 12px;
}

.login-card {
  margin: 0 auto;
}

/* Footer Benefits Section (vertical list, glassmorphism) */
.footer-benefits {
  width: 100%;
  padding: 28px 0;
  display: flex;
  justify-content: center;
  background: transparent;
}
.login-selection-card { position: relative; z-index: 5; }
.login-card { position: relative; z-index: 6; }
.footer-benefits .benefits-wrap {
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column; /* vertical list */
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.footer-benefits { margin-top: 8px; }
.footer-benefits .benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
}
.footer-benefits .benefit-icon {
  min-width: 56px;
  min-height: 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #60A5FA 0%, #1E40AF 100%);
  box-shadow: 0 10px 30px rgba(59,130,246,0.16);
  -webkit-box-shadow: 0 10px 30px rgba(59,130,246,0.16);
}
.footer-benefits .benefit-icon i {
  color: #000; /* black outline icon */
  font-size: 20px;
}
.footer-benefits .benefit-text h6 {
  margin: 0;
  font-size: 16px;
  color: #0f172a; /* black text */
  font-weight: 700;
}
.footer-benefits .benefit-text p {
  margin: 0;
  font-size: 13px;
  color: #0f172a; /* black text */
  opacity: 0.85;
}

@media (max-width: 576px) {
  .footer-benefits .benefits-wrap {
    padding: 12px;
    gap: 12px;
  }
  .footer-benefits .benefit-icon { width:48px; height:48px; }
  .footer-benefits .benefit-text h6 { font-size:15px; }
  .footer-benefits .benefit-text p { font-size:12px; }
  .login-card { max-height: 94vh; }
  .login-card-body { max-height: calc(94vh - 48px); }
}

.login-selection-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem 2.5rem;
}

.login-selection-card {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.left-panel {
  background: linear-gradient(180deg, rgba(25, 118, 210, 0.96), rgba(66, 165, 245, 0.92));
  position: relative;
}

.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 25%);
}

.benefits-panel {
  position: relative;
  z-index: 1;
}

.benefits-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.benefits-title {
  font-size: clamp(2rem, 2.4vw, 2.6rem);
  line-height: 1.05;
}

.benefit-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 1.05rem 1rem;
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.benefit-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.benefit-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  margin: 0;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(66, 165, 245, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 30px rgba(66, 165, 245, 0.18);
  color: #ffffff;
  font-size: 1.3rem;
}

.bg-blue-glow {
  background: rgba(66, 165, 245, 0.22) !important;
  box-shadow: 0 14px 30px rgba(66, 165, 245, 0.18) !important;
}

.right-panel {
  background: rgba(255, 255, 255, 0.06);
}

.login-panel {
  min-height: 100%;
}

.selection-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #1976D2;
  font-size: 2.1rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  margin: 0 auto;
}

.selection-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.12em;
}

.selection-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.18em;
}

.selection-caption {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.glass-panel {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.glass-panel .eyebrow {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1976D2;
  margin-bottom: 0.9rem;
}

.glass-panel h2 {
  color: #102a43;
  font-size: 2rem;
  margin-bottom: 1.4rem;
}

/* Back to main login link styling (override) */
.back-main-link {
  color: #000000 !important;
  font-weight: 600;
}
.back-main-link .back-arrow {
  display: inline-block;
  margin-right: 0.6rem;
  font-size: 1.05rem;
}

/* Popup card wrapper for customer login/register */
.card-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2050;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.48);
}
.card-popup.active {
  display: flex;
}
.card-popup .login-card {
  max-width: 560px;
  width: 100%;
}
.card-popup .text-end a {
  color: #6b7280;
  text-decoration: none;
}

.btn-auth {
  height: 62px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.btn-auth:hover {
  transform: translateY(-3px);
}

.btn-staff {
  background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 30px rgba(25, 118, 210, 0.24);
}

.btn-customer {
  background: linear-gradient(135deg, #2E7D32 0%, #42A5F5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 30px rgba(46, 125, 50, 0.22);
}

.security-section {
  padding-top: 1rem;
}

.security-icon {
  font-size: 0.95rem;
  font-weight: 700;
  color: #102a43;
}

.security-description {
  color: #475569;
  font-size: 0.95rem;
}

.page-footer {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.login-selection-footer {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.25rem;
  position: relative;
  z-index: 1;
}

.login-selection-footer .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1.25rem 1rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-selection-footer .feature-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-selection-footer h6 {
  font-size: 0.95rem;
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.login-selection-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.login-selection-footer .feature-item:hover .footer-icon {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1199px) {
  .left-panel {
    display: none !important;
  }

  .login-selection-card {
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  .login-selection-container {
    padding: 1.25rem 0.75rem 1.5rem;
  }

  .selection-title {
    font-size: 2.5rem;
  }

  .glass-panel {
    padding: 2rem 1.5rem;
  }
}

.form-control,
.input-group-text {
  border-radius: 50px;
}

.input-group-text {
  border-right: 0;
  background: #ffffff;
}

.input-group .form-control {
  height: 50px;
  border-left: 0;
}

.btn-password-toggle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
  min-width: 54px;
}

.form-control:focus,
.btn-password-toggle:focus,
.btn-auth:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.18);
}

.text-muted.small {
  color: #6B7280 !important;
}

/* Force login selection footer text to white despite .text-muted rules */
.login-page-container .card-footer p,
.login-page-container .page-footer,
.login-page-container .login-selection-footer p {
  color: #ffffff !important;
  opacity: 1 !important;
}

.card-footer {
  padding: 18px 40px 28px;
  background: transparent;
}

.card-footer p {
  color: #9CA3AF;
}

@media (max-width: 576px) {
  .login-card-body {
    padding: 28px;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .btn-auth {
    font-size: 16px;
  }
}

.login-card-body {
  position: relative;
  z-index: 1;
}

.text-muted {
  color: #6f7d92 !important;
}

.alert-danger {
  background: rgba(255, 200, 200, 0.18);
  color: #8a1d1a;
  border-color: rgba(255, 175, 175, 0.35);
}

body, .card, .table, .nav, .navbar, .navbar-brand, .navbar-nav .nav-link, .form-label, .form-control, .btn, .card h3, .card h5, h1, h2, h3, h4, h5, h6, p, label, td, th, span, a, button, input, select, textarea {
  color: #1a1a1a !important;
}

/* Ensure selection page footer remains white */
.login-page-container .page-footer.text-muted.small,
.login-page-container .page-footer.text-muted.small p,
.login-page-container .page-footer.text-muted.small a {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Professional Icon Styling */
.nav-link i, .nav-link svg,
.sidebar .nav-link i, .sidebar .nav-link svg,
.navbar-dark .navbar-nav .nav-link i, .navbar-dark .navbar-nav .nav-link svg,
.btn i, .btn svg,
.list-group-item i, .list-group-item svg,
.alert i, .alert svg,
i[class*="bi-"], i.bi, i[class*="fa-"], i.fas, i.far, i.fab, i.icon,
.bi, .fas, .far, .fab, svg.icon, svg.bi, svg.fas, svg.far, svg.fab {
  color: var(--primary-blue) !important;
  fill: var(--primary-blue) !important;
}

.navbar, .bg-primary, .btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-info, .btn-outline-secondary, .alert, .card, .table {
  border-color: rgba(0, 107, 166, 0.15) !important;
}

.navbar-dark .navbar-brand, .navbar-dark .navbar-nav .nav-link, .navbar-dark .navbar-text, .navbar-dark .navbar-toggler-icon {
  color: #fff !important;
  background-color: transparent !important;
}

.navbar-dark .navbar-brand i, .navbar-dark .navbar-brand.text-white i, .navbar-dark .navbar-nav .nav-link i {
  color: #fff !important;
}

.navbar-brand.text-white {
  color: #fff !important;
}

.app-header {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
  box-shadow: 0 18px 40px rgba(7, 37, 78, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 88px;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  overflow: hidden;
}

/* (sidebar transition rules removed - Reports page only change requested) */

.app-header .navbar-brand,
.app-header .navbar-text,
.app-header .nav-link {
  color: #ffffff !important;
}

.app-header .navbar-brand {
  font-size: 1rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.app-header .header-user {
  font-weight: 600;
}

.app-header .navbar-brand {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.app-header + .container-fluid {
  padding-top: 100px;
}

.header-title {
  text-align: center;
}

.header-title strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.header-meta {
  white-space: nowrap;
  font-size: 0.95rem;
}

.header-meta i {
  color: rgba(255,255,255,0.82);
}

@media (max-width: 1199px) {
  .header-title {
    display: none;
  }
}

.content-main {
  padding-top: 0;
}

.content-main .page-title-card {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-width: 280px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(3, 37, 65, 0.06) !important;
  margin-bottom: 0.75rem !important;
}

.content-main .page-title {
  color: #111827 !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.content-main .page-subtitle {
  color: #6b7280 !important;
  font-size: 0.95rem !important;
  font-weight: 400;
  margin-bottom: 0;
}

/* Sidebar must remain visible at all times for the admin layout. */
.sidebar,
body.sidebar-collapsed .sidebar,
body.sidebar-hidden .sidebar {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 25% !important;
  max-width: 25% !important;
  min-width: 25% !important;
  transform: none !important;
  position: relative !important;
  transition: none !important;
}

.content-main,
body.sidebar-collapsed .content-main,
body.sidebar-hidden .content-main {
  width: 75% !important;
  max-width: 75% !important;
  flex: 0 0 75% !important;
}

/* Ensure modals and dropdowns appear above fixed headers/toolbars */
.modal-backdrop {
  z-index: 12000 !important;
}
.modal {
  z-index: 12001 !important;
}
.modal .dropdown-menu {
  z-index: 12002 !important;
}
.dropdown-menu {
  z-index: 12002 !important;
}

/* Ensure modal content is the active click layer while the backdrop remains behind it. */
.modal-backdrop {
  pointer-events: none !important;
}
.modal, .modal-dialog, .modal-content {
  pointer-events: auto !important;
}
/* Give the Book Order modal a slightly higher z-index to ensure it's above generic backdrops */
#bookNewOrderModal {
  z-index: 12501 !important;
}
/* Ensure any global dim overlay does not intercept clicks while modal is active */
.overlay {
  pointer-events: none !important;
}

.app-header .navbar-brand-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.app-header .navbar-brand-subtitle {
  font-size: 0.75rem;
  opacity: 0.82;
}

.header-clock {
  min-width: 132px;
  text-align: right;
}

.header-clock #navCurrentDate {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
}

.header-clock #navCurrentTime {
  font-size: 1.05rem;
  font-weight: 600;
}

.navbar-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: #1976D2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.app-header .navbar-brand-title {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.app-header .navbar-brand-subtitle {
  font-size: 0.85rem;
  color: #ffffff !important;
  font-weight: 500;
  opacity: 0.92;
}

.sidebar {
  min-height: auto;
  height: auto;
  align-self: flex-start !important;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.row.gx-0 > .sidebar {
  align-self: flex-start !important;
}

.sidebar .sidebar-panel {
  min-height: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
  background: transparent;
}

.sidebar .sidebar-menu {
  flex: 0 0 auto !important;
}

.staff-sidebar {
  height: 100vh;
  min-height: 100vh;
  align-self: stretch !important;
  overflow: hidden;
}

.staff-sidebar .sidebar-panel {
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto !important;
  overflow: hidden;
}

.staff-sidebar .sidebar-menu {
  flex: 1 1 auto !important;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.staff-sidebar .sidebar-bottom {
  flex: 0 0 auto;
  padding-top: 0.5rem;
}

.sidebar .nav-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 1rem 1.1rem !important;
  color: #334155 !important;
  background: #ffffff !important;
  border-radius: 18px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar .nav-link i,
.sidebar .nav-link svg {
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1976D2 !important;
}

.sidebar .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 5px;
  border-radius: 0 10px 10px 0;
  background: transparent;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background: #ffffff !important;
  transform: translateY(-2px);
  border-color: #1976D2 !important;
  box-shadow: 0 16px 30px rgba(25, 118, 210, 0.12);
}

.sidebar .nav-link:hover::before {
  background: rgba(25, 118, 210, 0.18);
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(25, 118, 210, 0.18);
}

.sidebar .nav-link.active i,
.sidebar .nav-link.active svg {
  color: #ffffff !important;
}

.sidebar .nav-link.active::before {
  background: linear-gradient(180deg, #1976D2 0%, #42A5F5 100%) !important;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar .logout-link {
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: #10B981;
}

.badge-processing {
  background: rgba(14, 165, 233, 0.16);
  color: #0EA5E9;
}

.badge-cancelled {
  background: rgba(248, 113, 22, 0.14);
  color: #F97316;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.15);
  color: #b45309;
}

.dashboard-card .card-body {
  min-height: auto;
}

.card-status {
  border-radius: 20px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.table-dashboard tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.quick-actions .btn-action {
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.quick-actions .btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

@media (max-width: 1199px) {
  .sidebar {
    min-height: auto;
  }
}

@media (max-width: 991px) {
  .header-clock {
    display: none;
  }
}

.header-time {
  text-align: right;
}

.header-time .small {
  color: rgba(255, 255, 255, 0.75);
}

.header-time #navCurrentDateTime {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.dashboard-card {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(14, 64, 110, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid rgba(0, 107, 166, 0.14);
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 170px;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(14, 64, 110, 0.14);
}

.row.g-3 > [class*="col-"],
.row.g-4 > [class*="col-"],
.row.g-5 > [class*="col-"] {
  display: flex;
}

.row.g-3 > [class*="col-"] > .card,
.row.g-4 > [class*="col-"] > .card,
.row.g-5 > [class*="col-"] > .card {
  width: 100%;
  height: 100%;
}

.feature-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  justify-items: center;
}

.feature-grid > .card,
.module-grid > .card,
.feature-grid > .dashboard-card,
.module-grid > .dashboard-card {
  width: 100%;
  max-width: 280px;
  min-height: 180px;
}

@media (max-width: 767px) {
  .feature-grid,
  .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .feature-grid > .card,
  .module-grid > .card,
  .feature-grid > .dashboard-card,
  .module-grid > .dashboard-card {
    max-width: none;
    min-height: 160px;
  }
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 107, 166, 0.08);
  color: #006BA6;
  font-size: 1.35rem;
}

.status-card {
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.status-card:hover {
  transform: translateY(-2px);
}

.badge-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45em 0.75em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-pending {
  background: rgba(59, 130, 246, 0.12);
  color: #1D4ED8;
}

.badge-delivered {
  background: rgba(14, 165, 233, 0.14);
  color: #0EA5E9;
}

.table-dashboard {
  min-width: 100%;
}

.table-dashboard th,
.table-dashboard td {
  border-top: none;
  padding: 0.95rem 1rem;
}

.table-dashboard thead th {
  color: #1f3f5b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(0, 107, 166, 0.12);
}

.table-dashboard tbody tr {
  border-bottom: 1px solid rgba(15, 38, 63, 0.05);
}

.quick-actions .btn {
  min-height: 58px;
  border-radius: 14px;
  font-weight: 600;
}

.dashboard-chart-card,
.dashboard-tall-card,
.dashboard-orders-card {
  display: flex;
  flex-direction: column;
}

.dashboard-chart-card .card-body,
.dashboard-tall-card .card-body,
.dashboard-orders-card .card-body {
  flex: 1 1 auto;
}

.dashboard-chart-card {
  min-height: 340px;
  max-height: 420px;
}

.chart-wrapper {
  flex: 1 1 auto;
  min-height: 300px;
  max-height: 380px;
}

.dashboard-tall-card .table-responsive,
.dashboard-orders-card .table-responsive {
  flex: 1 1 auto;
  min-height: 220px;
}

.card-status {
  font-size: 1.05rem;
  font-weight: 700;
}

.card-title + p {
  margin-bottom: 1.25rem;
}

.badge-status.badge-paid,
.badge-status.badge-pending,
.badge-status.badge-delivered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.content-main {
  padding-top: 0;
}

.login-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 50px rgba(10, 50, 80, 0.08);
}

.login-card-header {
  display: none;
}

.page-header {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(90deg, #006BA6 0%, #00A8B5 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-header .login-logo {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.page-header h4,
.page-header p {
  color: #ffffff;
}

.page-header p {
  opacity: 0.75;
}

.login-logo {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-card .card-body {
  padding: 2rem 2rem 2.25rem;
}

.login-card-header h4,
.login-card-header p {
  color: #ffffff;
}

.login-card .badge {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sidebar {
  background: linear-gradient(180deg, #071423 0%, #10253a 48%, #08131e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 40px rgba(2, 8, 23, 0.28);
  padding-top: 1.5rem;
  min-height: auto;
  height: auto;
  align-self: flex-start;
}

.sidebar-panel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-height: auto;
  height: auto;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.92rem;
  background: transparent !important;
  box-shadow: none !important;
}

.feature-item span {
  font-size: 1rem;
  color: #ffffff;
}

.feature-panel h3,
.feature-panel h4,
.feature-panel h5,
.feature-panel p {
  color: #093450;
}


.card {
  border: 1px solid rgba(0, 107, 166, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 107, 166, 0.08);
  transition: all 0.3s ease;
}

.card p {
  margin: 0;
}

/* Professional water-themed hero/header */
.site-hero {
  background: var(--water-gradient);
  color: #fff;
  padding: 1.75rem 0;
  box-shadow: 0 4px 15px rgba(0, 107, 166, 0.15);
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.site-hero .hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.site-hero .brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.3px;
}

.site-hero .brand-title i {
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.site-hero .hero-actions a {
  transition: all 0.3s ease;
  border-color: rgba(255, 255, 255, 0.5);
}

.site-hero .hero-actions a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* Enhanced wave separator */
.wave-separator {
  display: block;
  width: 100%;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 64px;
  max-height: 120px;
  filter: drop-shadow(0 -2px 4px rgba(0, 107, 166, 0.08));
}

/* Ensure main page content and footer sit above the decorative wave */
.container-fluid, .row, main, .sidebar, .card {
  position: relative;
  z-index: 2;
}

.site-footer {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Ensure main content has spacing from the footer */
.content-main {
  padding-bottom: 40px;
}

/* Professional nav link styling */
.nav-link {
  color: #1a1a1a;
  font-weight: 500;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(0, 107, 166, 0.08);
  color: var(--primary-blue);
  transform: translateX(4px);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(0, 107, 166, 0.16), rgba(0, 168, 181, 0.14));
  color: var(--primary-blue);
  border-left: 3px solid var(--accent-teal);
  padding-left: calc(1rem - 3px);
  font-weight: 600;
}

.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 999px;
  margin-right: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0f3d8c;
}

.nav-tabs .nav-link:hover {
  background: rgba(255, 255, 255, 1);
  color: #0b3d91;
}

.nav-tabs .nav-link.active {
  background: #ffffff;
  color: #0b3d91;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.sidebar .nav-link {
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Prevent tall floating panels */
.offcanvas, .dropdown-menu, .modal, .modal-dialog, .card.offcanvas-panel, .card.floating-panel {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Generic safeguard for positioned cards */
.card[style*="position: fixed"], .card[style*="position:absolute"] {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Login page premium override styles */
.login-page {
  font-family: 'Poppins', sans-serif;
}

body.login-page .login-card,
body.login-page .login-card * {
  color: #111827 !important;
}



.login-card-wrapper {
  width: 100%;
  max-width: 520px;
}

.login-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.login-card-body {
  padding: 45px;
}

.logo-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  font-size: 1.9rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.brand-title {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-subtitle {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
}

.welcome-subtitle {
  color: #6B7280;
  font-size: 1rem;
}

.btn-auth {
  height: 58px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-auth:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.portal-option {
  background: rgba(255, 255, 255, 0.84);
}

.divider {
  border-color: rgba(15, 23, 42, 0.08);
}

.portal-option h5 {
  color: #111827;
  font-weight: 700;
}

.portal-option p {
  color: #4B5563;
}

.btn-staff:hover {
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.btn-customer {
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
  color: #fff;
  border: none;
}

.btn-customer:hover {
  box-shadow: 0 10px 25px rgba(22, 197, 81, 0.35);
}

.security-section {
  padding-top: 1rem;
}

.security-icon {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.security-description {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
}

.login-page .brand-title,
.login-page .welcome-title,
.login-page .welcome-subtitle,
.login-page .security-icon,
.login-page .security-description,
.login-page .page-footer,
.login-page .feature-strip .feature-item i,
.login-page .feature-strip .feature-label {
  color: #ffffff !important;
}

.login-page-container .feature-strip {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2.25rem;
}

.login-page-container .feature-strip .feature-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.92rem;
  width: auto !important;
  opacity: 0.6;
  pointer-events: none;
}

.login-page-container .feature-strip .feature-item i,
.login-page-container .feature-strip .feature-label {
  opacity: 0.55 !important;
}

.login-page-container .feature-strip .feature-item.muted {
  opacity: 0.55 !important;
}

.hero-feature-strip .feature-item,
.hero-feature-strip .feature-item span {
  color: #ffffff !important;
}

/* New feature icon styling */
.feature-item .feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent !important;
  color: #ffffff;
  font-size: 20px;
}

.feature-item .feature-label {
  color: #ffffff;
  font-weight: 600;
}

.index-hero .welcome-title,
.index-hero .welcome-subtitle,
.index-hero .security-label,
.index-hero .security-description,
.index-hero .feature-item,
.index-hero .feature-item span,
.index-hero .page-bottom-text p,
.index-hero .hero-buttons .btn-auth,
.index-hero .hero-buttons .btn-auth i {
  color: #ffffff !important;
}

.index-hero .security-divider {
  color: #ffffff !important;
}

.index-hero .hero-feature-strip .feature-item {
  background: rgba(255, 255, 255, 0.10) !important;
  opacity: 1 !important;
}

.index-hero .security-divider::before,
.index-hero .security-divider::after {
  background: rgba(255, 255, 255, 0.28) !important;
}

.index-hero .welcome-title,
.index-hero .security-description,
.index-hero .page-bottom-text p,
.index-hero .security-label {
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.card-footer {
  padding: 18px 45px 28px;
  background: transparent;
}

.card-footer p {
  color: #9CA3AF;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.staff-orders-table-container,
.staff-transactions-table-container {
  width: 100%;
  overflow-x: hidden;
}

.staff-orders-table,
.staff-transactions-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.staff-orders-col-customer { width: 10%; }
.staff-orders-col-contact { width: 9%; }
.staff-orders-col-address { width: 10%; }
.staff-orders-col-branch { width: 8%; }
.staff-orders-col-quantity { width: 7%; }
.staff-orders-col-total { width: 8%; }
.staff-orders-col-payment { width: 9%; }
.staff-orders-col-type { width: 7%; }
.staff-orders-col-status { width: 8%; }
.staff-orders-col-payment-status { width: 9%; }
.staff-orders-col-date { width: 8%; }
.staff-orders-col-actions { width: 7%; }

.staff-transactions-col-reference { width: 7%; }
.staff-transactions-col-customer { width: 9%; }
.staff-transactions-col-branch { width: 7%; }
.staff-transactions-col-address { width: 9%; }
.staff-transactions-col-contact { width: 8%; }
.staff-transactions-col-type { width: 6%; }
.staff-transactions-col-quantity { width: 6%; }
.staff-transactions-col-total { width: 8%; }
.staff-transactions-col-payment { width: 7%; }
.staff-transactions-col-status { width: 8%; }
.staff-transactions-col-payment-status { width: 8%; }
.staff-transactions-col-date { width: 8%; }
.staff-transactions-col-action { width: 9%; }

.staff-orders-table th,
.staff-orders-table td,
.staff-transactions-table th,
.staff-transactions-table td {
  padding: 8px 6px;
  vertical-align: middle;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
}

.staff-orders-table thead th,
.staff-transactions-table thead th {
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.staff-orders-table tbody td,
.staff-transactions-table tbody td {
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.staff-orders-table tbody tr:nth-child(even) td,
.staff-transactions-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

.staff-orders-table .badge,
.staff-transactions-table .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.25rem 0.35rem;
  font-size: 10px;
  white-space: normal;
  text-align: center;
}

.staff-order-badges,
.staff-order-actions,
.staff-transactions-table td:nth-child(10) > span,
.staff-transactions-table td:nth-child(11) > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}

.staff-order-actions {
  width: 100%;
}

.staff-transactions-table td:last-child form,
.staff-transactions-table td:last-child button {
  max-width: 100%;
}

.staff-transactions-table td:last-child button {
  padding: 5px 4px;
  font-size: 11px;
  white-space: normal;
}

.transactions-table-container {
  width: 100%;
  overflow-x: visible;
}

.transactions-table {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.transactions-col-reference { width: 12%; }
.transactions-col-customer { width: 15%; }
.transactions-col-branch { width: 13%; }
.transactions-col-quantity { width: 8%; }
.transactions-col-total { width: 11%; }
.transactions-col-payment { width: 11%; }
.transactions-col-delivery-status { width: 10%; }
.transactions-col-payment-status { width: 11%; }
.transactions-col-date { width: 9%; }

.transactions-table th,
.transactions-table td {
  padding: 8px 10px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.transactions-table th:last-child,
.transactions-table td:last-child {
  border-right: 0;
}

.transactions-table thead th {
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.transactions-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}

.transactions-table tbody td {
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  overflow: hidden;
}

.transactions-table th:nth-child(1),
.transactions-table td:nth-child(1),
.transactions-table th:nth-child(2),
.transactions-table td:nth-child(2),
.transactions-table th:nth-child(3),
.transactions-table td:nth-child(3) {
  text-align: left;
}

.transactions-table th:nth-child(5),
.transactions-table td:nth-child(5) {
  white-space: nowrap;
}

.transactions-table .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.transactions-status-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}

.owner-transactions-table {
  width: 100%;
  min-width: 0;
  border: 1px solid #e0e0e0;
  border-collapse: collapse;
  table-layout: fixed;
}

.owner-transactions-table th,
.owner-transactions-table td {
  padding: 12px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.owner-transactions-table th:last-child,
.owner-transactions-table td:last-child {
  border-right: 0;
}

.owner-transactions-table thead th {
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}

.owner-transactions-table tbody tr:last-child td {
  border-bottom: 0;
}

.owner-transactions-table tbody td {
  height: 56px;
}

#reportResultsContainer .report-results-meta {
  margin-bottom: 1.25rem;
}

#reportResultsContainer .report-results-meta h5,
#reportResultsContainer .report-results-meta p {
  text-align: center;
}

.branch-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.branch-inventory-card {
  min-height: 220px;
  aspect-ratio: 1 / 0.92;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.branch-inventory-name {
  max-width: 100%;
  margin: 0 0 1.25rem;
  color: #102a43;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.branch-inventory-stock {
  color: #1f2937;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.branch-inventory-status {
  margin-top: 1rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .branch-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .branch-inventory-grid {
    grid-template-columns: 1fr;
  }

  .branch-inventory-card {
    min-height: 200px;
    aspect-ratio: auto;
  }
}

.customer-registration-page .registration-card {
  width: min(780px, calc(100% - 2rem));
  height: auto;
}

.customer-registration-page .registration-shell {
  box-sizing: border-box;
  min-height: calc(100vh - 88px);
  padding: 2rem 1rem;
}

.customer-registration-page .registration-card .card-body {
  padding: 1.5rem 2rem 1.75rem;
}

.customer-registration-page #customerRegisterForm {
  width: min(700px, 100%);
  margin-inline: auto;
}

.customer-registration-page .registration-card .row.g-4 {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.9rem;
}

.customer-registration-page .registration-field .input-group-text,
.customer-registration-page .registration-field .form-control,
.customer-registration-page .registration-field .password-toggle {
  height: 46px;
}

.customer-registration-page .register-account-button {
  min-height: 48px;
}

.customer-registration-page .registration-card .card-body > .text-center.mb-4 {
  margin-bottom: 1.35rem !important;
}

.customer-registration-page .registration-card form > .mt-4 {
  margin-top: 1.25rem !important;
}

.customer-registration-page .registration-card form + .mt-4 {
  margin-top: 0.9rem !important;
}

@media (max-width: 767.98px) {
  .customer-registration-page .registration-shell {
    min-height: calc(100vh - 88px);
    padding: 6.5rem 1rem 2rem;
  }

  .customer-registration-page .registration-card .card-body {
    padding: 1.5rem 1.25rem;
  }

  .customer-registration-page #customerRegisterForm {
    width: 100%;
  }

  .customer-registration-page .registration-card .row.g-4 > .registration-field {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .login-card-body {
    padding: 32px;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .btn-auth {
    font-size: 16px;
  }

  .feature-strip {
    gap: 0.75rem;
  }
}

/* Professional enterprise footer */
.site-footer {
  background: linear-gradient(180deg, #0F3D8C 0%, #0A2558 100%);
  color: #ffffff;
  position: relative;
  z-index: 1;
  margin-top: 30px;
  border-radius: 20px 20px 0 0;
  padding: 30px 0 20px;
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.16);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer .footer-widget {
  padding: 0 15px;
}

.site-footer .footer-widget h5 {
  margin-bottom: 1rem;
}

.site-footer .footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-widget ul li {
  margin-bottom: 0.75rem;
}

.site-footer .footer-widget ul li a {
  color: rgba(255,255,255,0.9);
  transition: color 0.3s ease;
}

.site-footer .footer-widget ul li a:hover {
  color: #dbeafe;
}

.site-footer .footer-social {
    margin-top: 1.1rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 0.95rem 0.85rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    max-width: fit-content;
  }

  .site-footer .footer-social a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .site-footer .footer-social a:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
  }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 25px;
  padding-top: 18px;
  text-align: center;
}

.site-footer .footer-bottom p {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #f0fcff;
  text-decoration: underline;
}

.site-footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer p, .site-footer li {
  color: #ffffff;
  font-size: 0.95rem;
}

.site-footer .text-light-emphasis {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.7rem;
}

.site-footer,
.site-footer * {
  color: #ffffff !important;
}

.site-footer a {
  color: #ffffff !important;
}

.footer-text-black,
.footer-text-black * {
  color: #000000 !important;
}

.site-footer .border-top {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Make navbar slightly transparent to blend with hero */
.navbar-transparent{background:transparent !important;}
.navbar-transparent .nav-link, .navbar-transparent .navbar-brand{color:#fff !important}

/* Enhanced Station Map Styles */
#map {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 107, 166, 0.15);
  border: 1px solid rgba(0, 107, 166, 0.1);
}

.station-item {
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
  border-radius: 6px;
  border-left: 4px solid transparent;
}

.station-item:hover {
  background: linear-gradient(90deg, rgba(0, 107, 166, 0.04), rgba(0, 168, 181, 0.04));
  border-left-color: var(--accent-teal);
  box-shadow: 0 4px 12px rgba(0, 107, 166, 0.12);
  transform: translateY(-2px);
}

.station-popup {
  font-size: 0.9rem;
  min-width: 250px;
  border-radius: 6px;
}

.station-popup strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--primary-blue);
}

.station-popup .badge {
  margin-top: 0.3rem;
  background: var(--accent-teal) !important;
}

.station-popup a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.station-popup a:hover {
  color: var(--dark-navy);
  text-decoration: underline;
}

#stationList {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-teal) transparent;
}

#stationList::-webkit-scrollbar {
  width: 6px;
}

#stationList::-webkit-scrollbar-track {
  background: transparent;
}

#stationList::-webkit-scrollbar-thumb {
  background: var(--accent-teal);
  border-radius: 3px;
}

#stationList::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Enhanced responsive design */
@media(max-width:767px) {
  .sidebar { display: none; }
  
  .col-md-8, .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .dashboard-chart-card .chart-wrapper,
  .dashboard-tall-card .table-responsive,
  .dashboard-orders-card .table-responsive {
    min-height: 240px;
  }

  .site-hero .hero-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .site-hero .brand-title {
    font-size: 1.1rem;
  }

  .hero-actions {
    width: 100%;
    text-align: center;
  }

  /* Book Order Form Styles */
  #bookNewOrderModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
  }

  #bookNewOrderModal h6.text-primary {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
  }

  .form-check-label small {
    display: block;
    margin-top: 0.2rem;
  }

  #gcashPaymentInfo {
    border-left: 4px solid var(--primary-blue);
    background: rgba(0, 107, 166, 0.04);
    padding: 1rem;
    border-radius: 6px;
  }

  .order-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .order-item .col-md-2 input {
    text-align: center;
  }

  #map {
    height: 400px !important;
  }
}

@media(max-width:1199px) {
  .wave-separator svg { height: 48px; }
}

@media(min-width:1200px) {
  .wave-separator svg { height: 74px; }
}

/* Unified fixed header for login pages */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 88px;
  background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 55%, #10B981 100%);
  display: flex;
  align-items: center;
  z-index: 1050;
  box-shadow: 0 18px 40px rgba(7, 37, 78, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header .site-header-inner,
.app-header .container-fluid {
  display: flex;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: #1976D2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.app-header .navbar-brand-title,
.header-brand .navbar-brand-title {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.app-header .navbar-brand-subtitle,
.header-brand .navbar-brand-subtitle {
  font-size: 0.85rem;
  color: #ffffff !important;
  font-weight: 500;
  opacity: 0.92;
}

@media (max-width: 1199px) {
  .header-title {
    display: none;
  }
}

.app-header + .container-fluid {
  padding-top: 100px;
}

@media (max-width: 768px) {
  .login-page-container {
    padding: 5.5rem 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .login-page-container {
    padding: 5.5rem 0.75rem 1.5rem;
    min-height: calc(100vh - 20px);
  }
}

/* =========================================================
   EDEN WRS - GLOBAL MOBILE RESPONSIVE FIX
   CUSTOMER + STAFF + ADMIN
   ========================================================= */



/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

  .app-header .navbar-brand-title {
    font-size: 16px !important;
  }

  .navbar-brand-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
  }

  .content-main {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .card-body {
    padding: 12px !important;
  }

  .sidebar .nav-link {
    padding: 7px 9px !important;
    font-size: 12px !important;
  }
}
/* =========================================================
   FINAL MOBILE FIX - EDEN WATER REFILLING STATION
   Fix sidebar/content overlap on phones
   ========================================================= */



/* SMALL PHONES */
@media (max-width: 380px) {

  .content-main {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .content-main .card-body {
    padding: 12px !important;
  }

  .dashboard-card .card-body {
    padding: 12px !important;
  }

}
/* =========================================================
   MOBILE TABLE FIX - EDEN WATER REFILLING STATION
   Prevent table letters from stacking vertically
   ========================================================= */

/* =========================================================
   EDEN WRS - CONSOLIDATED FINAL MOBILE RESPONSIVE FIX
   Customer + Staff + Admin
   ========================================================= */
@media (max-width: 767px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  *, *::before, *::after { box-sizing: border-box; }

  body { margin: 0 !important; padding: 0 !important; }

  .container-fluid, .container, .row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* HEADER */
  .app-header {
    height: 70px !important;
    min-height: 70px !important;
    padding: 0 10px !important;
  }

  .app-header > .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 6px !important;
  }

  .header-brand {
    min-width: 0 !important;
    max-width: 70% !important;
    gap: 8px !important;
  }

  .navbar-brand-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    font-size: 17px !important;
  }

  .app-header .navbar-brand-title {
    font-size: 18px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .app-header .navbar-brand-subtitle,
  .header-meta { display: none !important; }

  .header-user { gap: 5px !important; min-width: 0 !important; }
  .user-display { min-width: 34px !important; }
  .profile-icon { width: 34px !important; height: 34px !important; }

  .app-header + .container-fluid { padding-top: 78px !important; }

  /* SIDEBAR */
  .sidebar,
  body.sidebar-collapsed .sidebar,
  body.sidebar-hidden .sidebar,
  .staff-sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    position: relative !important;
    transform: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .sidebar .sidebar-panel,
  .staff-sidebar .sidebar-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 6px 4px !important;
    overflow: visible !important;
    border-radius: 12px !important;
  }

  .sidebar .sidebar-menu,
  .staff-sidebar .sidebar-menu,
  .staff-sidebar .sidebar-bottom {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 2px !important;
  }

  .sidebar .sidebar-menu > ul,
  .staff-sidebar .sidebar-menu > ul,
  .staff-sidebar .sidebar-bottom > ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar .nav-item { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; }

  .sidebar .nav-link {
    width: auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    transform: none !important;
    box-shadow: none !important;
    gap: 5px !important;
  }

  .sidebar .nav-link i,
  .sidebar .nav-link svg { width: auto !important; height: auto !important; font-size: 13px !important; }
  .sidebar .sidebar-bottom { margin-top: 3px !important; }

  .staff-sidebar[style] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* CONTENT */
  .content-main,
  body.sidebar-collapsed .content-main,
  body.sidebar-hidden .content-main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 12px 10px 30px !important;
  }

  .content-main .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
  }

  .content-main .d-flex { flex-wrap: wrap !important; }

  .content-main .page-title-card,
  .content-main .card,
  .content-main .dashboard-card,
  .content-main .profile-page-card,
  .content-main .profile-settings-card,
  .content-main .glass-panel,
  .content-main .login-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .content-main .page-title-card { margin-left: 0 !important; margin-right: 0 !important; }
  .content-main .page-title { font-size: 1.25rem !important; line-height: 1.25 !important; }

  .content-main h1, .content-main h2, .content-main h3,
  .content-main h4, .content-main h5, .content-main h6,
  .content-main p, .content-main span, .content-main label {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  /* CARDS + FORMS */
  .card-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .content-main .form-control,
  .content-main .form-select,
  .content-main .input-group,
  .content-main .btn,
  .form-control, .form-select {
    max-width: 100% !important;
  }

  .form-control, .form-select { width: 100% !important; min-width: 0 !important; }
  .input-group { width: 100% !important; max-width: 100% !important; flex-wrap: nowrap !important; }
  textarea.form-control { min-height: 100px !important; }

  /* DASHBOARDS */
  .feature-grid, .module-grid, .status-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .feature-grid > *, .module-grid > *, .status-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .dashboard-card .card-body { min-height: 0 !important; padding: 16px !important; }

  .admin-summary-grid { width: 100% !important; max-width: 100% !important; }
  .admin-summary-grid > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    justify-content: stretch !important;
  }
  .admin-summary-card { width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 125px !important; }

  /* CHARTS */
  .dashboard-chart-card { width: 100% !important; max-width: 100% !important; min-height: 0 !important; max-height: none !important; }
  .chart-wrapper { width: 100% !important; max-width: 100% !important; min-height: 220px !important; max-height: 320px !important; overflow: hidden !important; }

  /* TABLES: horizontal scrolling, never letter-by-letter stacking */
  .table-responsive,
  .transactions-table-container,
  .staff-orders-table-container,
  .staff-transactions-table-container,
  .owner-transactions-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .table-responsive > table,
  .transactions-table-container > table,
  .staff-orders-table-container > table,
  .staff-transactions-table-container > table,
  .owner-transactions-table-container > table,
  .table-responsive .datatable,
  .transactions-table {
    width: max-content !important;
    min-width: 750px !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  .transactions-table { min-width: 1000px !important; }

  table th, table td {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  .transactions-table th, .transactions-table td { min-width: 100px !important; }
  .transactions-table th:nth-child(1), .transactions-table td:nth-child(1) { min-width: 160px !important; }
  .transactions-table th:nth-child(2), .transactions-table td:nth-child(2) { min-width: 180px !important; }
  .transactions-table th:nth-child(3), .transactions-table td:nth-child(3) { min-width: 150px !important; }
  .transactions-table th:nth-child(4), .transactions-table td:nth-child(4) { min-width: 110px !important; }
  .transactions-table th:nth-child(5), .transactions-table td:nth-child(5) { min-width: 130px !important; }
  .transactions-table th:nth-child(6), .transactions-table td:nth-child(6) { min-width: 160px !important; }
  .transactions-table th:nth-child(7), .transactions-table td:nth-child(7) { min-width: 150px !important; }
  .transactions-table th:nth-child(8), .transactions-table td:nth-child(8) { min-width: 140px !important; }
  .transactions-table th:nth-child(9), .transactions-table td:nth-child(9) { min-width: 160px !important; }

  .table-responsive .datatable th,
  .table-responsive .datatable td { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; }
  .table-responsive .datatable th:nth-child(1), .table-responsive .datatable td:nth-child(1) { min-width: 160px !important; }
  .table-responsive .datatable th:nth-child(2), .table-responsive .datatable td:nth-child(2) { min-width: 140px !important; }
  .table-responsive .datatable th:nth-child(3), .table-responsive .datatable td:nth-child(3) { min-width: 170px !important; }
  .table-responsive .datatable th:nth-child(4), .table-responsive .datatable td:nth-child(4) { min-width: 110px !important; }
  .table-responsive .datatable th:nth-child(5), .table-responsive .datatable td:nth-child(5) { min-width: 120px !important; }
  .table-responsive .datatable th:nth-child(6), .table-responsive .datatable td:nth-child(6) { min-width: 300px !important; }

  #branchesTable {
    width: max-content !important;
    min-width: 1200px !important;
    max-width: none !important;
    table-layout: auto !important;
  }
  #branchesTable th, #branchesTable td { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; min-width: 100px !important; }
  #branchesTable th:nth-child(1), #branchesTable td:nth-child(1) { min-width: 160px !important; }
  #branchesTable th:nth-child(2), #branchesTable td:nth-child(2) { min-width: 220px !important; }
  #branchesTable th:nth-child(3), #branchesTable td:nth-child(3) { min-width: 150px !important; }
  #branchesTable th:nth-child(4), #branchesTable td:nth-child(4) { min-width: 150px !important; }
  #branchesTable th:nth-child(5), #branchesTable td:nth-child(5) { min-width: 140px !important; }
  #branchesTable th:nth-child(6), #branchesTable td:nth-child(6) { min-width: 180px !important; }
  #branchesTable th:nth-child(7), #branchesTable td:nth-child(7) { min-width: 100px !important; }
  #branchesTable th:nth-child(8), #branchesTable td:nth-child(8) { min-width: 170px !important; }
  #branchesTable th:nth-child(9), #branchesTable td:nth-child(9) { min-width: 150px !important; }
  #branchesTable th:nth-child(10), #branchesTable td:nth-child(10) { min-width: 100px !important; }

  /* BUTTONS */
  .quick-actions, .report-actions { width: 100% !important; max-width: 100% !important; }
  .quick-actions .btn, .quick-actions .btn-action { width: 100% !important; max-width: 100% !important; }
  .report-actions, .d-flex.justify-content-between, .d-flex.justify-content-end { flex-wrap: wrap !important; gap: 8px !important; }

  /* MODALS */
  .modal-dialog {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 12px auto !important;
  }
  .modal-content { width: 100% !important; max-width: 100% !important; min-width: 0 !important; overflow: hidden !important; }
  .modal-body { max-height: calc(100vh - 170px) !important; overflow-y: auto !important; overflow-x: hidden !important; }

  /* LOGIN / PORTAL */
  .login-card-wrapper, .portal-shell, .glass-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .login-card-body { padding: 24px 18px !important; max-height: none !important; }
  .portal-action-card {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    text-align: center !important;
    border-radius: 22px !important;
    padding: 18px !important;
  }
  .portal-action-icon { margin: 0 auto !important; }
  .portal-action-button { width: 100% !important; max-width: 100% !important; }

  /* CUSTOMER REGISTRATION */
  .customer-registration-page .registration-card { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .customer-registration-page .registration-shell { width: 100% !important; max-width: 100% !important; padding: 5.5rem 10px 20px !important; }
  .customer-registration-page #customerRegisterForm { width: 100% !important; }

  /* FOOTER */
  .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 22px 10px 16px !important;
  }
  .site-footer .footer-widget { padding: 0 8px !important; }
}

@media (max-width: 380px) {
  .app-header .navbar-brand-title { font-size: 16px !important; }
  .navbar-brand-icon { width: 38px !important; height: 38px !important; min-width: 38px !important; flex-basis: 38px !important; }
  .content-main { padding-left: 8px !important; padding-right: 8px !important; }
  .card-body { padding: 12px !important; }
  .dashboard-card .card-body { padding: 12px !important; }
  .sidebar .nav-link { padding: 7px 9px !important; font-size: 12px !important; }
}
