.progress {
  height: 4px;
}
.progress-bar {
  width: 0%;
}
.editor-panel {
  height: 75vh;
  overflow-y: auto;
  padding: 1rem;
  padding-top: 0;
}

.preview-panel {
  height: 75vh;
  overflow-y: auto;
}
.restaurant-title-container-clean {
  color: #3b3b3b;
  padding: 5px 15px;
  display: flex;
  flex-direction: column;
  border: none;
  background-color: transparent;
}

.restaurant-title-container .d-flex {
  width: 100%;
}

.restaurant-title-container h1 {
  width: 100%;
  text-align: center;
}

/* Optional: Ensure header/footer text labels are also centered for consistency */
.restaurant-title-container h5,
.restaurant-title-container p {
  text-align: center;
}
/* Restaurant limit progress bar styling */
.restaurant-limit-progress {
  height: 8px;
  border-radius: 4px;
  background-color: rgba(76, 175, 80, 0.1);
}

/* Ensure consistent button styling with the rest of the application */
.btn-primary:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #6c757d;
  opacity: 1;
}
/* Ensure consistent text capitalization for all plan buttons */
.subscription-management .btn-primary,
.subscription-management .free-plan-btn {
  text-transform: uppercase;
  font-weight: bold;
}

.subscription-management .btn:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #6c757d;
  opacity: 1;
}
/* Consistent button styling for subscription plans */
.subscription-management .btn {
  padding: 0.5rem 1rem;
  font-weight: 500;
  height: 38px; /* Fixed height for all buttons */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Style for the Select Free Plan button - more subdued */
.subscription-management .free-plan-btn {
  background-color: #6c757d; /* Secondary gray color instead of warning */
  border-color: #6c757d;
  color: white;
}

.subscription-management .free-plan-btn:hover {
  background-color: #5a6268;
  border-color: #5a6268;
}

/* Primary button for upgrades */
.subscription-management .plan-select-btn {
  background-color: #4caf50; /* Your primary green */
  border-color: #4caf50;
}

/* Consistent disabled button */
.subscription-management .btn:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #6c757d;
  opacity: 1; /* Ensure full opacity even when disabled */
}
/* Fix icon alignment with text in feature list */
.subscription-management .feature-content i {
  margin-top: 0.1rem; /* Move icon up slightly */
  margin-right: 0.25rem; /* Add a bit more space between icon and text */
  line-height: 1; /* Ensure consistent line height */
  display: inline-flex; /* Better alignment */
  align-items: center; /* Center vertically */
}

.subscription-management .feature-content {
  display: flex;
  align-items: flex-start; /* Align at the top */
}

.subscription-management .feature-content span {
  line-height: 1.4; /* Slightly tighter line height for better alignment */
}
/* Add this to your CSS to create a spacer that matches the badge height */
.subscription-management .badge-spacer {
  display: block;
  height: 24px; /* Approximate height of the badge */
  margin-top: 0.5rem; /* Match the badge's top margin */
  visibility: hidden; /* Hide it but keep the space */
}
/* Strict overrides for subscription management page */
.dashboard-layout
  .col-md-9.ms-sm-auto.col-lg-10
  .subscription-management
  .row.justify-content-center {
  margin-right: 0;
  margin-left: 0;
  width: 100%;
}

/* Desktop layout (lg screens and up) */
@media (min-width: 992px) {
  .dashboard-layout
    .col-md-9.ms-sm-auto.col-lg-10
    .subscription-management
    .col-lg-4 {
    width: 31%;
    max-width: 31%;
    margin-right: 1%;
    margin-left: 1%;
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* Tablet layout (md screens) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .dashboard-layout
    .col-md-9.ms-sm-auto.col-lg-10
    .subscription-management
    .col-md-4 {
    width: 47%;
    max-width: 47%;
    margin-right: 1.5%;
    margin-left: 1.5%;
  }
}

/* Mobile layout (stack vertically) */
@media (max-width: 767.98px) {
  .dashboard-layout
    .col-md-9.ms-sm-auto.col-lg-10
    .subscription-management
    .col-lg-4,
  .dashboard-layout
    .col-md-9.ms-sm-auto.col-lg-10
    .subscription-management
    .col-md-4 {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  /* Optimize card height for mobile */
  .subscription-management .plan-card {
    min-height: auto;
  }
}

/* Compact card styling for subscription page */
.subscription-management .plan-card .card-body {
  padding: 1rem 0.75rem;
}

.subscription-management .feature-content span {
  font-size: 0.9rem;
}

.subscription-management .pricing {
  margin: 0.75rem 0;
}

.subscription-management .feature-list {
  margin-bottom: 0.5rem;
}

.subscription-management h3.card-title {
  font-size: 1.5rem;
}

/* Control container overflow */
.subscription-management .plan-container {
  max-width: 100%;
  overflow: visible; /* Changed from hidden to visible */
  padding-top: 5px; /* Add padding to accommodate the transform */
}
/* More compact plan cards specifically for subscription management */
.subscription-management .plan-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 400px;
}

.subscription-management .card-body {
  padding: 1.25rem 1rem; /* Reduced padding */
}

/* Ensure proper spacing between per month and trial period badge */
.subscription-management .pricing {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscription-management .pricing small {
  display: block;
  margin-bottom: 0.5rem; /* Space before trial badge */
}

.subscription-management .badge {
  margin-top: 0.5rem; /* Add space after "per month" */
}

/* Fix column width issues */
.subscription-management .col-lg-4 {
  padding-left: 8px;
  padding-right: 8px;
}

/* Ensure feature list is compact and aligned properly */
.subscription-management .feature-list {
  padding-left: 0;
}

.subscription-management .feature-list li {
  padding: 6px 0;
  display: flex;
  justify-content: center;
}

.subscription-management .feature-content {
  width: auto;
  max-width: 80%;
}

/* Current Restaurant Selector Styling */
.current-restaurant-selector .btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  transition: all 0.2s;
}

.current-restaurant-selector .btn-outline-light:hover,
.current-restaurant-selector .btn-outline-light:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.restaurant-name {
  padding: 10px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

/* Restaurant Management Section */
#restaurantCollapse .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Restaurant count indicator styling */
.restaurant-count {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-left: 5px;
}

/* Restaurant dropdown styling */
#restaurantDropdown {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

/* Restaurant dropdown items styling */
.current-restaurant-selector .dropdown-menu .dropdown-item.active {
  background-color: var(--bs-primary);
}

.welcome-container {
  border-left: 4px solid #ff6f61; /* Secondary color */
}

.icon-bg {
  width: 48px;
  height: 48px;
  background-color: rgba(
    76,
    175,
    80,
    0.1
  ); /* Light green based on accent color */
}

.menu-stats .bi {
  font-size: 1.5rem;
}
/* Current Plan Badge in Sidebar */
.current-plan-badge-sidebar {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
}

.current-plan-badge-sidebar:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.current-plan-badge-sidebar .badge {
  font-weight: 600;
  padding: 5px 10px;
  font-size: 0.8rem;
}

/* Badge color customization */
.current-plan-badge-sidebar .badge.bg-primary {
  background-color: #4caf50 !important; /* Green for Basic plan */
}

.current-plan-badge-sidebar .badge.bg-warning {
  background-color: #ff9800 !important; /* Orange for Premium plan */
}

.current-plan-badge-sidebar .badge.bg-secondary {
  background-color: #6c757d !important; /* Grey for Free plan */
}

/* Small upgrade text styling */
.current-plan-badge-sidebar small {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.current-plan-badge-sidebar:hover small {
  opacity: 1;
}

.current-plan-badge-sidebar .bi-stars {
  color: #ffc107; /* Gold color for stars icon */
}

.current-plan-badge-sidebar .bi-arrow-up-circle {
  margin-left: 2px;
}
/* Active navigation item styling */
#sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
}

#sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #ff6f61; /* Secondary color */
}

/* Parent section with active child */
#sidebar .nav-link.parent-active {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ensure collapse toggles don't get the active highlight unless they have parent-active */
#sidebar [data-bs-toggle="collapse"]:not(.parent-active).active {
  background-color: transparent !important;
}
#sidebar [data-bs-toggle="collapse"]:not(.parent-active).active::before {
  display: none !important;
}

