/* ============================================
   MENU SECTION STYLES
   ============================================ */

/* Menu section layout improvements */
#menu-section {
  /* Ensure proper spacing and layout */
}

#menu-section .pill-nav-shell {
  /* Tab navigation styling */
}

#menu-section .pill-nav-item {
  /* Individual tab styling */
}

/* Menu selector and actions header */
#menu-section #currentMenuInfo {
  /* Current menu information display */
}

/* Tab content areas */
#menu-section [data-menu-view] {
  /* Tab content container styles */
}

/* ============================================
   MENU LIST HOVER EFFECTS
   ============================================ */

/* Items tab hover effects */
#items-tab-content #itemsList > div {
  /* Individual item row */
  transition: all 0.2s ease;
}

#items-tab-content #itemsList > div:hover {
  /* Subtle background highlight on hover - similar to offerings/bookings lists */
  background-color: rgba(255, 169, 77, 0.04);
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Categories tab hover effects */
#categories-tab-content #categoriesList > div {
  /* Individual category card */
  transition: all 0.2s ease;
  cursor: pointer;
}

#categories-tab-content #categoriesList > div:hover {
  /* Subtle background highlight on hover - similar to offerings/bookings lists */
  background-color: rgba(255, 169, 77, 0.04);
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* PDFs tab hover effects */
#pdfs-tab-content #pdfsList > div {
  /* Individual PDF card */
  transition: all 0.2s ease;
}

#pdfs-tab-content #pdfsList > div:hover {
  /* Subtle background highlight on hover - similar to offerings/bookings lists */
  background-color: rgba(255, 169, 77, 0.04);
  border-left: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Responsive adjustments for menu section */
@media (max-width: 768px) {
  #menu-section .pill-nav-item span.pill-nav-text {
    /* Hide text on mobile, keep icons */
    display: none;
  }
}

/* ============================================
   DASHBOARD & LAYOUT UTILITIES
   ============================================ */

/* Main dashboard layout */
#adminDashboard,
#dashboardMain,
.content-section,
.holded-card {
  max-width: 100%;
  overflow-x: hidden;
}

/* Dashboard main content background */
#dashboardMain {
  background-color: var(--primary-light);
}

/* ============================================
   RESERVATIONS SECTION STYLES
   ============================================ */

/* Consistent typography for reservations section */
#reservations-section p,
#reservations-section .text-body,
#reservations-section .text-sm,
#reservations-section .text-xs,
#reservations-section .form-label,
#reservations-section .form-help-text,
#reservations-section label,
#reservations-section span:not(.fas):not(.far):not(.fab) {
  font-family: var(--font-sans);
}

/* ============================================
   PREMIUM AUTH SCREENS (Login, Forgot Password, etc.)
   ============================================ */

/* Hide navbar on auth screens - works even with media queries */
.auth-screen:not(.hidden) ~ #adminDashboard #dashboardTopNav,
.auth-screen:not(.hidden) ~ #adminDashboard #dashboardSidebar,
.auth-screen:not(.hidden) ~ #adminDashboard #mobileNav,
.auth-screen:not(.hidden) ~ #adminDashboard .mobile-bottom-nav,
#adminDashboard.hidden #dashboardTopNav,
#adminDashboard.hidden #dashboardSidebar,
#adminDashboard.hidden #mobileNav,
#adminDashboard.hidden .mobile-bottom-nav,
[data-auth-hidden='true'] {
  display: none !important;
}

/* Ensure mobile nav is hidden on auth screens even in iPad mode */
@media (max-width: 1199px) {
  .auth-screen:not(.hidden) ~ #adminDashboard .mobile-bottom-nav,
  #adminDashboard.hidden .mobile-bottom-nav,
  [data-auth-hidden='true'].mobile-bottom-nav {
    display: none !important;
  }
}

/* Auth screen background */
.auth-screen {
  position: relative;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  overflow: hidden;
}

/* Decorative background elements */
.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 249, 71, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 249, 71, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 249, 71, 0.05) 0%, transparent 50%);
}

/* Login card wrapper - NOT a modal, has its own sizing */
.login-card-wrapper {
  position: relative;
  z-index: var(--z-base);
  width: 100%;
  max-width: 420px !important; /* Smaller, more compact */
  margin: 0 auto;
}

/* Login card - NOT a modal, has its own sizing */
.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem !important; /* Reduced padding for smaller size */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 20px 25px -5px rgba(255, 249, 71, 0.08);
  border: 1px solid rgba(255, 249, 71, 0.1);
  width: 100% !important;
  max-width: 100% !important;
  /* Ensure it's not affected by modal styles */
  position: relative !important;
  display: block !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .login-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 20px;
  }
}

/* Logo styling */
.login-logo-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--honey) 0%, var(--amber) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow:
    0 10px 25px -5px rgba(255, 249, 71, 0.3),
    0 8px 10px -6px rgba(255, 249, 71, 0.2);
  animation: subtleFloat 3s ease-in-out infinite;
}

.login-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Login footer */
.login-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  text-align: center;
}

/* Legacy support */
.login-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
}

/* ============================================
   DRAG AND DROP STYLES
   ============================================ */

.category-container.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.category-drag-handle:hover,
.item-drag-handle:hover {
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
}

.items-container.drag-over {
  background-color: var(--primary-light);
  border: 2px dashed var(--honey);
  border-radius: var(--radius-md);
}

.category-container.drag-over {
  border-left: 4px solid var(--honey);
}

/* Visual feedback for draggable items */
.item-container[draggable='true']:hover,
.category-container[draggable='true']:hover {
  box-shadow: var(--shadow-lg);
  cursor: move;
  border-color: rgba(255, 249, 71, 0.3);
}

.drag-placeholder {
  background-color: var(--primary-light);
  border: 2px dashed var(--honey);
  border-radius: var(--radius-xl);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--honey);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.drag-opacity {
  opacity: 0.5;
  transform: scale(0.98);
  box-shadow: var(--shadow-xl);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Dashboard fade-in animation */
#adminDashboard {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

#adminDashboard.dashboard-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Order status badge animations */
.order-status-badge {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.order-status-badge.status-updating {
  animation: statusPulse 0.6s ease-in-out;
  opacity: 0.7;
  transform: scale(0.95);
}

.order-status-badge.status-updated {
  animation: statusPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   REMOVED: All modal-specific overrides
   All modals now use the unified system from app.ui-consistency.css
   No specific code for shop, offerings, or any other modals
   ============================================ */

/* Shop View Toggle Container */
.shop-view-toggle-container {
  display: flex;
  gap: 0;
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Shop View Toggle Buttons */
.shop-view-toggle {
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: var(--honey, #fff947);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.shop-view-toggle:hover:not(.active) {
  color: var(--honey, #fff947);
  opacity: 0.8;
}

.shop-view-toggle.active {
  background-color: var(--honey, #fff947);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 249, 71, 0.3);
}
