html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn.nav-link:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color, #258cfb);
}

html {
  position: relative;
  min-height: 100%;
}

.hover-primary:hover {
  color: var(--primary-color) !important;
  transition: color 0.2s ease;
}

/* Admin Settings Floating Button */
.btn-primary.position-fixed {
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease;
}

.btn-primary.position-fixed:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Tag Links Hover Effects */
.hover-bg-primary:hover {
  background-color: var(--bs-primary) !important;
  color: white !important;
  border-color: var(--bs-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.transition-all {
  transition: all 0.3s ease;
}

/* Offcanvas Animation */
.offcanvas {
  transition: transform 0.3s ease-in-out;
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* User Menu Offcanvas - Full Height */
#userMenuOffcanvas {
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Offcanvas z-index - Ensure all offcanvas elements appear above header */
#cartOffcanvas,
#userMenuOffcanvas,
#adminSettingsPanel {
    z-index: 1055 !important;
}

.offcanvas-backdrop.show {
    z-index: 1050 !important;
}

#userMenuOffcanvas .offcanvas-header {
    flex-shrink: 0;
}

#userMenuOffcanvas .offcanvas-body {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Cart View Detail Button - Theme-aware styling */
.cart-view-detail-btn {
    background-color: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
}

.cart-view-detail-btn:hover {
    background-color: var(--background-secondary, rgba(0, 0, 0, 0.05)) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-view-detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