/* Dropdown chevron rotation */
#sidebar [data-bs-toggle="collapse"] .bi-chevron-down {
  transition: transform 0.3s ease;
}

#sidebar [data-bs-toggle="collapse"][aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}
#sidebar .position-sticky {
  padding-bottom: 10px;
}
/* Default body with no top padding */
body {
  font-family: "Poppins", sans-serif;
  padding-top: 0;
}

/* Class for public pages with fixed navbar */
body.has-navbar-fixed-top {
  padding-top: 70px; /* For the fixed navbar */
}

/* Adjusting mobile padding for public pages */
@media (max-width: 767.98px) {
  body.has-navbar-fixed-top {
    padding-top: 60px; /* Slightly less padding on mobile */
  }
}

/* Dashboard layout improvements */
body.dashboard-layout .col-md-9.ms-sm-auto.col-lg-10 {
  padding-left: 0 !important; /* Remove left padding on main content */
  padding-right: 0 !important; /* Remove right padding on main content */
  margin-top: 0 !important; /* Remove top margin */
  padding-top: 0 !important; /* Remove top padding */
}

/* Fix for mobile sidebar spacing */
@media (max-width: 767.98px) {
  body.dashboard-layout .col-md-9.ms-sm-auto.col-lg-10 {
    margin-left: 0 !important; /* Remove margin on mobile */
    padding-left: 1rem !important; /* Add some padding on mobile */
    padding-right: 1rem !important; /* Add some padding on mobile */
  }

  /* Mobile navbar spacing */
  body.dashboard-layout .d-md-none.fixed-top {
    padding-top: 0;
  }

  /* Mobile dashboard content spacing */
  @media (max-width: 767.98px) {
    body.dashboard-layout .dashboard-content {
      margin-top: 3.5rem !important; /* Space for mobile navbar */
    }
  }

  /* Mobile content spacing */
  body.dashboard-layout .mt-5.pt-3 {
    margin-top: 4rem !important; /* Adjust spacing below mobile navbar */
  }

  /* Message container spacing adjustments */
  body.dashboard-layout #message-container {
    margin-top: 0;
    padding-top: 1rem;
  }
}

/* Dashboard content area styling */
body.dashboard-layout .dashboard-content {
  padding-top: 0;
  margin-top: 0;
}

/* Dashboard sidebar improvements */
body.dashboard-layout #sidebar {
  padding-top: 0;
  height: 100vh;
  top: 0;
  padding-bottom: 10px;
}

/* Ensure content fully expands in dashboard */
body.dashboard-layout .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Adjusting scrollspy behavior */
html {
  scroll-behavior: smooth;
}

/* Adjust scroll padding for public pages only */
body.has-navbar-fixed-top {
  scroll-padding-top: 80px;
}

@media (max-width: 767.98px) {
  body.has-navbar-fixed-top {
    scroll-padding-top: 70px;
  }
}
.workflow-step {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background-color: #f8f9fa;
  height: 100%;
}

.workflow-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.workflow-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.workflow-icon i {
  background-color: rgba(76, 175, 80, 0.1); /* Accent color with transparency */
  padding: 15px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.workflow-step:hover .workflow-icon i {
  background-color: rgba(76, 175, 80, 0.2);
}
.btn:hover {
  text-decoration: none !important;
}

/* Keep consistent hover behavior for navigation links */
.navbar .nav-link:hover {
  text-decoration: none;
}

/* Remove underline from buttons in the pricing section */
.pricing-table .btn:hover {
  text-decoration: none;
}

/* Hero Section Styles */
#home {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

/* Add subtle background pattern */
#home::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(76, 175, 80, 0.05) 0%,
      rgba(76, 175, 80, 0) 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 111, 97, 0.05) 0%,
      rgba(255, 111, 97, 0) 50%
    );
  z-index: -1;
}

#home h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  display: inline-block; /* Prevents line breaks between spans */
}
h1 .accent-text {
  color: #ff6f61 !important;
}
#home h1 span {
  display: inline;
}
#home .lead {
  font-size: 1.2rem;
  font-weight: 400;
  color: #6c757d;
}

/* Hero Background Pattern */
.hero-bg-pattern {
  width: 180px;
  height: 180px;
  background-color: rgba(255, 111, 97, 0.1);
  border-radius: 100px 0;
}

/* Menu Preview Elements */
.menu-preview-border {
  border: 1px dashed #dee2e6;
}

.menu-header {
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* QR Code Elements */
.qr-code-overlay {
  bottom: -30px;
  right: 20px;
  transform: rotate(8deg);
}

.qr-code-placeholder {
  width: 100px;
  height: 100px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comienza-ahora-btn,
.view-pricing-btn {
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease, background-color 0.3s ease;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  line-height: 1.5;
  font-weight: 500;
}

.comienza-ahora-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.view-pricing-btn {
  border: 2px solid;
  border-color: #ff6f61;
  color: #ff6f61;
  background-color: transparent;
}

.view-pricing-btn:hover {
  background-color: rgba(255, 111, 97, 0.1);
  border-color: #ff6f61;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  color: #ff6f61;
}

/* Device mockup styles */
.rounded-4 {
  border-radius: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  #home {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
  }

  #home .lead {
    font-size: 1.1rem;
  }

  #home .d-flex {
    justify-content: center;
  }

  .text-start {
    text-align: center !important;
  }
}

@media (max-width: 767.98px) {
  #home h1 {
    font-size: 2rem;
    display: block; /* Allow wrapping on mobile */
  }

  #home h1 span {
    display: inline;
  }
}

/* Fixed Navigation and ScrollSpy Support */

/* Make the navbar fixed at the top */
#mainNav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  transition: padding-top 0.3s, padding-bottom 0.3s;
}

/* ScrollSpy active states for nav items */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  position: relative;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Ensures anchored content isn't hidden behind the navbar */
}

/* Add a subtle shadow to the fixed navbar */
#mainNav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  body {
    padding-top: 60px; /* Slightly less padding on mobile */
  }

  html {
    scroll-padding-top: 70px; /* Adjust for smaller navbar on mobile */
  }
}

