/* ── UrbanTaskPro brand variables ──────────────────────────────────────────── */
:root {
  --brand-navy: #1B3A8C;
  --brand-navy-rgb: 27, 58, 140;
  --brand-light-blue: #E4EBF7;
  --brand-orange: #F97316;
  --brand-orange-rgb: 249, 115, 22;
  --brand-text-dark: #111827;
  --brand-text-muted: #6B7280;
  --brand-border: #E5E7EB;
  /* Override AdminUX theme colors */
  --adminuiux-theme-1: #1B3A8C;
  --adminuiux-theme-1-rgb: 27, 58, 140;
  --adminuiux-theme-2: #F97316;
  /* Override Bootstrap defaults */
  --bs-body-color: #111827;
  --bs-secondary-color: #6B7280;
  --bs-border-color: #E5E7EB;
}

/* Global font: Inter */
*, *::before, *::after { font-family: Inter, system-ui, sans-serif; font-feature-settings: normal; font-variation-settings: normal; }
body { -webkit-font-smoothing: antialiased; }

/* Page background: Light Blue */
body:not(.dark-mode) { background-color: var(--brand-light-blue) !important; background-image: none !important; }

/* Sticky footer: footer at bottom of viewport when content is short */
#app { display: flex; flex-direction: column; min-height: 100vh; }
.adminuiux-wrap { flex: 1 1 auto; min-height: 0; }
.adminuiux-sidebar.sidebar-close { transform: translateX(-100%); }
@media (min-width: 992px) {
  .adminuiux-sidebar.sidebar-close { transform: none; width: 0; min-width: 0; overflow: hidden; }
}
.adminuiux-wrap.no-sidebar .adminuiux-content { margin-left: 0; }
.adminuiux-footer.no-sidebar { margin-left: 0; width: 100%; }

/* Footer with sidebar: align with content (same as html/adminux-dashboard.html).
   Theme uses .sidebar-close .adminuiux-footer { margin-left: 0 } but our
   .sidebar-close is on the sidebar only, so footer is not inside .sidebar-close.
   Match content margin and reset when sidebar is closed. */
.adminuiux-footer.has-adminuiux-sidebar {
  margin-left: var(--adminuiux-sidebar-width, 280px);
  transition: margin-left 0.2s ease-in-out;
}
@media (max-width: 991.98px) {
  .adminuiux-footer.has-adminuiux-sidebar { margin-left: 0; }
  /* Mobile footer full width when sidebar is overlay on small screens */
  .adminuiux-mobile-footer { margin-left: 0 !important; }
}

/* Mobile bottom nav: only show on mobile-sized viewports */
.adminuiux-mobile-footer { display: none; }
@media (max-width: 767.98px) {
  .adminuiux-mobile-footer { display: block; }
}
/* Fallback when #app.sidebar-close is not yet applied (e.g. before JS): sibling footer shrinks */
.adminuiux-wrap:has(.adminuiux-sidebar.sidebar-close) ~ .adminuiux-footer.has-adminuiux-sidebar {
  margin-left: 0;
}
@media (min-width: 992px) {
  .adminuiux-wrap:has(.adminuiux-sidebar.sidebar-close) ~ .adminuiux-footer.has-adminuiux-sidebar {
    margin-left: 0;
  }
}

