/* Custom Brand & Functional Colors (manual CSS, not via tailwind.config.js) */
.bg-primary    { background-color: #1A5F7A; }
.bg-secondary  { background-color: #57C5B6; }
.bg-accent     { background-color: #FF8C42; }
.bg-dark       { background-color: #333333; }
.bg-light      { background-color: #F8F9FA; }
.bg-success    { background-color: #28A745; }
.bg-warning    { background-color: #FFC107; }
.bg-error      { background-color: #DC3545; }
.bg-info       { background-color: #17A2B8; }
.text-primary  { color: #1A5F7A; }
.text-secondary{ color: #57C5B6; }
.text-accent   { color: #FF8C42; }
.text-dark     { color: #333333; }
.text-light    { color: #F8F9FA; }
.text-success  { color: #28A745; }
.text-warning  { color: #FFC107; }
.text-error    { color: #DC3545; }
.text-info     { color: #17A2B8; }

.border-primary   { border-color: #1A5F7A; }
.border-secondary { border-color: #57C5B6; }
.border-accent    { border-color: #FF8C42; }
.border-dark      { border-color: #333333; }
.border-light     { border-color: #F8F9FA; }
.border-success   { border-color: #28A745; }
.border-warning   { border-color: #FFC107; }
.border-error     { border-color: #DC3545; }
.border-info      { border-color: #17A2B8; }

/* Dollar Icon Consistency for Documentation */
.dollar-icon-circle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 11px !important;
  line-height: 1;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.dollar-icon-circle.single-dollar {
  font-size: 13px !important;
  letter-spacing: 0;
}

.dollar-icon-circle.double-dollar {
  font-size: 10px !important;
  letter-spacing: -1px;
}

.dollar-icon-circle.triple-dollar {
  font-size: 9px !important;
  letter-spacing: -1.5px;
}

/* Custom Utility Classes (manual CSS for classes not generated by Tailwind) */
.bg-brand-500, .bg-brand-700, .hover\:bg-brand-700:hover { background-color: #1A5F7A; }
.bg-success-500, .bg-success-700, .hover\:bg-success-700:hover { background-color: #28A745; }
.bg-primary-500, .bg-primary-700, .hover\:bg-primary-700:hover { background-color: #1A5F7A; }
.bg-secondary-500, .bg-secondary-700, .hover\:bg-secondary-700:hover { background-color: #57C5B6; }

/* White Background Opacity Classes for Navigation Buttons */
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}
.bg-white\/30 {
  background-color: rgba(255, 255, 255, 0.3);
}
.hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.hover\:bg-white\/30:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Text White Opacity Classes */
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}
.text-white\/50 {
  color: rgba(255, 255, 255, 0.5);
}

/* Backdrop Blur Classes */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Custom Gradient Classes */
.bg-gradient-to-r.from-primary.to-secondary {
  background: linear-gradient(to right, #1A5F7A, #57C5B6);
}
.bg-gradient-to-r.from-secondary.to-primary {
  background: linear-gradient(to right, #57C5B6, #1A5F7A);
}
.bg-gradient-to-br.from-secondary.to-primary {
  background: linear-gradient(to bottom right, #57C5B6, #1A5F7A);
}
.bg-gradient-to-br.from-primary.to-secondary {
  background: linear-gradient(to bottom right, #1A5F7A, #57C5B6);
}

/* Additional gradients used in docs and other pages */
.bg-gradient-to-br.from-primary.via-sky-950.to-secondary {
  background: linear-gradient(to bottom right, #1A5F7A, #0c4a6e, #57C5B6);
}

/* Copy Link Button Styles */
.copy-link-btn {
  cursor: pointer;
}

.copy-link-btn:hover {
  cursor: pointer;
}

/* Mobile-friendly Breadcrumb Styles */
@media (max-width: 640px) {
  .breadcrumb-mobile {
    font-size: 0.75rem; /* 12px */
    line-height: 1.2;
  }
  
  .breadcrumb-title {
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
  }
}

/* Mobile-First Loyalty Program Styles */
.loyalty-program-form {
  /* Ensure form elements are touch-friendly */
}

.loyalty-program-form input[type="text"],
.loyalty-program-form input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.loyalty-program-form input[type="number"]::-webkit-outer-spin-button,
.loyalty-program-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Mobile-optimized form grid */
@media (max-width: 640px) {
  .loyalty-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .loyalty-stat-card {
    padding: 0.75rem;
  }
  
  .loyalty-stat-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .loyalty-stat-value {
    font-size: 1.125rem;
    line-height: 1.2;
  }
  
  .loyalty-stat-label {
    font-size: 0.75rem;
    line-height: 1.1;
  }
  
  .loyalty-form-section {
    padding: 1rem;
  }
  
  .loyalty-form-header {
    padding: 1.5rem 1rem;
  }
  
  .loyalty-form-fields {
    gap: 1rem;
  }
  
  .loyalty-points-config {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
  .loyalty-program-form input,
  .loyalty-program-form button {
    min-height: 48px; /* Ensures touch-friendly size */
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .loyalty-program-form .form-group {
    margin-bottom: 1.5rem;
  }
}

/* Documentation header gradient */
.bg-gradient-to-r.from-primary.via-blue-600.to-secondary {
  background: linear-gradient(to right, #1A5F7A, #2563eb, #57C5B6);
}

/* Documentation Navigation Button Enhancements */
.docs-nav-btn {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.docs-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Documentation Header Styles */
.docs-header {
  background: linear-gradient(135deg, #1A5F7A 0%, #2563eb 50%, #57C5B6 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.docs-breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-nav-controls {
  padding: 1.25rem 0;
  gap: 1rem;
}

/* Better button visibility */
.docs-nav-btn-primary {
  background: rgba(87, 197, 182, 0.9); /* secondary color with opacity */
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.docs-nav-btn-primary:hover {
  background: rgba(87, 197, 182, 1);
  box-shadow: 0 6px 20px rgba(87, 197, 182, 0.4);
}

.docs-nav-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.docs-nav-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Reading time indicator styling */
.docs-reading-time {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

/* Progress dots enhancement */
.progress-dot {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.progress-dot.active {
  box-shadow: 0 2px 12px rgba(87, 197, 182, 0.5);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .docs-nav-controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .docs-nav-btn {
    justify-content: center;
    width: 100%;
  }
  
  .docs-reading-time {
    align-self: center;
  }
}

/* Additional Custom Utility Classes found in views */
.text-warning-600, .text-warning-800 { color: #FFC107; }
.text-danger-600, .text-danger-700, .text-danger-500, .hover\:text-danger-700:hover { color: #DC3545; }
.bg-warning-100 { background-color: #FFC107; }
.bg-info-100 { background-color: #17A2B8; }
.text-info-800 { color: #17A2B8; }
.bg-success-100 { background-color: #28A745; }
.text-success-800 { color: #28A745; }
.text-brand-600, .text-brand-800, .hover\:text-brand-800:hover { color: #1A5F7A; }
.border-danger-400 { border-color: #DC3545; }

/* Landing Page Specific Styles */
.hover\:bg-orange-600:hover { background-color: #ea580c; }
.hover\:bg-teal-600:hover { background-color: #0d9488; }

/* Smooth transitions for interactive elements */
.transition-colors { transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; }
.transition-shadow { transition: box-shadow 0.2s ease-in-out; }
.transition-opacity { transition: opacity 0.2s ease-in-out; }

/* Category Showcase Styles */
.category-tile {
  transition-property: transform, box-shadow;
  transition-timing-function: ease-in-out;
  transition-duration: 300ms;
}

.category-tile .overlay {
  transition-property: opacity;
  transition-timing-function: ease-in-out;
  transition-duration: 300ms;
  /* The JS adds backdrop-blur-sm, bg-opacity-70 and specific bg color */
}

.example-item {
  /* Base styles are applied via Tailwind in JS */
  /* Transitions for opacity and transform are also applied in JS for staggering */
}

/* Ensure the examples grid container allows for scrolling if content overflows */
.examples-grid-container {
  max-height: 100%; /* Ensure it doesn't exceed tile height */
}

/* Desktop Toggle Button Positioning */
.desktop-toggle-btn {
  left: 16px;
  transition: left 0.3s ease-in-out, background-color 0.2s ease-in-out;
  position: fixed;
  top: 1rem;
  z-index: 50;
}

.desktop-toggle-btn:hover {
  background-color: #374151; /* gray-700 */
}

.desktop-toggle-btn.sidebar-open {
  left: 270px;
}

/* Mobile-Specific Business Manager Styles */
@media (max-width: 1023px) {
  /* Ensure main content is visible on mobile */
  #main-content {
    position: relative;
    z-index: 10;
    background-color: #f3f4f6; /* gray-100 */
    min-height: 100vh;
  }
  
  /* Ensure sidebar overlay works correctly */
  #sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 30;
  }
  
  #sidebar-overlay.show {
    display: block;
  }
  
  /* Ensure sidebar slides in correctly */
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 16rem; /* 256px */
    height: 100vh;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  #sidebar.show {
    transform: translateX(0);
  }
  
  /* Ensure sign out button is always visible in sidebar */
  #sidebar .flex-shrink-0 {
    position: sticky;
    bottom: 0;
    background-color: #1f2937; /* gray-800 - match sidebar background */
  }
  
  /* Ensure mobile cards have proper touch targets */
  .mobile-card-action {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Mobile table alternatives */
  .mobile-data-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  }
  
  .mobile-data-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }
  
  /* Improve mobile form inputs */
  .mobile-form-input {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Business Manager Sidebar Specific Styles - Fix for potential conflicts */
#sidebar {
  background-color: #1f2937 !important; /* gray-800 - force business manager sidebar color */
}

#sidebar nav {
  background-color: transparent !important;
}

#sidebar .flex-shrink-0:last-child {
  background-color: #1f2937 !important; /* gray-800 for bottom section */
}

/* Ensure business manager sidebar links maintain proper styling */
#sidebar a {
  color: white !important;
}

#sidebar a:hover {
  background-color: #374151 !important; /* gray-700 */
}

#sidebar a.bg-gray-700 {
  background-color: #374151 !important; /* gray-700 for active state */
}

/* Enhanced Touch Targets */
@media (max-width: 768px) {
  /* Larger touch targets for mobile */
  button, .btn, a.btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  /* Better spacing for mobile navigation */
  .mobile-nav-item {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile-friendly tables */
  .mobile-table-card {
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #e5e7eb;
  }
}

/* Sidebar Toggle Animation */
.sidebar-toggle-enter {
  transform: translateX(-100%);
}

.sidebar-toggle-enter-active {
  transform: translateX(0);
  transition: transform 300ms ease-in-out;
}

.sidebar-toggle-exit {
  transform: translateX(0);
}

.sidebar-toggle-exit-active {
  transform: translateX(-100%);
  transition: transform 300ms ease-in-out;
}

/* Focus styles for better accessibility */
.focus-visible\:ring-2:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #1A5F7A;
}

/* Status badge improvements */
.status-badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

/* Mobile-friendly button groups */
@media (max-width: 640px) {
  .button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .button-group > * {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   CLIENT DASHBOARD SPECIFIC STYLES
   ============================================================================ */

/* Client Dashboard Grid System */
.client-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .client-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .client-dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Client Dashboard Widget Styles */
.client-widget {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease-in-out;
}

@media (min-width: 640px) {
  .client-widget {
    padding: 1.5rem;
  }
}

.client-widget:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Client Quick Action Buttons */
.client-quick-action {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: #1A5F7A;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  border: 1px solid #e5e7eb;
  text-decoration: none;
}

.client-quick-action:hover {
  color: #1d4ed8;
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.client-quick-action svg {
  margin-right: 0.75rem;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* Client Dashboard Stats Cards */
.client-stats-card {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
}

.client-stats-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.client-stats-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Client Activity Timeline */
.client-activity-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.client-activity-item:last-child {
  border-bottom: none;
}

.client-activity-title {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .client-activity-title {
    font-size: 1rem;
  }
}

.client-activity-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.client-activity-time {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .client-activity-time {
    font-size: 0.875rem;
  }
}

/* Client Status Badges */
.client-status-badge {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  align-items: center;
}

.client-status-confirmed {
  background-color: #28A745;
  color: white;
}

.client-status-pending {
  background-color: #FFC107;
  color: white;
}

.client-status-cancelled {
  background-color: #DC3545;
  color: white;
}

.client-status-completed {
  background-color: #28A745;
  color: white;
}

.client-status-default {
  background-color: #f3f4f6;
  color: #374151;
}

/* Client Empty State Styles */
.client-empty-state {
  text-align: center;
  padding: 2rem 1rem;
}

.client-empty-state svg {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #d1d5db;
}

.client-empty-state-text {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .client-empty-state-text {
    font-size: 1rem;
  }
}

/* Client Mobile Optimizations */
@media (max-width: 767px) {
  /* Enhanced mobile touch targets */
  .client-quick-action {
    min-height: 44px;
    font-size: 0.875rem;
  }
  
  .client-widget {
    margin-bottom: 1rem;
  }
  
  /* Better mobile typography */
  .client-dashboard-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  
  .client-dashboard-subtitle {
    font-size: 1.125rem;
    line-height: 1.375;
  }
  
  /* Mobile-friendly stats grid */
  .client-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Improved mobile quick actions grid */
  .client-quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (min-width: 640px) {
  .client-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .client-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .client-quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Client Dashboard Header Responsive */
.client-dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .client-dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
}

/* Client Cart Icon Styles */
.client-cart-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: #d1d5db;
}

/* Responsive text adjustments */
@media (max-width: 479px) {
  .client-stats-number {
    font-size: 1.25rem;
  }
  
  .client-stats-label {
    font-size: 0.75rem;
  }
  
  .client-activity-title {
    font-size: 0.8125rem;
  }
  
  .client-activity-subtitle {
    font-size: 0.8125rem;
  }
}

/* Focus states for accessibility */
.client-quick-action:focus {
  outline: 2px solid #1A5F7A;
  outline-offset: 2px;
}

.client-widget a:focus {
  outline: 2px solid #1A5F7A;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ============================================================================
   PROFESSIONAL NAVIGATION STYLES
   ============================================================================ */

/* Professional Navigation Link Styles */
.nav-link-professional {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.nav-link-professional:hover {
  color: #1A5F7A;
  background-color: #f3f4f6;
}

.nav-link-professional svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

/* Active navigation state */
.nav-link-professional.active {
  color: #1A5F7A;
  background-color: #eff6ff;
  border-left: 3px solid #1A5F7A;
  padding-left: 0.6875rem; /* Compensate for border */
}

/* Mobile Navigation Enhancements */
@media (max-width: 639px) {
  .nav-link-professional {
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 0;
    border-bottom: 1px solid #f3f4f6;
  }
  
  .nav-link-professional:last-child {
    border-bottom: none;
  }
  
  .nav-link-professional:hover {
    background-color: #f9fafb;
  }
  
  .nav-link-professional.active {
    border-left: none;
    border-bottom: 1px solid #f3f4f6;
    padding-left: 0.75rem;
    background-color: #eff6ff;
  }
}

/* Cart Badge Styles */
.nav-link-professional .bg-accent {
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 600;
}

/* Mobile Menu Toggle Button */
#mobile-nav-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
  background: none;
  border: none;
  cursor: pointer;
}

#mobile-nav-toggle:hover {
  color: #1A5F7A;
}

#mobile-nav-toggle svg {
  flex-shrink: 0;
}

/* Navigation Menu Responsive Behavior */
#nav-menu {
  transition: all 0.3s ease-in-out;
}

@media (max-width: 639px) {
  #nav-menu {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 0.5rem;
    overflow: hidden;
  }
  
  #nav-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
  }
  
  #nav-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
  }
}

/* Professional Header Enhancements */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Enhanced Button Styles for Header */
.nav-header-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-header-button svg {
  width: 1rem;
  height: 1rem;
}

/* Mobile Responsive Header Buttons */
@media (max-width: 639px) {
  .nav-header-button {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }
  
  .nav-header-button svg {
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .nav-header-button .hidden {
    display: none !important;
  }
}

/* Professional spacing for navigation sections */
.navigation-section {
  border-bottom: 1px solid #e5e7eb;
}

.navigation-section:last-child {
  border-bottom: none;
}

/* Consistent Checkbox Styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  border: 2px solid #D1D5DB;
  border-radius: 0.25rem;
  background-color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: #57C5B6;
  border-color: #57C5B6;
}

input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1;
}

input[type="checkbox"]:hover {
  border-color: #9CA3AF;
}

input[type="checkbox"]:focus {
  outline: 2px solid rgba(87, 197, 182, 0.5);
  outline-offset: 2px;
}

/* Ensure consistent sizing on all devices */
@media (max-width: 640px) {
  input[type="checkbox"] {
    width: 1.375rem;
    height: 1.375rem;
    min-width: 1.375rem;
    min-height: 1.375rem;
  }
}

/* Dark Checkboxes for Service Setup Checklist */
.service-checklist input[type="checkbox"] {
  border: 2px solid #374151;
  background-color: white;
}

.service-checklist input[type="checkbox"]:checked {
  background-color: #374151;
  border-color: #374151;
}

.service-checklist input[type="checkbox"]:checked::before {
  color: white;
}

.service-checklist input[type="checkbox"]:hover {
  border-color: #4B5563;
}

.service-checklist input[type="checkbox"]:focus {
  outline: 2px solid rgba(55, 65, 81, 0.5);
}

/* ============================================================================
   MARKDOWN CONTENT STYLES FOR BLOG POSTS
   ============================================================================ */

/* Markdown Content Styling */
.markdown-content {
  color: #374151;
  line-height: 1.625;
}

/* Headers with anchor links */
.markdown-content .markdown-header {
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.markdown-content .markdown-h1 {
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .markdown-content .markdown-h1 {
    font-size: 2.25rem;
  }
}

.markdown-content .markdown-h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .markdown-content .markdown-h2 {
    font-size: 1.875rem;
  }
}

.markdown-content .markdown-h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .markdown-content .markdown-h3 {
    font-size: 1.5rem;
  }
}

.markdown-content .markdown-h4 {
  font-size: 1.125rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .markdown-content .markdown-h4 {
    font-size: 1.25rem;
  }
}

.markdown-content .markdown-h5 {
  font-size: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .markdown-content .markdown-h5 {
    font-size: 1.125rem;
  }
}

.markdown-content .markdown-h6 {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  color: #374151;
}

@media (min-width: 768px) {
  .markdown-content .markdown-h6 {
    font-size: 1rem;
  }
}

.markdown-content .header-link {
  opacity: 0;
  margin-left: 0.5rem;
  color: #9ca3af;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.markdown-content .header-link:hover {
  color: #4b5563;
}

.markdown-content .markdown-header:hover .header-link {
  opacity: 1;
}

/* Paragraphs */
.markdown-content p,
.article-content p {
  margin-bottom: 1rem !important;
  line-height: 1.625 !important;
  margin-top: 0 !important;
}

.markdown-content p:last-child,
.article-content p:last-child {
  margin-bottom: 0 !important;
}

/* Links */
.markdown-content a {
  color: #2563eb;
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #1d4ed8;
}

/* Emphasis and Strong */
.markdown-content em {
  font-style: italic;
}

.markdown-content strong {
  font-weight: 700;
}

/* Lists */
.markdown-content .markdown-ul,
.markdown-content ul.markdown-ul,
.article-content .markdown-ul,
.article-content ul.markdown-ul {
  list-style-type: disc !important;
  list-style-position: inside !important;
  margin-bottom: 1rem !important;
  padding-left: 0 !important;
}

.markdown-content .markdown-ul li,
.markdown-content ul.markdown-ul li,
.article-content .markdown-ul li,
.article-content ul.markdown-ul li {
  margin-bottom: 0.25rem !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style-type: disc !important;
  display: list-item !important;
}

.markdown-content .markdown-ol,
.markdown-content ol.markdown-ol,
.article-content .markdown-ol,
.article-content ol.markdown-ol {
  list-style-type: decimal !important;
  list-style-position: inside !important;
  margin-bottom: 1rem !important;
  padding-left: 0 !important;
}

.markdown-content .markdown-ol li,
.markdown-content ol.markdown-ol li,
.article-content .markdown-ol li,
.article-content ol.markdown-ol li {
  margin-bottom: 0.25rem !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style-type: decimal !important;
  display: list-item !important;
}

/* Nested lists */
.markdown-content .markdown-ul .markdown-ul,
.markdown-content .markdown-ol .markdown-ol,
.markdown-content .markdown-ul .markdown-ol,
.markdown-content .markdown-ol .markdown-ul,
.article-content .markdown-ul .markdown-ul,
.article-content .markdown-ol .markdown-ol,
.article-content .markdown-ul .markdown-ol,
.article-content .markdown-ol .markdown-ul {
  margin-left: 1.5rem !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.markdown-content .markdown-list-item,
.article-content .markdown-list-item {
  margin-bottom: 0.25rem !important;
}

/* Additional fallback for any ul/ol within markdown content that doesn't have the class */
.markdown-content ul:not(.markdown-ul),
.article-content ul:not(.markdown-ul) {
  list-style-type: disc !important;
  list-style-position: inside !important;
  margin-bottom: 1rem !important;
  padding-left: 0 !important;
}

.markdown-content ul:not(.markdown-ul) li,
.article-content ul:not(.markdown-ul) li {
  margin-bottom: 0.25rem !important;
  list-style-type: disc !important;
  display: list-item !important;
}

.markdown-content ol:not(.markdown-ol),
.article-content ol:not(.markdown-ol) {
  list-style-type: decimal !important;
  list-style-position: inside !important;
  margin-bottom: 1rem !important;
  padding-left: 0 !important;
}

.markdown-content ol:not(.markdown-ol) li,
.article-content ol:not(.markdown-ol) li {
  margin-bottom: 0.25rem !important;
  list-style-type: decimal !important;
  display: list-item !important;
}

/* Spacing around lists */
.markdown-content ul + p,
.markdown-content ol + p,
.article-content ul + p,
.article-content ol + p {
  margin-top: 1rem !important;
}

.markdown-content p + ul,
.markdown-content p + ol,
.article-content p + ul,
.article-content p + ol {
  margin-top: 0.5rem !important;
}

/* Better handling for line breaks in content */
.markdown-content br,
.article-content br {
  line-height: 1.5 !important;
}

/* Ensure text flow in list items */
.markdown-content li p,
.article-content li p {
  margin-bottom: 0.5rem !important;
  line-height: 1.5 !important;
}

.markdown-content li p:last-child,
.article-content li p:last-child {
  margin-bottom: 0 !important;
}

/* Blockquotes */
.markdown-content .markdown-blockquote {
  border-left: 4px solid #d1d5db;
  padding-left: 1rem;
  margin-left: 0;
  font-style: italic;
  color: #374151;
  margin-bottom: 1rem;
  background-color: #f9fafb;
  padding: 1rem;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.markdown-content .markdown-blockquote p {
  margin-bottom: 0.5rem;
}

.markdown-content .markdown-blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.markdown-content .inline-code {
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

/* Code blocks */
.markdown-content .code-block {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.markdown-content .code-header {
  background-color: #f3f4f6;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #4b5563;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.markdown-content .language-label {
  font-weight: 500;
}

.markdown-content .code-content {
  background-color: #111827;
  color: #f9fafb;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.markdown-content .code-content code {
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Plain code blocks without syntax highlighting */
.markdown-content pre {
  background-color: #111827;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.markdown-content pre code {
  font-size: 0.875rem;
}

/* Tables */
.markdown-content .table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}

.markdown-content .markdown-table {
  min-width: 100%;
  border-collapse: collapse;
}

.markdown-content .markdown-table thead {
  background-color: #f9fafb;
}

.markdown-content .markdown-table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.markdown-content .markdown-table tbody {
  background-color: white;
}

.markdown-content .markdown-table tbody tr {
  border-top: 1px solid #e5e7eb;
}

.markdown-content .markdown-table td {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: #111827;
}

.markdown-content .markdown-table tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Horizontal rules */
.markdown-content hr {
  border: 0;
  border-top: 1px solid #d1d5db;
  margin: 2rem 0;
}

/* Images */
.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin: 1rem 0;
}

/* Strikethrough */
.markdown-content del {
  text-decoration: line-through;
  color: #6b7280;
}

/* Footnotes */
.markdown-content .footnotes {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.markdown-content .footnotes ol {
  list-style-type: decimal;
  list-style-position: inside;
}

.markdown-content .footnotes ol li {
  margin-bottom: 0.5rem;
}

/* Syntax Highlighting with Rouge */
.markdown-content .highlight {
  border-radius: 0.25rem;
}

/* Rouge syntax highlighting styles */
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #6a737d; font-style: italic } /* Comment */
.highlight .err { color: #f97583 } /* Error */
.highlight .k { color: #d73a49; font-weight: bold } /* Keyword */
.highlight .o { color: #d73a49 } /* Operator */
.highlight .cm { color: #6a737d; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #d73a49; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #6a737d; font-style: italic } /* Comment.Single */
.highlight .cs { color: #6a737d; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #f97583; background-color: #ffeef0 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #28a745; background-color: #f0fff4 } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #6f42c1; font-weight: bold } /* Generic.Subheading */
.highlight .kc { color: #005cc5; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #d73a49; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #d73a49; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #d73a49; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #d73a49; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #d73a49; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #005cc5 } /* Literal.Number */
.highlight .s { color: #032f62 } /* Literal.String */
.highlight .na { color: #6f42c1 } /* Name.Attribute */
.highlight .nb { color: #005cc5 } /* Name.Builtin */
.highlight .nc { color: #6f42c1; font-weight: bold } /* Name.Class */
.highlight .no { color: #005cc5 } /* Name.Constant */
.highlight .nd { color: #6f42c1; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #005cc5 } /* Name.Entity */
.highlight .ne { color: #6f42c1; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #6f42c1; font-weight: bold } /* Name.Function */
.highlight .nl { color: #6f42c1; font-weight: bold } /* Name.Label */
.highlight .nn { color: #6f42c1 } /* Name.Namespace */
.highlight .nt { color: #22863a } /* Name.Tag */
.highlight .nv { color: #e36209 } /* Name.Variable */
.highlight .ow { color: #d73a49; font-weight: bold } /* Operator.Word */
.highlight .w { color: #f6f8fa } /* Text.Whitespace */
.highlight .mf { color: #005cc5 } /* Literal.Number.Float */
.highlight .mh { color: #005cc5 } /* Literal.Number.Hex */
.highlight .mi { color: #005cc5 } /* Literal.Number.Integer */
.highlight .mo { color: #005cc5 } /* Literal.Number.Oct */
.highlight .sb { color: #032f62 } /* Literal.String.Backtick */
.highlight .sc { color: #032f62 } /* Literal.String.Char */
.highlight .sd { color: #032f62 } /* Literal.String.Doc */
.highlight .s2 { color: #032f62 } /* Literal.String.Double */
.highlight .se { color: #032f62 } /* Literal.String.Escape */
.highlight .sh { color: #032f62 } /* Literal.String.Heredoc */
.highlight .si { color: #005cc5 } /* Literal.String.Interpol */
.highlight .sx { color: #032f62 } /* Literal.String.Other */
.highlight .sr { color: #032f62 } /* Literal.String.Regex */
.highlight .s1 { color: #032f62 } /* Literal.String.Single */
.highlight .ss { color: #005cc5 } /* Literal.String.Symbol */
.highlight .bp { color: #005cc5 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #e36209 } /* Name.Variable.Class */
.highlight .vg { color: #e36209 } /* Name.Variable.Global */
.highlight .vi { color: #e36209 } /* Name.Variable.Instance */
.highlight .il { color: #005cc5 } /* Literal.Number.Integer.Long */

/* Responsive adjustments */
@media (max-width: 640px) {
  .markdown-content .code-content {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
  
  .markdown-content .markdown-table th,
  .markdown-content .markdown-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Admin textarea improvements to prevent scroll jumping */
.active_admin textarea#blog_post_content,
.active_admin textarea[name*="content"] {
  resize: none !important; /* Disable manual resize to prevent conflicts */
  overflow-y: auto !important;
  scroll-behavior: auto !important; /* Disable smooth scrolling */
  transition: none !important; /* Remove any height transitions */
}

/* Prevent scroll restoration issues */
.active_admin textarea:focus {
  scroll-margin: 0 !important;
  scroll-snap-margin: 0 !important;
}

/* Improve textarea container stability */
.active_admin .input.text textarea {
  box-sizing: border-box !important;
  min-height: 200px !important;
}

/* File removal styling for admin forms */
.active_admin .input.file .current-file-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
}

.active_admin .input.file .current-file-info strong {
  color: #495057;
  display: block;
  margin-bottom: 5px;
}

.active_admin .input.file .file-meta {
  color: #6c757d;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.active_admin .input.file .remove-file-option {
  border-top: 1px solid #e9ecef;
  padding-top: 10px;
  margin-top: 10px;
}

.active_admin .input.file .remove-file-option input[type="checkbox"] {
  margin-right: 8px;
}

.active_admin .input.file .remove-file-option label {
  font-weight: normal !important;
  color: #dc3545;
  cursor: pointer;
}

/* Futuristic Website Hover Effect */
.website-hover-container {
  position: relative;
  display: inline-block;
  color: #1A5F7A;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.website-hover-container:visited {
  color: #1A5F7A;
}

.website-hover-container::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1A5F7A, #57C5B6);
  transition: width 0.4s ease;
}

.website-hover-container:hover::before {
  width: 100%;
}

.website-hover-container:hover {
  color: #1A5F7A;
  text-shadow: 0 0 8px rgba(26, 95, 122, 0.3);
}

/* Futuristic Popup Link */
.futuristic-popup {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.95), rgba(87, 197, 182, 0.95));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 20px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(26, 95, 122, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.futuristic-popup::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(26, 95, 122, 0.95);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.futuristic-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.futuristic-popup-content {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.futuristic-popup-content:hover {
  color: white;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.futuristic-popup-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.futuristic-popup-content:hover .futuristic-popup-icon {
  transform: translateX(2px);
}

.futuristic-popup-text {
  background: linear-gradient(45deg, #ffffff, #e0f2fe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Anchor positioning for smooth scrolling with proper offset */
#subdomain-explanation {
  scroll-margin-top: 170px; /* Desktop offset */
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .futuristic-popup {
    top: -55px;
    padding: 10px 16px;
    border-radius: 10px;
  }
  
  .futuristic-popup-content {
    font-size: 13px;
  }
  
  .futuristic-popup-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
  }
  
  /* Smaller offset for mobile */
  #subdomain-explanation {
    scroll-margin-top: 150px;
  }
}

/* Mobile-First Product Add-On Table Styles */
.product-addon-table {
  min-width: 100%;
}

/* Touch-friendly quantity controls */
.quantity-btn {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  background-color: #f9fafb;
  color: #374151;
}

.quantity-btn:hover:not(:disabled) {
  background-color: #f3f4f6;
  border-color: #6b7280;
  color: #1f2937;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

.quantity-input {
  font-size: 16px; /* Prevents zoom on iOS */
  min-height: 44px;
  touch-action: manipulation;
}

/* Mobile responsive table improvements */
@media (max-width: 640px) {
  .product-addon-table th,
  .product-addon-table td {
    padding: 0.75rem 0.5rem;
  }
  
  /* Ensure quantity controls remain accessible */
  .quantity-btn {
    min-width: 48px;
    min-height: 48px;
    border-width: 2px;
    background-color: #ffffff;
    border-color: #374151;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Much larger, more visible icons on mobile */
  .quantity-btn svg {
    width: 28px;
    height: 28px;
    stroke-width: 4;
  }
  
  .quantity-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #374151;
  }
  
  .quantity-input {
    width: 3.5rem;
    min-height: 48px;
    border-width: 2px;
    font-weight: 600;
    font-size: 18px;
    border-color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Product name text wrapping */
  .product-name {
    word-break: break-word;
    hyphens: auto;
  }
  
  /* Better spacing for mobile */
  .product-addon-section {
    margin-bottom: 2rem;
  }
}

/* Improved focus states for accessibility */
.quantity-btn:focus-visible {
  outline: 2px solid #1A5F7A;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.quantity-input:focus-visible {
  outline: 2px solid #1A5F7A;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

/* Stock indicator improvements */
.stock-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stock-dot.in-stock {
  background-color: #10B981;
}

.stock-dot.out-of-stock {
  background-color: #EF4444;
}

/* Product link icon hover effects */
.product-link-icon {
  transition: all 0.2s ease;
}

.product-link-icon:hover {
  transform: scale(1.1);
  color: #1A5F7A;
}

/* Responsive table container */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E0 #F7FAFC;
}

.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-track {
  background: #F7FAFC;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: #A0AEC0;
} 

/* Booking Policy Display Styles */
.booking-policy-card {
  transition: all 0.3s ease;
}

.booking-policy-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.policy-icon-container {
  transition: transform 0.2s ease;
}

.booking-policy-card:hover .policy-icon-container {
  transform: scale(1.05);
}

/* Mobile optimizations for policy displays */
@media (max-width: 640px) {
  .booking-policy-card {
    padding: 1rem;
  }
  
  .booking-policy-card h3 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .booking-policy-card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .policy-icon-container {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .policy-icon-container span {
    font-size: 1rem;
  }
}

/* Policy summary styles */
.policy-summary-compact {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.policy-summary-compact:hover {
  background-color: rgba(219, 234, 254, 0.8);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .booking-policy-card,
  .policy-icon-container {
    transition: none;
  }
  
  .booking-policy-card:hover {
    transform: none;
  }
  
  .booking-policy-card:hover .policy-icon-container {
    transform: none;
  }
}

/* --- Custom Trix Editor Styles for Section Editing --- */
.trix-editor-container {
  border: 1px solid #1A5F7A; /* brand primary */
  border-radius: 0.5rem;
  background: #fff;
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(26, 95, 122, 0.07);
}

trix-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid #57C5B6; /* brand secondary */
  border-radius: 0.5rem 0.5rem 0 0;
  margin-bottom: 0.5rem;
}

trix-toolbar .trix-button {
  background: #e0e7ef;
  border: none;
  border-radius: 0.375rem;
  margin: 0 0.3rem 0.5rem 0;
  color: #1A5F7A;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.45rem 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(26, 95, 122, 0.07);
  outline: none;
  cursor: pointer;
  display: inline-block;
}

trix-toolbar .trix-button:hover,
trix-toolbar .trix-button.trix-active {
  background: #1A5F7A;
  color: #fff;
  box-shadow: 0 2px 6px rgba(26, 95, 122, 0.13);
}

trix-toolbar .trix-button:focus {
  outline: 2px solid #FF8C42;
  background: #FF8C42;
  color: #fff;
}

trix-toolbar .trix-button-group {
  margin-right: 0.5rem;
}

.custom-trix {
  min-height: 120px;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #57C5B6;
  background: #F8F9FA;
  font-size: 1rem;
  color: #333;
  box-shadow: none;
  margin-top: 0.25rem;
}

.custom-trix:focus {
  outline: 2px solid #FF8C42;
  border-color: #FF8C42;
  background: #fff;
}

/* Hide unwanted Trix toolbar buttons for section editor */
trix-toolbar .trix-button[data-trix-attribute="heading"],
trix-toolbar .trix-button[data-trix-attribute="Heading"],
trix-toolbar .trix-button[title="Heading"],
trix-toolbar .trix-button[aria-label="Heading"],
trix-toolbar .trix-button[data-trix-attribute="quote"],
trix-toolbar .trix-button[data-trix-attribute="code"],
trix-toolbar .trix-button[data-trix-attribute="bullet"],
trix-toolbar .trix-button[data-trix-attribute="number"],
trix-toolbar .trix-button[data-trix-action="decreaseNestingLevel"],
trix-toolbar .trix-button[data-trix-action="increaseNestingLevel"] {
  display: none !important;
}

/* Link dialog styling improvements */
trix-toolbar .trix-dialog--link {
  padding: 1rem;
  background: #fff;
  border: 1px solid #57C5B6;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(26, 95, 122, 0.15);
}

/* Link dialog field container spacing */
trix-toolbar .trix-dialog__link-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Space between button group and input field */
}

/* Link dialog button group with smaller buttons and proper spacing */
trix-toolbar .trix-dialog__link-fields .trix-button-group {
  display: flex;
  gap: 0.5rem; /* Space between Link and Unlink buttons */
  margin: 0; /* Reset margin since we're using gap on parent */
}

/* Make Link/Unlink buttons smaller */
trix-toolbar .trix-dialog__link-fields .trix-button {
  font-size: 0.875rem !important; /* Smaller text */
  padding: 0.375rem 0.75rem !important; /* Smaller padding */
  min-width: auto !important;
  margin: 0 !important; /* Remove default margin since we're using gap */
}

/* Style the URL input field */
trix-toolbar .trix-dialog__link-fields .trix-input {
  padding: 0.5rem;
  border: 1px solid #57C5B6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  width: 100%;
  min-width: 250px;
  margin: 0; /* Reset margin since we're using gap on parent */
}

/* Focus state for input */
trix-toolbar .trix-dialog__link-fields .trix-input:focus {
  outline: 2px solid #FF8C42;
  border-color: #FF8C42;
  background: #fff;
}

/* Style links within the Trix editor content to look like hyperlinks */
.custom-trix a,
trix-editor a,
.trix-content a,
.page-section a,
.page-content a,
.website-builder-page a,
.section-content a,
div[data-section-type] a,
.prose a {
  color: #1A5F7A !important; /* Brand primary color */
  text-decoration: underline !important;
  cursor: pointer !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.custom-trix a:hover,
trix-editor a:hover,
.trix-content a:hover,
.page-section a:hover,
.page-content a:hover,
.website-builder-page a:hover,
.section-content a:hover,
div[data-section-type] a:hover,
.prose a:hover {
  color: #FF8C42 !important; /* Brand accent color on hover */
  text-decoration-color: #FF8C42 !important;
}

.custom-trix a:visited,
trix-editor a:visited,
.trix-content a:visited,
.page-section a:visited,
.page-content a:visited,
.website-builder-page a:visited,
.section-content a:visited,
div[data-section-type] a:visited,
.prose a:visited {
  color: #57C5B6 !important; /* Brand secondary color for visited links */
}

.custom-trix a:visited:hover,
trix-editor a:visited:hover,
.trix-content a:visited:hover,
.page-section a:visited:hover,
.page-content a:visited:hover,
.website-builder-page a:visited:hover,
.section-content a:visited:hover,
div[data-section-type] a:visited:hover,
.prose a:visited:hover {
  color: #FF8C42 !important; /* Accent color on hover even for visited */
}

/* --- Page Section Animation Styles --- */

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 1s ease-out both;
}

.animate-slideUp {
  animation: slideUp 0.8s ease-out both;
}

.animate-slideDown {
  animation: slideDown 0.8s ease-out both;
}

.animate-zoomIn {
  animation: zoomIn 0.6s ease-out both;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Intersection Observer animations for better performance */
.page-section {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Pre-animation state for sections with animations */
.page-section.animate-fadeIn,
.page-section.animate-slideUp,
.page-section.animate-slideDown,
.page-section.animate-zoomIn {
  opacity: 0;
}

.page-section.animate-slideUp {
  transform: translateY(60px);
}

.page-section.animate-slideDown {
  transform: translateY(-60px);
}

.page-section.animate-zoomIn {
  transform: scale(0.8);
}

/* Triggered animation state */
.page-section.animate-fadeIn.in-view,
.page-section.animate-slideUp.in-view,
.page-section.animate-slideDown.in-view,
.page-section.animate-zoomIn.in-view {
  opacity: 1;
  transform: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate-fadeIn,
  .animate-slideUp,
  .animate-slideDown,
  .animate-zoomIn {
    animation: none !important;
  }
  
  .page-section.animate-fadeIn,
  .page-section.animate-slideUp,
  .page-section.animate-slideDown,
  .page-section.animate-zoomIn {
    opacity: 1 !important;
    transform: none !important;
  }
}