/* Active state for navbar links */
.navbar .nav-link.active {
  position: relative;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

/* Register button styling in navbar */
.navbar .nav-item .btn.secondary-bg {
  font-size: 1rem; /* Match text size with other nav links */
  line-height: 1.5; /* Match line height with other nav links */
  font-weight: 500;
  margin: 0;
  transition: all 0.3s ease;
}

.navbar .nav-item .btn.secondary-bg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure proper vertical alignment */
.navbar .nav-item {
  display: flex;
  align-items: center;
}

/* Add these styles to your styles.css file */

/* Pricing Table Styles */
.pricing-table {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.pricing-table thead th {
  background-color: #f8f9fa;
  vertical-align: middle;
  padding: 1.5rem;
}

.pricing-table .premium-column {
  background-color: rgba(13, 110, 253, 0.05);
  position: relative;
}

/* Remove price tag styling since we're now using a row */

.pricing-table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

/* Style for the Get Started buttons */
.btn-signup {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-signup:hover {
  transform: translateY(-2px);
  background-color: #e65c54 !important;
}

.pricing-table .feature-column {
  font-weight: 500;
}

/* Add some spacing for feature icons */
.pricing-table td i.bi:first-child {
  color: #6c757d;
}

.pricing-table .btn {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1.5rem;
}

/* FAQ Section */
#faqAccordion .accordion-button:not(.collapsed) {
  color: white;
  background-color: #4caf50;
  box-shadow: none;
}
#faqAccordion .accordion-button:not(.collapsed):hover {
  background-color: #45a049;
  /* Darker green on hover when expanded */
  color: white;
}

#faqAccordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

#faqAccordion .accordion-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

#faqAccordion .accordion-body {
  background-color: #ffffff;
  color: #343a40;
  padding: 15px;
  border: 1px solid #ccc;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Section Padding */
section {
  padding: 5rem 0;
}

/* Visual divider between sections */
section:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .pricing-table thead th,
  .pricing-table tbody td {
    padding: 0.75rem;
  }
}

.processing {
  opacity: 0.7;
  pointer-events: none;
}
#selected-plan-details {
  display: none;
}
#item-image-preview {
  max-width: 200px;
  max-height: 200px;
}
.badge-status {
  padding: 0.5em 0.75em;
  font-weight: 500;
  font-size: 0.85em;
}

.badge-status-completed {
  background-color: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #a8e6b6;
}

.badge-status-refunded {
  background-color: #fff3e0;
  color: #f57c00;
  border: 1px solid #ffcc80;
}

.badge-status-pending {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
}

.badge-status-cancelled {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.badge-type-payment {
  background-color: #e8eaf6;
  color: #3f51b5;
  border: 1px solid #9fa8da;
}

.badge-type-refund {
  background-color: #fce4ec;
  color: #c2185b;
  border: 1px solid #f48fb1;
}

.payment-amount.positive {
  color: #28a745;
}

.payment-amount.negative {
  color: #dc3545;
}

#qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.plan-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: 400px;
  /* Remove any extra width constraints that might be causing issues */
}

.plan-card .card-body {
  padding: 1.75rem 1.5rem; /* Reduced padding */
  display: flex;
  flex-direction: column;
}

.plan-card .card-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing small {
  display: block;
  margin-bottom: 8px; /* Add space before trial period badge */
}

/* Badge spacing */
.trial-period-badge {
  margin-top: 8px; /* Additional space after "per month" */
  display: block; /* Ensure it's on its own line */
}
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 10; /* Add z-index to ensure hover card appears above others */
  position: relative; /* Ensure z-index works properly */
}

.plan-card.selected {
  border: 2px solid #ff6f61;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .col-lg-4 {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Force narrower cards */
  .plan-card {
    max-width: 100%;
  }
}

.feature-content {
  display: flex;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.feature-list li {
  padding: 6px 0; /* Reduced vertical padding */
  display: flex;
  justify-content: flex-start;
  padding-left: 0; /* Remove left padding that was causing alignment issues */
}
.feature-content i {
  color: #28a745;
  margin-right: 4px;
  margin-top: 3px;
  flex-shrink: 0;
}
.feature-content span {
  flex: 1;
}
#paypal-button-container {
  max-width: 500px;
  margin: 30px auto;
}

.current-plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #28a745;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
}

/* Handle mobile QR code size */
@media (max-width: 768px) {
  #qrcode img,
  #qrcode canvas {
    max-width: 200px;
    height: auto !important;
  }
}

/* Fix for Safari flex gap */
.modal-body {
  padding: 1rem;
}

/* Ensure modal doesn't overflow on small screens */
.modal-dialog {
  margin: 0.5rem;
  max-width: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog {
    margin: 1.75rem auto;
  }
}
@media (max-width: 991.98px) {
  .current-restaurant-selector .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    margin-top: 0.5rem;
  }
}