.btn-blue{
  background-color: var(--brand-navy) !important;
}
/* Primary button: Navy bg + white text, orange hover */
.btn-primary, .btn-theme {
  background-color: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-theme:hover {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
}

/* Profile page cover image */
.profile-cover {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: rgb(228 235 247 / var(--tw-bg-opacity, 1));
  height: 180px;
  position: relative;
}
@media (min-width: 768px) {
  .profile-cover { height: 220px; }
}
.profile-cover-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.userNo a:link, a:visited, a:hover, a:active {
    text-decoration: none;
}

/* ── Dropdown inside table-responsive: allow menu to overflow ─────────────── */
.table-responsive.dropdown-overflow-visible { overflow: visible !important; }

/* ── Activity log – dark-mode aware rows ─────────────────────────────────── */
.al-delta-row {
  background: var(--bs-tertiary-bg, #f8f9fa);
}
body.dark-mode .al-delta-row {
  background: rgba(255, 255, 255, 0.04);
}
.al-delta-pre {
  background: var(--bs-body-bg, #fff);
  border: 1px solid var(--bs-border-color, #dee2e6);
  color: var(--bs-body-color, #212529);
  border-radius: 6px;
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  font-size: .8rem;
}
body.dark-mode .al-delta-pre {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.1);
  color: #e4e6eb;
}
body.dark-mode .al-delta-inner-table th,
body.dark-mode .al-delta-inner-table td {
  border-color: rgba(255,255,255,0.1);
  color: inherit;
}

/* ── Landing page – vending machine theme ─────────────────────────────────── */
@keyframes steam-rise {
  0%   { opacity: 0.75; transform: translateY(0) scaleX(1); }
  60%  { opacity: 0.3;  transform: translateY(-18px) scaleX(1.4); }
  100% { opacity: 0;    transform: translateY(-32px) scaleX(0.5); }
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(46,204,113,0.25); }
  50%       { opacity: 0.4; box-shadow: 0 0 0 8px rgba(46,204,113,0.08); }
}
@keyframes cup-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes vm-slot-pulse {
  0%, 100% { background: rgba(46,204,113,0.15); border-color: #27ae60; }
  50%       { background: rgba(46,204,113,0.35); border-color: #2ecc71; box-shadow: 0 0 10px rgba(46,204,113,0.4); }
}
@keyframes counter-tick {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@keyframes drip-fall {
  0%   { transform: translateY(-4px) scaleY(0.5); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(12px) scaleY(1.3); opacity: 0; }
}

/* Live indicator dot */
.lp-live-dot {
  width: 11px; height: 11px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: live-pulse 1.6s ease-in-out infinite;
}

/* Steam puffs */
.lp-steam {
  width: 5px;
  border-radius: 50% 50% 20% 20%;
  background: rgba(180, 120, 80, 0.6);
  display: inline-block;
  animation: steam-rise 2.2s ease-in-out infinite;
}
.lp-steam.s1 { height: 18px; animation-delay: 0s; }
.lp-steam.s2 { height: 24px; animation-delay: 0.55s; }
.lp-steam.s3 { height: 16px; animation-delay: 1.1s; }

/* Vending machine CSS art */
.vm-art {
  background: linear-gradient(155deg, #2c3e50 0%, #1a252f 100%);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 5px 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  width: 260px;
  flex-shrink: 0;
}
.vm-art-screen {
  background: #0d1a0d;
  border: 2px solid #27ae60;
  border-radius: 7px;
  padding: 7px 10px;
  text-align: center;
  color: #2ecc71;
  font-family: monospace;
  font-size: .78rem;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(46,204,113,0.9);
  margin-bottom: 14px;
}
.vm-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}
.vm-art-slot {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: default;
  transition: background 0.3s;
}
.vm-art-slot.vm-selected {
  animation: vm-slot-pulse 2s ease-in-out infinite;
}
.vm-art-dispense {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 8px 8px;
  text-align: center;
}
.vm-art-cup {
  font-size: 2rem;
  display: inline-block;
  animation: cup-bob 2.4s ease-in-out infinite;
}
.vm-art-steam-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 28px;
  margin-bottom: 3px;
}
.vm-art-label {
  color: rgba(255,255,255,0.35);
  font-size: .65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Quick nav cards on landing */
.lp-nav-card {
  border: 1px solid rgba(var(--bs-border-color-rgb, 0,0,0), 0.08);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--bs-card-bg, #fff);
  color: inherit;
}
.lp-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  color: inherit;
  text-decoration: none;
}

/* Counter tick animation when value changes */
.lp-counter-anim {
  animation: counter-tick 0.3s ease;
}
.btn-link-white{
  color: #fff !important;
}
/* Sidebar: Navy background */
.adminuiux-sidebar-fill-white .adminuiux-sidebar {
    background-color: var(--brand-navy) !important;
}
.menu-name {
    color: #fff;
}
.menu-icon {
    color: rgba(255, 255, 255, 0.85) !important;
}
/* TopNav: White background with Navy text/icons */
.adminuiux-header.active .header-icon {
    color: var(--brand-navy) !important;
}
.adminuiux-header.active {
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 0 var(--brand-border) !important;
}
.adminuiux-header.active .navbar-text {
    color: var(--brand-text-dark) !important;
}
.adminuiux-header.active .btn-link {
    color: var(--brand-navy) !important;
}
/* .adminuiux-header.active .navbar-text {
    color: white !important;
} 
body:not(.adminuiux-header-fill-bg):not(.adminuiux-header-fill-theme):not(.adminuiux-header-fill-accent):not(.adminuiux-header-boxed) .adminuiux-header.active .navbar {
     background-color: black !important;  
     background-color: rgba(0, 0, 0, 0.5) !important;  
} */
.submenu-expanded{
  .nav-item .nav-link{
    color: white !important;
  }
}
.adminuiux-sidebar .adminuiux-sidebar-inner .nav .nav-item .nav-link {
  color: white !important;
  padding: 5px 8px 5px 8px;
  font-size: 0.875rem;
}
.step:not(:last-child)::after {
  width:2px;
  background:#e9ecef;
  flex:1;
  min-height:12px;
  margin:3px 0;
}