/* Minimal UI polish + theme */
:root {
  --hp-primary: #31a0d4; /* accent */
  --hp-dark: #2B2C79;    /* brand dark */
  /* Bootstrap v5 CSS variable overrides */
  --bs-primary: #31a0d4;
  --bs-primary-rgb: 49, 160, 212;
  --bs-link-color: #31a0d4;
  --bs-link-hover-color: #248fbe;
}

body { background-color: var(--bs-body-bg); }
.navbar-brand { font-weight: 600; letter-spacing: .2px; }
.navbar-brand .brand-logo { height: 28px; width: auto; display: inline-block; }
.navbar-dark.bg-dark { background-color: var(--hp-dark) !important; }
.text-hp-dark { color: var(--hp-dark) !important; }

/* Buttons */
.btn-primary { background-color: var(--hp-primary); border-color: var(--hp-primary); }
.btn-primary:hover { background-color: #248fbe; border-color: #248fbe; }
.btn-outline-primary { color: var(--hp-primary); border-color: var(--hp-primary); }
.btn-outline-primary:hover { background-color: var(--hp-primary); border-color: var(--hp-primary); }
.navbar .nav-link.active { color: #fff; font-weight: 600; }
.page-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.page-head h3 { margin:0; }
.page-header { display:flex; align-items:center; justify-content:space-between; gap: 1rem; padding: .4rem 0 1rem; border-bottom: 1px solid var(--bs-border-color); margin-bottom: 1rem; }
.page-header-left { display:flex; flex-direction:column; }
.page-title { font-size: 1.5rem; font-weight: 600; margin: 0; }
.page-subtitle { font-size: .95rem; }
.page-header-right .btn, .page-header-right .form-control, .page-header-right .form-select { height: 38px; }
.home-logo-img { height: 72px; width: auto; }

/* Print styles */
@media print {
  .navbar, .page-header-right, .quick-actions, .home-logo, .alert { display: none !important; }
  .print-hidden { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100% !important; }
}
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Mobile-friendly tweaks */
@media (max-width: 576px) {
  .page-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .page-header-right { width: 100%; }
  .page-header-right .row { width: 100%; }
  .page-header-right .btn { width: 100%; }
  .navbar-brand .brand-logo { height: 22px; }
}

/* Floating theme toggle at bottom */
.theme-toggle-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  border-radius: 999px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

/* Mobile bottom action bar */
.mobile-bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  background: var(--bs-body-bg);
  border-top: 1px solid var(--bs-border-color);
  height: 56px;
  z-index: 1049;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bottom-bar .mobile-bottom-item {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  color: var(--bs-body-color);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px;
}
.mobile-bottom-bar .mobile-bottom-item i { font-size: 18px; line-height: 1; }
.mobile-bottom-bar .mobile-bottom-item.active, .mobile-bottom-bar .mobile-bottom-item:focus { color: var(--bs-primary); }

@media (max-width: 576px) {
  body { padding-bottom: 76px; }
  .mobile-bottom-bar { display: flex; }
  .theme-toggle-fab { bottom: 76px; }
}
.quick-actions .card { transition: transform .1s ease; cursor: pointer; }
.quick-actions .card:hover { transform: translateY(-2px); }
.table thead th { position: sticky; top: 0; background-color: var(--bs-body-bg); z-index: 1; }
.badge.text-bg-new { background:#6c757d; }
.badge.text-bg-picked { background: var(--hp-primary); color:#fff; }
.badge.text-bg-delivered { background: var(--hp-dark); color:#fff; }

/* Form focus */
.form-control:focus, .form-select:focus {
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 .2rem rgba(49,160,212,.25);
}