/* Optional: if you need to adjust spacing between language selector and hamburger */
.navbar-toggler.ms-2 {
  margin-left: 0.5rem !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
  .menu-item-image {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  #create-section-btn,
  #edit-menu-info-btn,
  #change-colors-btn,
  #save-all-changes {
    width: 100%;
  }

  .accordion-body > .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .accordion-body > .d-flex .h5 {
    margin-bottom: 0.5rem;
  }

  .accordion-body > .d-flex .btn-group {
    align-self: flex-end;
  }

  .btn-group .btn {
    flex: 1 1 auto;
  }

  .list-group-item {
    padding: 1rem;
  }

  .new-item-container {
    width: 100%;
  }

  .new-item-container .create-item-btn {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .accordion-body .d-flex.justify-content-between {
    justify-content: space-between !important;
  }

  .accordion-body .d-flex.justify-content-center.justify-content-md-end {
    justify-content: flex-end !important;
  }

  .btn-group {
    display: flex;
    justify-content: flex-end;
  }

  .new-item-container {
    width: auto;
  }
  .d-flex.flex-column.flex-md-row {
    width: auto;
  }
}

.flag-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-right: 0.3em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.flag-icon-us {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Ccircle fill='%23f0f0f0' cx='256' cy='256' r='256'/%3E%3Cg fill='%23d80027'%3E%3Cpath d='M244.87 256H512c0-23.106-3.08-45.49-8.819-66.783H244.87V256zM244.87 122.435h229.556c-15.671-25.572-35.708-48.175-59.07-66.783H244.87v66.783zM256 512c60.249 0 115.626-20.824 159.356-55.652H96.644C140.374 491.176 195.751 512 256 512zM37.574 389.565h436.852c12.581-20.529 22.338-42.969 28.755-66.783H8.819c6.417 23.814 16.174 46.254 28.755 66.783z'/%3E%3C/g%3E%3Cpath fill='%232e52b2' d='M118.584 39.978h23.329l-21.7 15.765 8.289 25.509-21.699-15.765-21.699 15.765 7.16-22.037C73.158 75.13 56.412 93.776 42.612 114.552h7.475l-13.813 10.035c-2.152 3.59-4.216 7.237-6.194 10.938l6.596 20.301-12.306-8.941c-3.059 6.481-5.857 13.108-8.372 19.873l7.267 22.368h26.822l-21.7 15.765 8.289 25.509-21.699-15.765-12.998 9.444C0.678 234.537 0 245.189 0 256h256v-256h-137.416z'/%3E%3Cg fill='%23f0f0f0'%3E%3Cpath d='M46.1 191.57L55.5 212.1 78.1 212.1 59.9 224.8 69.3 245.3 51.1 232.6 32.9 245.3 42.3 224.8 24.1 212.1 46.7 212.1z'/%3E%3Cpath d='M101.6 191.57L111 212.1 133.6 212.1 115.4 224.8 124.8 245.3 106.6 232.6 88.4 245.3 97.8 224.8 79.6 212.1 102.2 212.1z'/%3E%3Cpath d='M157.1 191.57L166.5 212.1 189.1 212.1 170.9 224.8 180.3 245.3 162.1 232.6 143.9 245.3 153.3 224.8 135.1 212.1 157.7 212.1z'/%3E%3Cpath d='M212.6 191.57L222 212.1 244.6 212.1 226.4 224.8 235.8 245.3 217.6 232.6 199.4 245.3 208.8 224.8 190.6 212.1 213.2 212.1z'/%3E%3Cpath d='M46.1 132.87L55.5 153.4 78.1 153.4 59.9 166.1 69.3 186.6 51.1 173.9 32.9 186.6 42.3 166.1 24.1 153.4 46.7 153.4z'/%3E%3Cpath d='M101.6 132.87L111 153.4 133.6 153.4 115.4 166.1 124.8 186.6 106.6 173.9 88.4 186.6 97.8 166.1 79.6 153.4 102.2 153.4z'/%3E%3Cpath d='M157.1 132.87L166.5 153.4 189.1 153.4 170.9 166.1 180.3 186.6 162.1 173.9 143.9 186.6 153.3 166.1 135.1 153.4 157.7 153.4z'/%3E%3Cpath d='M212.6 132.87L222 153.4 244.6 153.4 226.4 166.1 235.8 186.6 217.6 173.9 199.4 186.6 208.8 166.1 190.6 153.4 213.2 153.4z'/%3E%3Cpath d='M46.1 74.169L55.5 94.699 78.1 94.699 59.9 107.399 69.3 127.899 51.1 115.199 32.9 127.899 42.3 107.399 24.1 94.699 46.7 94.699z'/%3E%3Cpath d='M101.6 74.169L111 94.699 133.6 94.699 115.4 107.399 124.8 127.899 106.6 115.199 88.4 127.899 97.8 107.399 79.6 94.699 102.2 94.699z'/%3E%3Cpath d='M157.1 74.169L166.5 94.699 189.1 94.699 170.9 107.399 180.3 127.899 162.1 115.199 143.9 127.899 153.3 107.399 135.1 94.699 157.7 94.699z'/%3E%3Cpath d='M212.6 74.169L222 94.699 244.6 94.699 226.4 107.399 235.8 127.899 217.6 115.199 199.4 127.899 208.8 107.399 190.6 94.699 213.2 94.699z'/%3E%3C/g%3E%3C/svg%3E");
}

.flag-icon-es {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffda44' d='M0 256c0 31.314 5.633 61.31 15.923 89.043L256 367.304l240.077-22.261C506.367 317.31 512 287.314 512 256s-5.633-61.31-15.923-89.043L256 144.696 15.923 166.957C5.633 194.69 0 224.686 0 256z'/%3E%3Cpath fill='%23d80027' d='M496.077 166.957C459.906 69.473 366.071 0 256 0S52.094 69.473 15.923 166.957H496.077z'/%3E%3Cpath fill='%23d80027' d='M15.923 345.043C52.094 442.527 145.929 512 256 512s203.906-69.473 240.077-166.957H15.923z'/%3E%3C/svg%3E");
}

/* Color Scheme */
.primary-bg {
  background-color: #3b3b3b;
}

.primary-text {
  color: #3b3b3b;
}

.secondary-bg {
  background-color: #ff6f61;
}

.secondary-text {
  color: #ff6f61;
}

.accent-bg {
  background-color: #4caf50;
}

.accent-text {
  color: #4caf50;
}

.neutral-bg {
  background-color: #6c757d;
}

.neutral-text {
  color: #6c757d;
}

.warning-bg {
  background-color: #dc3545 !important;
}
/* Links */
a {
  color: #4caf50;
  text-decoration: none;
}

a:hover {
  color: #ff6f61;
  text-decoration: none !important;
}

/* Button Styles */
.btn.secondary-bg {
  background-color: #ff6f61;
  color: #ffffff;
}

.btn.secondary-bg:hover {
  background-color: #e65c54;
  color: #ffffff;
}

.btn-primary {
  background-color: #4caf50;
  border-color: #4caf50;
  color: #ffffff;
  padding: 12px 24px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #45a049;
  border-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  background-color: #388e3c !important;
  color: #ffffff !important;
  border-color: #2e7d32 !important;
}

/* Title Section Enhancements */
.restaurant-title-container {
  background-color: #f8f9fa;
  color: #3b3b3b;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
}

.editable-title {
  flex-grow: 1;
  color: #3b3b3b;
}

#open-title-modal {
  border: 1px solid #4caf50;
  color: #4caf50;
  background-color: transparent;
}

#open-title-modal:hover {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}

/* Button Alignment Adjustments for Create Section and Create Item */
.create-section-btn {
  display: block;
  width: auto;
  margin-left: auto;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* Specific Fixes for Button Overflow */
.items-section {
  overflow: visible;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.comienza-ahora-btn {
  font-size: 1.5rem;
  padding: 15px 30px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comienza-ahora-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.comienza-ahora-btn .bi {
  font-size: 1.8rem;
  vertical-align: middle;
}

.modal-content {
  border: none;
  border-radius: 8px;
}

.modal-header {
  background-color: #4caf50;
  /* Accent color */
  color: white;
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: none;
  padding: 15px 20px 20px;
}

.modal-footer .btn {
  padding: 10px 20px;
  border-radius: 5px;
}

.modal-footer .btn-primary {
  background-color: #4caf50;
  border-color: #4caf50;
}

.modal-footer .btn-primary:hover {
  background-color: #45a049;
  border-color: #45a049;
}

.modal-footer .btn-secondary {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #3b3b3b;
}

.modal-footer .btn-secondary:hover {
  background-color: #e2e6ea;
  border-color: #dae0e5;
  color: #3b3b3b;
}

.form-control-color {
  width: 100%;
  height: 38px;
  padding: 0.375rem;
}

/* Menu Item Styles */
.menu-item-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 150px;
}

.menu-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
  padding-right: 1rem;
}

.accordion-body .item-name {
  font-size: 1.1rem;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0;
}

.menu-item-image-container {
  width: 150px;
  height: 150px;
  overflow: hidden;
}

.menu-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive styles for menu items */
@media (max-width: 767.98px) {
  .menu-item-container {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }

  .menu-item-content {
    height: auto;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .menu-item-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
  }
}

.list-group-item {
  padding: 1rem;
}

.btn-group .btn {
  flex: 0 0 auto;
  padding: 0.375rem 0.75rem;
}

.btn-outline-secondary,
.btn-outline-danger {
  min-width: 38px;
}

.accordion-body > .d-flex {
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.accordion-body > .d-flex .h5 {
  margin-bottom: 0;
  margin-right: auto;
}

.accordion-body > .d-flex .btn-group {
  flex-shrink: 0;
}

/* Section header and item list spacing */
.accordion-body > .d-flex {
  margin-bottom: 1rem;
  /* Add space below the section header */
}

.items-section {
  margin-top: 1rem;
  /* Add space above the items list */
}

/* Responsive styles */
@media (max-width: 767.98px) {
  .accordion-body > .d-flex {
    margin-bottom: 0.75rem;
    /* Slightly less space on mobile */
  }

  .items-section {
    margin-top: 0.75rem;
    /* Slightly less space on mobile */
  }
}

/* Additional styles to ensure proper spacing */
.accordion-body {
  padding-bottom: 1rem;
  /* Ensure some padding at the bottom of the accordion body */
}

.list-group-item:first-child {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.list-group-item:last-child {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Complete Menu Accordion Styling */

/* Reset section header styling */
#menuAccordion .accordion-header {
  position: relative;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  cursor: grab;
  transition: background-color 0.15s ease-in-out;
  overflow: visible;
}

/* Container for section header content */
#menuAccordion .accordion-header .d-flex {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
  transition: background-color 0.15s ease-in-out;
  background-color: #f8f9fa;
}

/* Section header hover state */
#menuAccordion .accordion-header:hover .d-flex {
  background-color: #e9ecef;
}

/* Section header grip icon */
#menuAccordion .accordion-header .bi-grip-vertical {
  opacity: 0.6;
  cursor: grab;
  position: relative;
  color: #6c757d;
  font-size: 1rem;
  transition: opacity 0.15s ease-in-out;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  background-color: transparent; /* No background to match container */
}

/* Section header grip icon hover */
#menuAccordion .accordion-header:hover .bi-grip-vertical {
  opacity: 1;
  background-color: transparent; /* Keep transparent on hover */
}

/* Accordion button styling */
#menuAccordion .accordion-button {
  padding-right: 150px;
  padding-left: 0px;
  border: none;
  box-shadow: none;
  background-color: transparent; /* Let container handle background */
  transition: color 0.15s ease-in-out;
}

/* Accordion button expanded state */
#menuAccordion .accordion-button:not(.collapsed) {
  background-color: transparent; /* Let container handle background */
  color: #3b3b3b;
  box-shadow: none;
}

/* Accordion button collapsed state */
#menuAccordion .accordion-button.collapsed {
  background-color: transparent; /* Let container handle background */
}

/* Accordion button hover state */
#menuAccordion .accordion-button:hover,
#menuAccordion .accordion-button:not(.collapsed):hover {
  background-color: transparent; /* Let container handle background */
}

/* Caret positioning */
#menuAccordion .accordion-button {
  display: flex;
  justify-content: space-between;
  padding-right: 40px; /* Space for the caret */
}

#menuAccordion .accordion-button::after {
  position: static; /* Remove absolute positioning */
  margin-left: auto; /* Push to the right */
  transition: transform 0.15s ease-in-out;
}

/* Section control buttons */
#menuAccordion .section-controls .btn {
  padding: 0.25rem 0.4rem;
  margin-right: 3px;
  position: relative;
  cursor: pointer;
}

/* Item list styling */
#menuAccordion .list-group-item {
  display: flex;
  align-items: stretch;
  padding: 0;
  position: relative;
  height: 50px;
  cursor: grab;
  background-color: #f8f9fa;
  transition: background-color 0.15s ease-in-out;
}

/* Item list hover state */
#menuAccordion .list-group-item:hover {
  background-color: #e9ecef;
}

/* Item grip container */
#menuAccordion .list-group-item .grip-container {
  display: flex;
  align-items: center;
  height: 100%;
  background-color: transparent;
}

/* Item grip icon */
#menuAccordion .list-group-item .bi-grip-vertical {
  opacity: 0.7;
  color: #495057;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  background-color: transparent; /* Match parent background */
  transition: opacity 0.15s ease-in-out;
}

/* Item grip icon hover */
#menuAccordion .list-group-item:hover .bi-grip-vertical {
  opacity: 1;
  background-color: transparent; /* Keep transparent on hover */
}

/* Item name styling */
#menuAccordion .list-group-item .item-name {
  flex-grow: 1;
}

/* Item control buttons */
#menuAccordion .list-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 15px;
}

#menuAccordion .list-group-item .item-name {
  flex: 1;
  min-width: 0; /* Allows text truncation */
  margin-right: 10px; /* Space between text and buttons */
}

#menuAccordion .list-group-item .btn-group {
  position: static; /* Remove absolute positioning */
  display: flex;
  align-items: center;
  align-self: stretch; /* Takes full height of parent */
  margin-left: auto; /* Pushes to the right */
}

/* Drag states */
#menuAccordion .accordion-header.being-dragged,
#menuAccordion .list-group-item.being-dragged {
  cursor: grabbing;
  user-select: none;
}

/* Round corners for first and last items */
#menuAccordion .list-group-item:first-child {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

#menuAccordion .list-group-item:last-child {
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Section spacing */
.accordion-body > .d-flex {
  margin-bottom: 1rem;
}

.items-section {
  margin-top: 1rem;
}

/* Ensure proper padding */
.accordion-body {
  padding-bottom: 1rem;
}

/* Override btn-outline-primary to match green theme */
.btn-outline-primary {
  color: #4caf50 !important;
  border-color: #4caf50 !important;
}

.btn-outline-primary:hover {
  color: #ffffff !important;
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #4caf50 !important;
  background-color: transparent !important;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #ffffff !important;
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
}

.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

/* Layout and spacing adjustments */
.dashboard-content {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

.container-fluid {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  overflow-x: hidden;
}

.row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.col-lg-5,
.col-lg-7,
.col-xl-4,
.col-xl-8 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Button styling */
.editor-panel .btn-sm {
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
}

/* Item-specific menu positioning */
.list-group-item {
  position: relative;
  padding-right: 50px; /* Space for controls */
}

.list-group-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 15px;
}

.grip-container {
  margin-right: 12px; /* Space after grip icon */
  display: flex;
  align-items: center;
}

.items-section .item-name {
  flex: 1;
  min-width: 0; /* Allows text to truncate */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-controls {
  position: static; /* Remove absolute positioning */
  display: flex;
  align-items: center;
  margin-left: 10px; /* Space before controls */
}

/* Item appearance and behavior */
.list-group-item .item-name {
  padding-right: 15px;
  margin-right: auto;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
  max-width: calc(100% - 80px);
}

.list-group-item .grip-container {
  margin-right: 10px;
  cursor: grab;
}

/* Action Menu minimum width */
.section-action-menu,
.item-action-menu {
  min-width: 200px;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
  .section-controls .btn,
  .item-controls .btn {
    padding: 0.375rem 0.5rem;
    font-size: 1rem;
  }

  /* Prevent clipping at bottom of editor on mobile */
  .editor-panel {
    padding-bottom: 100px;
  }
}

.card,
.card-body,
.accordion,
.accordion-item,
.accordion-header,
.accordion-body,
.list-group-item {
  overflow: visible !important;
}

.dropdown-menu {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* Fix the accordion header's main container */
#menuAccordion .accordion-header .d-flex {
  display: flex !important;
  align-items: center !important;
}

/* Fix the wrapper for the accordion button */
#menuAccordion .accordion-title-wrapper {
  display: flex;
  flex: 1;
  min-width: 0;
}

/* Make the accordion button take necessary space for the name */
#menuAccordion .accordion-button {
  width: auto;
  padding-right: 15px; /* Reduced padding */
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hide the default Bootstrap caret */
#menuAccordion .accordion-button::after {
  display: none !important;
}

/* Section controls as a flex item */
#menuAccordion .section-controls {
  display: flex;
  flex-shrink: 0;
  margin-left: 5px;
  margin-right: 5px;
}

/* Custom caret that is clickable and integrated with the button */
#menuAccordion .custom-caret-btn {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

#menuAccordion .custom-caret-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease-in-out;
}

/* Rotate caret when NOT collapsed */
#menuAccordion
  .accordion-header:has(.accordion-button:not(.collapsed))
  .custom-caret-icon {
  transform: rotate(180deg);
}

/* Fix dropdown menus */
#menuAccordion .dropdown-menu {
  min-width: 200px;
}

/* Make sure nothing gets cut off */
#menuAccordion .accordion-item {
  overflow: visible;
}

/* Remove the caret from the dropdown toggle button */
#menuAccordion .section-controls .dropdown-toggle::after {
  display: none !important;
}

#menuAccordion .item-controls .dropdown-toggle::after {
  display: none !important;
}

.left-actions .dropdown-toggle::after {
  display: none !important;
}

/* Fixed Action Bar Styling - Revised */
.editor-action-bar {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  padding: 12px 15px;
  margin: -1rem -1rem 1rem -1rem; /* Counter the editor panel padding */
  display: flex;
  justify-content: space-between; /* Space between left and right button groups */
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Left side actions */
.editor-action-bar .left-actions {
  display: flex;
  align-items: center;
}

/* Right side actions */
.editor-action-bar .right-actions {
  display: flex;
  align-items: center;
}

/* Button spacing */
.editor-action-bar .btn {
  margin-right: 10px; /* Spacing between buttons in the same group */
}

.editor-action-bar .right-actions .btn:last-child {
  margin-right: 0; /* Remove margin from last button */
}

/* Primary action styling */
.editor-action-bar .btn-primary {
  font-weight: 500;
}

/* Ensure the accordion doesn't overlap with the fixed bar */
#menuAccordion {
  padding-top: 10px;
}

/* Green headers for editor and preview panels */
#designer .card-header {
  background-color: #4caf50 !important; /* Your primary green color */
  color: #ffffff !important; /* White text */
  padding: 1rem; /* Slightly more padding */
  border-bottom: none; /* Remove the default border */
}

#designer .card-header h5 {
  font-weight: 500; /* Medium weight for better readability on colored background */
  margin-bottom: 0;
}

#designer /* Optional: add subtle shadow for depth */
.card-header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style tab navigation with a dark blue color scheme */
#colorTabs .nav-link {
  color: rgba(47, 73, 94, 0.7); /* Muted navy for inactive tabs */
  border-color: transparent;
  transition: all 0.2s ease;
}

/* Hover state for inactive tabs */
#colorTabs .nav-link:hover,
#colorTabs .nav-link:focus {
  color: #2f495e; /* Full navy on hover */
  border-color: rgba(47, 73, 94, 0.3);
  background-color: rgba(47, 73, 94, 0.05);
}

/* Active tab styling */
#colorTabs .nav-link.active {
  color: #2f495e; /* Navy text */
  border-color: #2f495e #2f495e #fff; /* Navy border except bottom */
  font-weight: 500; /* Slightly bolder */
  background-color: #fff; /* White background */
}

/* Bottom border on the entire tab container */
#colorTabs {
  border-bottom: 1px solid #2f495e;
}

/* Help modal styling */
#helpModal .modal-dialog {
  max-width: 800px;
}

#helpModal .help-section {
  height: 100%;
  padding: 10px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

#helpModal .help-section:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

#helpModal .feature-icon {
  text-align: center;
}

#helpModal .feature-icon i {
  font-size: 1rem; /* Smaller icon */
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background-color: rgba(76, 175, 80, 0.1);
  text-align: center;
  display: inline-block;
}

#helpModal .feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#helpModal .feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start; /* Change back to flex-start */
}

#helpModal .feature-list li:last-child {
  margin-bottom: 0;
}

#helpModal .feature-list i {
  flex-shrink: 0;
  position: relative;
}

#helpModal .feature-list li span {
  flex: 1; /* Allow the text to take up available space */
}

/* Make modal slightly larger */
@media (max-width: 767.98px) {
  #helpModal .help-section {
    margin-bottom: 15px;
  }
}

.header-with-icon {
  display: flex;
  align-items: center;
}

#helpModal .example-btn {
  pointer-events: none;
  cursor: default;
  padding: 0.12rem 0.25rem;
  font-size: 0.75rem;
  line-height: 1;
  height: 1.5rem;
  width: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#helpModal .example-btn i {
  font-size: 0.75rem;
}

#helpModal .header-with-icon {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the icon and text */
  width: 100%; /* Ensure it spans the full width */
}

/* Make sure the header text is visually balanced */
#helpModal .header-with-icon h5 {
  margin-bottom: 0;
  text-align: center; /* Center the text itself */
}

.item-hidden,
.section-hidden {
  border: 1px dashed #da5151 !important;
}

/* Cancel Subscription button styling */
.subscription-management .btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
}

.subscription-management .btn-outline-danger:hover {
  background-color: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Add spacing between the Current Plan button and Cancel button */
.subscription-management .selected .card-body .btn-outline-secondary {
  margin-bottom: 10px;
}

/* Make the modal header for downgrade/cancel more distinctive */
#downgradeModal .modal-header {
  background-color: #dc3545;
  color: white;
}

/* Style the warning alert in the cancel modal */
#downgradeModal .alert-warning {
  border-left: 4px solid #dc3545;
}

.menu-preview-image {
  max-height: 300px;
  object-fit: contain;
  width: auto;
}
.menu-icon {
  font-size: 2rem;
}

.preview-container {
  display: flex;
  justify-content: center;
}

/* Menu Upload Page Specific Styles */
.menu-upload-page .card {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 0.5rem;
}

.menu-upload-page .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem;
}

.menu-upload-page .card-body {
  padding: 1.5rem;
}

.menu-upload-page .card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem;
}

/* Preview containers styling */
.menu-upload-page .preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  transition: all 0.3s ease;
}

.menu-upload-page .menu-preview-image {
  object-fit: contain;
  max-height: 400px;
  width: auto;
  max-width: 100%;
  border-radius: 0.25rem;
}

/* PDF preview styling */
.menu-upload-page .pdf-preview-container {
  text-align: center;
  padding: 1.5rem;
}

.menu-upload-page .pdf-thumbnail {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  display: inline-block;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease-in-out;
}

.menu-upload-page .pdf-thumbnail:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.menu-upload-page .pdf-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Upload zone styling */
.menu-upload-page #upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  cursor: pointer;
}

.menu-upload-page #upload-zone:hover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.menu-upload-page #upload-zone i {
  font-size: 2.5rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.menu-upload-page #upload-zone p {
  margin-bottom: 1rem;
  color: #495057;
}

.menu-upload-page label.btn-outline-primary {
  color: #4caf50;
  border-color: #4caf50;
  background-color: transparent;
  transition: all 0.3s ease;
}

.menu-upload-page label.btn-outline-primary:hover {
  color: #fff;
  background-color: #4caf50;
  border-color: #4caf50;
}

/* Reset button styling */
.menu-upload-page #reset-new-btn {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  transition: all 0.3s ease;
}

.menu-upload-page #reset-new-btn:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
  color: #495057;
}

/* Save button styling */
.menu-upload-page .btn-primary {
  background-color: #4caf50;
  border-color: #4caf50;
  transition: all 0.3s ease;
}

.menu-upload-page .btn-primary:hover {
  background-color: #45a049;
  border-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .menu-upload-page .border-end {
    border-right: none !important;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .menu-upload-page .card-footer .border-end {
    border-bottom: none;
    margin-bottom: 0.5rem;
  }

  .menu-upload-page .card-header h5 {
    font-size: 1.1rem;
  }

  .menu-upload-page #upload-zone {
    padding: 1.5rem;
  }

  .menu-upload-page #upload-zone i {
    font-size: 2rem;
  }
}

/* File input customization */
.menu-upload-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Menu icon for PDFs */
.menu-upload-page .menu-icon {
  font-size: 2rem;
  color: #dc3545;
}

/* Empty state styling */
.menu-upload-page .text-muted {
  color: #6c757d !important;
}

/* View buttons styling */
.menu-upload-page .btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
  background-color: transparent;
  transition: all 0.3s ease;
}

.menu-upload-page .btn-outline-secondary:hover {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

/* Animation for hover effects */
.menu-upload-page .card,
.menu-upload-page .btn,
.menu-upload-page #upload-zone,
.menu-upload-page .pdf-thumbnail {
  transition: all 0.3s ease;
}

/* Remove any previous sidebar positioning CSS you added, and add these rules */

/* Fixed sidebar positioning */
@media (min-width: 768px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    width: 25%; /* For md screens */
  }

  /* Adjust main content to account for fixed sidebar */
  .dashboard-content {
    margin-left: 25%; /* For md screens */
  }
}

@media (min-width: 992px) {
  #sidebar {
    width: 16.66666667%; /* For lg screens - matches col-lg-2 */
  }

  /* Adjust for larger screens */
  .dashboard-content {
    margin-left: 16.66666667%; /* For lg screens */
  }
}

/* Make sure inner sidebar elements don't interfere */
#sidebar .position-sticky {
  position: static !important; /* Override the position-sticky */
  height: auto !important;
}

/* Mobile sidebar handling */
@media (max-width: 767.98px) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
  }
}

/* ========================================
   Stepped Restaurant Modal Enhancements
   ======================================== */

/* Step Progress Container */
.stepped-modal .nav-pills {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
}

/* Progress Bar Behind Steps - REMOVED to prevent line across tabs */

/* Dynamic Progress Bar - REMOVED to prevent line across tabs */

/* Step Button Base Styling */
.stepped-modal .nav-link {
  border: none;
  background: transparent;
  color: #6c757d;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  position: relative;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
}

/* Step Number Styling */
.stepped-modal .step-number {
  background: #dee2e6;
  color: #6c757d;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

/* Step Title */
.stepped-modal .step-title {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0.8;
}

/* Active Step */
.stepped-modal .nav-link.active {
  background: rgba(255, 111, 97, 0.1);
  color: #ff6f61;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.2);
}

.stepped-modal .nav-link.active .step-number {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
  transform: scale(1.1);
}

.stepped-modal .nav-link.active .step-title {
  color: #ff6f61;
  font-weight: 600;
  opacity: 1;
}

/* Completed Steps */
.stepped-modal .nav-link.completed {
  background: rgba(255, 111, 97, 0.05);
  color: #ff6f61;
  transform: translateY(-2px); /* Same as active */
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.15); /* Slightly lighter shadow */
}

.stepped-modal .nav-link.completed .step-number {
  background: #ff6f61;
  color: white;
  border-color: #ff6f61;
  transform: scale(1.1); /* Same scale as active */
  font-size: 0; /* Hide the number text */
}

.stepped-modal .nav-link.completed .step-number::before {
  content: "✓";
  font-size: 0.7rem;
  font-weight: bold;
}

.stepped-modal .nav-link.completed .step-title {
  color: #ff6f61;
  opacity: 0.9;
}

/* Hover Effects for Clickable Steps */
.stepped-modal .nav-link:not(.disabled):hover {
  background: rgba(255, 111, 97, 0.08);
  color: #ff6f61;
  transform: translateY(-1px);
}

.stepped-modal .nav-link:not(.disabled):hover .step-number {
  border-color: #ff6f61;
  background: rgba(255, 111, 97, 0.1);
  color: #ff6f61;
}

/* Disabled Steps */
.stepped-modal .nav-link.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: translateY(-1px); /* Slight elevation for consistency */
}

.stepped-modal .nav-link.disabled:hover {
  background: transparent;
  transform: none;
}

/* Step Content Cards */
.stepped-modal .tab-pane .card {
  border: none;
  background: #f8f9fa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stepped-modal .tab-pane .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stepped-modal .card-title {
  color: #4caf50;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.stepped-modal .card-title i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  color: #4caf50;
}

/* Form Enhancements */
.stepped-modal .form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.stepped-modal .form-control {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  background-color: white;
}

.stepped-modal .form-control:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
  background-color: white;
}

/* Valid Input Styling */
.stepped-modal .form-control.is-valid {
  border-color: #4caf50;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%234caf50' d='m2.3 6.73.94-.94 2.94 2.94L9.1 1.77l.94.94L6.07 7.67z'/%3e%3c/svg%3e");
}

/* Invalid Input Styling */
.stepped-modal .form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='%23dc3545' d='M1 1l10 10M11 1L1 11'/%3e%3c/svg%3e");
}

/* Review Step Styling */
.stepped-modal #step3 .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.stepped-modal #step3 .fw-bold {
  color: #495057;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1rem;
}

/* Navigation Buttons */
.stepped-modal .modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
}

/* Step Transition Animations */
.stepped-modal .tab-pane {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stepped-modal .tab-pane:not(.show) {
  opacity: 0;
  transform: translateX(20px);
}

.stepped-modal .tab-pane.show {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp Section Styling */

.stepped-modal #whatsapp-container {
  opacity: 1;
  max-height: 200px;
  padding-top: 1rem;
  margin-top: 1rem;
}

.stepped-modal #whatsapp-container h6 {
  color: #4caf50;
  font-weight: 600;
}

.stepped-modal #whatsapp-container .bi-whatsapp {
  color: #4caf50;
}

/* Alert Styling */
.stepped-modal .alert {
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stepped-modal .alert-success {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1) 0%,
    rgba(69, 160, 73, 0.1) 100%
  );
  color: #4caf50;
  border-left: 4px solid #4caf50;
}

.stepped-modal .alert-info {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1) 0%,
    rgba(11, 94, 215, 0.1) 100%
  );
  color: #0d6efd;
  border-left: 4px solid #0d6efd;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .stepped-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .stepped-modal .step-title {
    font-size: 0.6rem;
  }

  .stepped-modal .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .stepped-modal .nav-link {
    padding: 0.5rem 0.75rem;
    min-height: 50px;
  }

  .stepped-modal .card-title {
    font-size: 1rem;
  }

  .stepped-modal .modal-footer {
    padding: 0.75rem 1rem;
  }

  .stepped-modal .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
  .stepped-modal .step-title {
    display: none;
  }

  .stepped-modal .nav-link {
    min-height: 40px;
    padding: 0.5rem;
  }

  .stepped-modal .step-number {
    margin-bottom: 0;
  }
}

/* Loading States */
.stepped-modal .btn.loading {
  position: relative;
  color: transparent;
}

.stepped-modal .btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: stepped-modal-spin 0.8s linear infinite;
}

@keyframes stepped-modal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Validation Error Styling */
.stepped-modal .invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.stepped-modal .valid-feedback {
  display: block;
  color: #4caf50;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
.stepped-modal .nav-link.completed .step-number::before {
  content: "✓";
  font-size: 0.8rem;
  font-weight: bold;
}

.stepped-modal .nav-link.disabled .step-number {
  transform: scale(
    1.05
  ); /* Slightly smaller than active/completed but not flat */
}

/* Enhanced Upload Zone Styling - Scoped to Stepped Modal */
.stepped-modal .upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stepped-modal .upload-zone:hover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.05);
}

.stepped-modal .upload-zone.dragover {
  border-color: #4caf50;
  background-color: rgba(76, 175, 80, 0.1);
  transform: scale(1.02);
}

/* Preview Container Styling - Scoped to Stepped Modal */
.stepped-modal .preview-container {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

.stepped-modal .menu-preview-image {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stepped-modal .pdf-thumbnail {
  padding: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  display: inline-block;
  min-width: 150px;
}

.stepped-modal .pdf-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #6c757d;
}

/* Remove button positioning - Scoped to Stepped Modal */
.stepped-modal .position-absolute.top-0.end-0 {
  top: -8px !important;
  right: -8px !important;
}

/* File info styling - Scoped to Stepped Modal */
.stepped-modal #file-info,
.stepped-modal #pdf-file-info {
  font-style: italic;
  color: #6c757d;
}

/* Restaurant Modal File State Styles */
/* Restaurant Modal File State Styles */
#restaurantModal .file-state-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-left: 0.5rem;
  display: inline-block;
}

#restaurantModal .file-state-badge.current-file {
  background-color: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

#restaurantModal .file-state-badge.new-file {
  background-color: #e8f5e8;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Preview Container State Styling */
#restaurantModal #image-preview-container[data-file-state="current"],
#restaurantModal #pdf-preview-container[data-file-state="current"] {
  border: 2px solid #bbdefb;
  background-color: #fafafa;
}

#restaurantModal #image-preview-container[data-file-state="new"],
#restaurantModal #pdf-preview-container[data-file-state="new"] {
  border: 2px solid #c8e6c9;
  background-color: #fafafa;
}

/* Enhanced preview styling */
#restaurantModal #image-preview-container,
#restaurantModal #pdf-preview-container {
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

#restaurantModal #image-preview {
  border-radius: 0.375rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove button styling */
#restaurantModal #remove-file-btn,
#restaurantModal #remove-file-btn-pdf {
  transition: all 0.2s ease;
}

#restaurantModal #remove-file-btn:hover,
#restaurantModal #remove-file-btn-pdf:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Upload zone enhancement for better visual feedback */
#restaurantModal #upload-zone.dragover {
  background-color: #e3f2fd;
  border-color: #1976d2;
  transform: scale(1.02);
}

/* File info text styling */
#restaurantModal #file-info,
#restaurantModal #pdf-file-info {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Smooth transitions for state changes */
#restaurantModal .file-preview-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#restaurantModal .file-preview-transition.hiding {
  opacity: 0;
  transform: translateY(-10px);
}

#restaurantModal .file-preview-transition.showing {
  opacity: 1;
  transform: translateY(0);
}

#restaurantModal #review-file-image {
  transition: transform 0.2s ease;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #dee2e6;
}

#restaurantModal #review-file-image:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#restaurantModal #review-file-name {
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 0.25rem;
}

/* Help Modal Hover Effects */
#helpModal .step-item:hover .step-number .badge {
  background-color: #ff6f61 !important;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

#helpModal .step-item {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 1rem;
}

#helpModal .step-item:hover {
  background-color: rgba(255, 111, 97, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.15);
}

#helpModal .pro-tips:hover {
  background-color: rgba(255, 111, 97, 0.05) !important;
  transition: all 0.3s ease;
}

/* Fix navbar dropdown positioning */
.navbar .dropdown-menu {
  position: absolute !important;
  z-index: 1055 !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-top: 0 !important;
}

/* Right-aligned dropdowns */
.navbar .dropdown-menu.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
}

/* Ensure proper display */
.navbar .dropdown-menu.show {
  display: block !important;
}

/* Make sure navbar container doesn't clip dropdowns */
.navbar .container-fluid {
  overflow: visible !important;
}

.navbar {
  overflow: visible !important;
}
/* Active navigation item styling */
.navbar-nav .nav-item.active .nav-link {
  position: relative;
  font-weight: 500;
}

.navbar-nav .nav-item.active .nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}
/* Style navbar dropdowns to match the primary navbar color */
.navbar .dropdown-menu {
  background-color: #3b3b3b !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.navbar .dropdown-menu .dropdown-item {
  color: #ffffff !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.navbar .dropdown-menu .dropdown-item:active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.navbar .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar .dropdown-item {
  transition: background-color 0.15s ease-in-out;
}

/* ========================================
   Enhanced Page Title and Subtitle Styling
   ======================================== */

/* Enhanced Main Title */
.page-title {
  font-weight: 700;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-title i {
  color: #ff6f61; /* Your coral secondary color */
  margin-right: 0.75rem;
  font-size: 2rem;
}

/* Enhanced Subtitle */
.page-subtitle {
  font-size: 1.1rem;
  color: rgba(
    108,
    117,
    125,
    0.85
  ); /* Based on your secondary-text but with opacity */
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Visual Hierarchy Spacing */
.title-section {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

/* Subtle accent line under title */
.page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    #ff6f61,
    #e65c54
  ); /* Keep green accent line */

  margin: 1rem auto 0;
  border-radius: 2px;
}
/* Mobile optimizations */
@media (max-width: 767.98px) {
  .page-title {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .title-section {
    margin-bottom: 2rem;
  }
}

/* Enhanced Form Field Styling with Error States */
.enhanced-signup-form .form-floating {
  position: relative;
}

.enhanced-signup-form .enhanced-input {
  height: 58px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1rem 0.5rem;
  font-size: 1rem;
  background-color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-signup-form .enhanced-input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
  background-color: #fff;
}

.enhanced-signup-form .enhanced-input:valid:not(.is-invalid) {
  border-color: #4caf50;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%234caf50' d='m2.3 6.73.94-.94 2.94 2.94L9.1 1.77l.94.94L6.07 7.67z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

/* Error States */
.enhanced-signup-form .enhanced-input.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3e%3cpath fill='%23dc3545' d='M1 1l10 10M11 1L1 11'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.enhanced-signup-form .enhanced-input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

.enhanced-signup-form .invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.enhanced-signup-form .form-floating label {
  color: #6c757d;
  font-weight: 500;
  padding: 1rem;
  transition: all 0.3s ease;
}

.enhanced-signup-form .form-floating .enhanced-input:focus ~ label,
.enhanced-signup-form
  .form-floating
  .enhanced-input:not(:placeholder-shown)
  ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #4caf50;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  z-index: 5;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #4caf50;
}

/* Password Strength Indicator */
.password-strength {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-weak {
  background-color: #dc3545;
  width: 25%;
}
.strength-fair {
  background-color: #fd7e14;
  width: 50%;
}
.strength-good {
  background-color: #ffc107;
  width: 75%;
}
.strength-strong {
  background-color: #4caf50;
  width: 100%;
}

/* Password Visibility Hint */
.password-hint {
  opacity: 0.8;
}

.password-hint small {
  font-size: 0.8rem;
  color: #6c757d;
}

.password-hint i {
  opacity: 0.7;
}
.password-requirements {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem;
  border-left: 4px solid #e9ecef;
  transition: border-color 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.password-requirements.active {
  border-color: #4caf50;
}

.requirement {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.requirement.met {
  color: #4caf50;
}

.requirement-icon {
  width: 14px;
  margin-right: 0.4rem;
  transition: all 0.3s ease;
}

.requirement.met .requirement-icon:before {
  content: "\f633"; /* bi-check-circle-fill */
}

.requirement:not(.met) .requirement-icon:before {
  content: "\f28b"; /* bi-circle */
}

/* Enhanced Buttons */
.enhanced-submit-btn,
.enhanced-google-btn {
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.enhanced-submit-btn:hover,
.enhanced-google-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Loading State */
.enhanced-submit-btn.loading .btn-text {
  opacity: 0;
}

.enhanced-submit-btn.loading .spinner-border {
  display: inline-block !important;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .password-requirements {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .requirement {
    font-size: 0.75rem;
  }
}

/* Enhanced link hover effects */
.enhanced-link {
  transition: all 0.3s ease;
  position: relative;
}

.enhanced-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.enhanced-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: currentColor;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.enhanced-link:hover::after {
  width: 100%;
}

/* Forgot password link with muted color enhancement */
.forgot-password-link {
  transition: all 0.3s ease;
  position: relative;
}

.forgot-password-link:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.forgot-password-link:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.forgot-password-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: currentColor;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.forgot-password-link:hover::after {
  width: 100%;
}
