/* Mobile frame adjustments for background image */
.mobile-frame {
  position: relative;
  border: 0.2vw solid #000;
  border-radius: 0.49vw;
  padding: 0.6vw;
  background-size: fill; /* Maintain original size */
  background-repeat: repeat; /* Repeat the image */
  background-position: center;
  background-color: #fff; /* Fallback color if no image is uploaded */
  box-shadow: 0 0.26vw 0.52vw rgba(0, 0, 0, 0.1);
  height: calc(100vh - 13vh);
  overflow-y: auto;
  width: 100%;
  font-family: Arial;
  display: flex;
  flex-direction: column;
}

.circular-frame {
  width: 8vw;
  height: 8vw;
  border-radius: 50%;
  border: 0.3vw solid;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
}

.circular-frame img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  align-items: center;
}

/* Preview the uploaded background image */
#backgroundPreviewBox {
  width: 100%;
  height: 300px;
  display: block;
  margin: 0 auto;
  background-size: cover; /* Ensure the image fills the preview box */
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.mobile-frame::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.65vw;
  padding-top: 2.6vh;
}

.user-icon {
  width: auto;
  height: auto;
  margin-bottom: 0.33vw;
  max-width: 25%;
  max-height: 25%;
}

.update-item {
  align-items: center;
  justify-content: center;
  display: flex;
  margin-bottom: 0.33vw;
}

.update-item a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.31vw;
}

.user-link-item {
  background-color: rgba(233, 236, 239, 1);
  /* border-radius will be applied by btn-flat, btn-rounded, btn-pill classes */
  padding: 0.33vw;
  margin-bottom: 0.33vw;
  text-align: center;
  border: 0.1vw solid;
  width: 95%;
  margin-left: 0.5vw;
}

/* Ensure user-links containers stack vertically in mobile frame */
.mobile-frame .user-links {
  display: block;
  width: 100%;
  margin-bottom: 0;
}

.mobile-frame .user-links .update-item,
.mobile-frame .user-links .user-link-item {
  display: block;
  width: 100%;
  margin-bottom: 1vw;
}

/* Button style classes with proper specificity - Match UserDashboard */
.user-link-item.btn-flat,
.update-item.user-link-item.btn-flat,
.toggle-section .user-link-item.btn-flat {
  border-radius: 0 !important;
}

.user-link-item.btn-rounded,
.update-item.user-link-item.btn-rounded,
.toggle-section .user-link-item.btn-rounded {
  border-radius: 10px !important;
}

.user-link-item.btn-pill,
.update-item.user-link-item.btn-pill,
.toggle-section .user-link-item.btn-pill {
  border-radius: 50px !important;
}

.user-link {
  color: black;
  display: block;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.toggle-arrow {
  transition: transform 0.3s ease;
}

.user-link-item.open .toggle-arrow {
  transform: rotate(180deg);
}

.social-media-links-mobile {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.social-icon-item-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0.26vw;
}

.social-icon-item-mobile i {
  font-size: 1.88vw;
  transition: transform 0.3s ease;
}

.social-media-links-tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.61vw;
  width: 100%;
  margin: 0.52vw 0;
}

.social-icon-item-tab i {
  font-size: 2.04vw;
}

.delete-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0.65vw;
  border: 0.03vw solid #ccc;
  border-radius: 0.33vw;
  box-shadow: 0 0.26vw 0.52vw rgba(0, 0, 0, 0.1);
}

.logo-icon {
  max-width: 150px;
  width: 10vw;
  height: auto;
  margin-left: 0;
  opacity: 0.85;
}
.position-relative {
  position: relative;
  /* Enables absolute positioning for child elements */
}

.share-options-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px;
}

.share-options-dropdown.active {
  display: block;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.share-icon {
  border: none;
  background: none;
  font-size: 2rem;
  margin-left: 20vw;
  margin-top: 0vw;
}
/* General button style classes - Match UserDashboard */
.btn-flat {
  border-radius: 0 !important;
}

.btn-rounded {
  border-radius: 10px !important;
}

.btn-pill {
  border-radius: 50px !important;
}

.background-preview {
  width: 8.13vw;
  height: 8.13vw;
  object-fit: cover;
}

label {
  font-size: 1vw;
}

/* Specific styles for insert function fields */
.insert-function-fields {
  padding-left: 1.25rem; /* Adjust padding to shift left */
}

/* User links tab styles */
.user-links-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.user-link-box {
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  width: 100%;
  max-width: 600px;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
  position: relative;
  text-align: center; /* Center text alignment */
}

.user-link-box .user-link {
  flex: 1;
  text-align: center;
}

/* Style the user link title */
.user-link-title {
  font-size: 1rem; /* Adjust as needed */
  color: #000; /* Default color black */
  margin: 0; /* Remove default margins */
  width: 100%; /* Ensure full width for centering */
  text-align: center; /* Center text horizontally */
  line-height: 1.5; /* Adjust for better vertical alignment */
}
button {
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  text-align: center; /* Center text alignment */
  font-size: 1rem; /* Adjust as needed */
  color: #000; /* Ensure black text by default */
  background-color: #fff; /* Default background color */
  border: 1px solid #dee2e6; /* Match button border */
  border-radius: 5px; /* Optional for rounded buttons */
}
.delete-popup {
  display: none;
  position: absolute;
  top: 100%; /* Position it below the button */
  left: 80%;
  transform: translateX(-30%);
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: center;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.link-actions .dots {
  cursor: pointer;
}

/* Popup styles */
.popup {
  display: none;
  position: absolute;
  top: 40px;
  right: 10px;
  width: 150px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.popup.active {
  display: block;
}

.popup-item {
  padding: 10px;
  cursor: pointer;
  text-align: center;
}

/* Center menu button details */
.menu-button-details {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column; /* Ensure content stacks vertically */
}

.menu-button-details * {
  margin: 0 auto; /* Center align all child elements */
}

/* Center the menu fields inside the buttons */
.menu-button-details button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%; /* Full width */
}

.menu-button-details button .menu-item {
  margin: 0 auto; /* Center align the menu items inside the buttons */
}

/* Center the food menu items */
.menu-item {
  display: flex;
  justify-content: left;
  align-items: left;
  text-align: left;
  margin: 10px 0; /* Add some margin for spacing */
}

.pdf-item {
  display: flex;
  justify-content: left;
  align-items: left;
  text-align: left;
  margin: 10px 0; /* Add some margin for spacing */
}

/* Center the food menu categories */
.category-group {
  text-align: center; /* Center the text inside the category group */
}

.category-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.category-group .menu-item {
  display: flex;
  justify-content: left;
  align-items: left;
  text-align: left;
  margin: 10px 0;
}

/* Ensure buttons are displayed side by side */
.toggle-button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px; /* Space between buttons */
  margin: 20px 0; /* Spacing above and below the container */
}

/* Style for all buttons */
.toggle-button-container .btn {
  flex: 1 1 calc(50% - 20px); /* Ensure buttons take up 50% of the row with space */
  max-width: 150px; /* Limit the maximum width for uniformity */
  height: 60px; /* Set a fixed height for consistency */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(
    --button-bg-color,
    #ffffff
  ); /* Default white background */
  border: 1px solid var(--button-border-color, #dee2e6); /* Default border */
  color: var(--button-font-color, #000); /* Default text color */
  transition:
    box-shadow 0.3s ease,
    transform 0.2s; /* Add smooth hover effects */
  padding: 10px; /* Add consistent padding */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Ensure sections are displayed below the buttons */
.toggle-section {
  display: none;
  margin-top: 10px;
  width: 60%; /* Full width for sections */
}

/* Ensure buttons in the same row have equal width */
.toggle-button-container .btn.toggle-button {
  flex: 1 1 calc(50% - 20px); /* Ensure buttons take up 50% of the row with space */
  max-width: 319px; /* Limit the maximum width for uniformity */
}
/* Ensure content is aligned correctly */
.default-logo-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 10px 0 6px;
  margin-top: auto;
}

.logo-icon {
  max-width: 150px;
  width: 35vw;
  height: auto;
  margin-left: 0;
  opacity: 0.85;
}

/* Header styles */
header {
  background-color: #eaeff5d7;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.min-vh-100 {
  min-height: 100%;
}

.flex-grow-1 {
  flex-grow: 1;
}

.mt-auto {
  margin-top: auto;
}

/* Center the header in the screen */
.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh; /* Full viewport height */
  position: relative;
  width: 100%;
}

.navbar {
  max-width: 90%; /* Optional: Adjust width for responsiveness */
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* Match your design */
  margin-left: -4vw;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding-left: 7px;
}

.navbar-brand img {
  height: 30px;
  margin-right: 10px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.navbar-nav .nav-link {
  margin-right: 15px;
  color: black;
  text-decoration: none;
}

.navbar-buttons {
  display: flex;
  align-items: center;
  padding-right: 7px;
}

.navbar-buttons .btn {
  margin-left: 10px;
  color: white;
  background-color: black;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
}

.navbar-buttons .btn + .btn {
  margin-left: 10px;
}

.navbar-username {
  color: black;
  text-decoration: none;
  margin-right: 10px;
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  background-color: #c0ade1;
  color: white;
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #f9f9f9;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #f9f9f9;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 1000;
}

.mobile-nav .nav-link {
  margin-bottom: 1rem;
  font-weight: bold;
  color: black;
  text-decoration: none;
}

.mobile-nav .navbar-username,
.mobile-nav .btn {
  margin-bottom: 1rem;
}

.header-title {
  font-size: 1.5vw;
  background-color: #66686a;
  border-radius: 0.5vw;
  text-align: center;
  margin-bottom: 1vw;
  width: 5.5%;
  color: #000;
}

/* Give qr-code-item its own left-aligned style */
.qr-code-item {
  justify-content: flex-start; /* pushes content to the left */
  align-items: flex-start; /* aligns items at the top/left */
  flex-direction: column; /* ensures vertical stacking */
}

.card-header {
  font-weight: bold;
}

.font-preview {
  font-size: 1.2rem; /* Adjust dropdown text size */
  line-height: 1.8rem; /* Space between options */
}

.font-preview option {
  font-family: inherit; /* Ensure each option inherits its respective font */
  font-size: 1rem; /* Adjust text size within the dropdown */
  line-height: 1.5rem; /* Add spacing between text */
  padding: 5px; /* Add padding for better appearance */
}

/* =========================== */
/*   END OF ORIGINAL CSS       */
/* =========================== */

/* ============================================= */
/*  NEW CODE: Hide .mobile-container on smaller  */
/*  screens & show a "Preview" button + overlay  */
/* ============================================= */

/* 1) Basic hidden overlay for the mobile preview */
#mobilePreviewOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999; /* on top of everything */
  justify-content: center;
  align-items: center;
}

/* 2) The pop-up content that encloses the .mobile-container inside the overlay */
#mobilePreviewContent {
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Close button at top-right */
#closeMobilePreviewBtn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #c0ade1;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: bold;
}

/* 3) "Preview" button hidden on large screens, displayed on small screens */
#openMobilePreviewBtn {
  display: none;
  margin: 1rem auto;
  background-color: #6a1b9a;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
}

.navbar-brand img {
  height: 40px;
}

#openMobilePreviewBtn {
  background-color: #6a1b9a;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Mobile Toggle Button */
.mobile-nav-toggle {
  display: none;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6a1b9a;
}

/* Mobile Dropdown Menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #f9f9f9;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list .nav-item {
  margin-bottom: 1rem;
}

.mobile-nav-list .nav-link {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
}

.mobile-nav-list .btn {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

/* User link item container */

.user-link-item {
  display: flex; /* Enables flexbox */
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  text-align: center; /* Ensures text alignment is centered */
  margin-bottom: 1rem; /* Adds spacing below the item */
  padding: 15px; /* Adds padding around the content */
  background-color: var(
    --button-bg-color,
    #ffffff
  ); /* Default white background */
  border: 1px solid var(--button-border-color, #dee2e6); /* Default subtle border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adds subtle shadow */
  transition: box-shadow 0.3s ease; /* Smooth shadow effect on hover */
  width: 95%; /* Ensures full-width box */
  max-width: 95%; /* Limits the width of the container */
}

/* User link text */
.user-link {
  color: var(--button-font-color, #000); /* Default black text color */
  font-size: 1rem; /* Adjusts text size */

  text-decoration: none; /* Removes underline from the link */
  font-family: inherit; /* Inherits the font-family style */
  line-height: 1.5; /* Adjusts line spacing for better readability */
  width: 100%; /* Ensures full width for centering */
  display: inline-block; /* Ensures inline-block for better styling */
}

/* Override for mobile screens - Match UserDashboard Mobile Preview Exactly */
@media (max-width: 480px) {
  /* 1) Remove body margin/padding and set background to none (or #fff) */
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }

  .logo-icon {
    max-width: 150px;
    width: 35vw;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.85;
    padding-bottom: 2rem;
  }

  /* 2) Hide any other container you don't want to see on mobile */
  .container-fluid,
  .content-container {
    display: none !important;
  }

  /* 3) Ensure the mobile-container is visible and takes the full screen width/height */
  .mobile-container {
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  /* Mobile frame styling - Match UserDashboard exactly */
  .mobile-frame {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100vh !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
  }

  /* User profile section - Match UserDashboard */
  .user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 2rem;
    width: 100%;
  }
  /* Container for the share icon - Match UserDashboard */
  .share-icon-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 10;
  }

  .share-icon-container button {
    font-family: inherit;
    font-size: 16px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
  }

  /* The share button - Match UserDashboard */
  .share-icon {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    transition:
      transform 0.2s ease,
      color 0.2s ease;
    margin-left: auto;
    margin-right: 1rem;
    padding: 0.5rem;
  }

  /* Font-awesome icon inside the button */
  .share-icon i {
    font-size: 1.5rem;
    transition:
      transform 0.3s ease,
      color 0.2s ease;
  }
  .circular-frame {
    width: 38vw;
    height: 38vw;
    border-radius: 50%;
    border: 0.8vw solid;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
  }

  .circular-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    align-items: center;
  }
  /* Social media links - Match UserDashboard */

  .social-media-links-mobile {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 2.5vw;
  }

  .social-icon-item-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .social-icon-item-mobile i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
  }

  .social-icon-item-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
  }

  .social-icon-item-mobile a:hover {
    text-decoration: none !important;
  }

  .social-icon-item-mobile a:visited {
    text-decoration: none !important;
  }

  .social-icon-item-mobile a:active {
    text-decoration: none !important;
  }

  /* Button styles for mobile - Match UserDashboard */
  .btn-flat,
  .user-link-item.btn-flat,
  .update-item.user-link-item.btn-flat,
  .toggle-section .user-link-item.btn-flat {
    border-radius: 0 !important;
  }

  .btn-rounded,
  .user-link-item.btn-rounded,
  .update-item.user-link-item.btn-rounded,
  .toggle-section .user-link-item.btn-rounded {
    border-radius: 10px !important;
  }

  .btn-pill,
  .user-link-item.btn-pill,
  .update-item.user-link-item.btn-pill,
  .toggle-section .user-link-item.btn-pill {
    border-radius: 50px !important;
  }

  /* User links tab styles */
  .user-links-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Instead of margin-bottom on .user-link-item, you could do a gap here: */
    gap: 0.5rem; /* vertical spacing between children */
  }
  .user-link-item {
    background-color: rgba(233, 236, 239, 1);
    margin-bottom: 0.33vw 1.2386px;
    text-align: center;
    border: 0.1vw solid;
    width: 95%;
    margin-left: 2.5vw;
  }

  /* Button border-radius will be applied by btn-flat, btn-rounded, btn-pill classes */

  .user-link-box {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    width: 100%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    position: relative;
    text-align: center; /* Center text alignment */
  }

  .user-link-box .user-link {
    flex: 1;
    text-align: center;
  }

  /* Style the user link title */
  .user-link-title {
    font-size: 1rem; /* Adjust as needed */
    color: #000; /* Default color black */
    width: 100%; /* Ensure full width for centering */
    text-align: center; /* Center text horizontally */
    line-height: 1.5; /* Adjust for better vertical alignment */
  }
  button {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    text-align: center; /* Center text alignment */
    font-size: 1.5rem; /* Adjust as needed */
    color: #000; /* Ensure black text by default */
    background-color: #fff; /* Default background color */
    border: 1px solid #dee2e6; /* Match button border */
    border-radius: 5px; /* Optional for rounded buttons */
  }
  /* Ensure buttons are displayed side by side */
  .toggle-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin: 20px 0; /* Spacing above and below the container */
    width: 95%; /* Full width for buttons */
    margin-left: 2.5vw;
  }

  /* Style for all buttons */
  .toggle-button-container .btn {
    flex: 1 1 calc(100% - 20px); /* Ensure buttons take up 50% of the row with space */
    width: auto;
    max-width: 200px; /* Limit the maximum width for uniformity */
    height: 60px; /* Set a fixed height for consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(
      --button-bg-color,
      #ffffff
    ); /* Default white background */
    border: 1px solid var(--button-border-color, #dee2e6); /* Default border */
    color: var(--button-font-color, #000); /* Default text color */
    transition:
      box-shadow 0.3s ease,
      transform 0.2s; /* Add smooth hover effects */
    padding: 10px; /* Add consistent padding */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
  }

  /* Ensure buttons in the same row have equal width */
  .toggle-button-container .btn.toggle-button {
    flex: 1 1 calc(50% - 20px);
    max-width: 379px;
    margin-right: 0px;
    margin-left: -1px;
  }
  /* Ensure toggle button titles match user links */
  .toggle-button-title {
    font-size: 1rem; /* Match the font size of .user-link */
    color: #000; /* Match the font color of .user-link */
    font-family: Arial, sans-serif; /* Match the font-family of .user-link */
    text-align: center;
    line-height: 1.5; /* Optional: Match vertical spacing */
  }

  /* Location, Menu, PDF, QR Code sections - Match UserDashboard */
  .user-links .update-item.user-link-item {
    margin-bottom: 0.75rem;
  }

  /* Ensure proper spacing for all sections */
  .user-links.mt-1,
  .user-links.mt-3 {
    margin-top: 1rem;
    margin-bottom: 0;
  }

  /* Center all dropdown items inside user-links.mt-3 */
  .user-links.mt-3 .toggle-section {
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .user-links.mt-3 .toggle-section a {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .user-links.mt-3 .toggle-section > * {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center icons and text inside dropdown links */
  .user-links.mt-3 .toggle-section a i {
    margin-right: 0.5rem;
  }

  /* Override inline margin-left styles specifically for mt-3 dropdowns */
  .user-links.mt-3 .toggle-section a[style*="margin-left: 30px"],
  .user-links.mt-3 .toggle-section a[style*="margin-left:30px"] {
    margin-left: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center user-link-item divs inside mt-3 toggle sections (for vCard QR Code) */
  .user-links.mt-3 .toggle-section .user-link-item {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Center QR code container inside mt-3 toggle sections */
  .user-links.mt-3 .toggle-section .qr-code-container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center QR code image inside mt-3 toggle sections */
  .user-links.mt-3 .toggle-section .qr-code-image {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* Center all divs inside mt-3 toggle sections */
  .user-links.mt-3 .toggle-section > div {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Specifically center user-link-item divs */
  .user-links.mt-3 .toggle-section > div.user-link-item {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Center text content inside user-link-item divs */
  .user-links.mt-3 .toggle-section .user-link-item > div {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Override inline styles on user-link-item divs */
  .user-links.mt-3 .toggle-section .user-link-item[style*="padding"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center all dropdown items inside user-links.mt-1 */
  .user-links.mt-1 .toggle-section {
    text-align: center;
    width: 100%;
    margin-left: 0 !important;
  }

  .user-links.mt-1 .toggle-section a {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem;
  }

  .user-links.mt-1 .toggle-section > * {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .user-links.mt-1 .toggle-section > div {
    margin-left: 0 !important;
    text-align: center !important;
  }

  /* Center icons and text inside dropdown links */
  .user-links.mt-1 .toggle-section a i {
    margin-right: 0.5rem;
  }

  /* Override inline margin-left styles specifically for mt-1 dropdowns */
  .user-links.mt-1 .toggle-section a[style*="margin-left: 30px"],
  .user-links.mt-1 .toggle-section a[style*="margin-left:30px"] {
    margin-left: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center QR Code sections inside mt-1 */
  .user-links.mt-1 .toggle-section .qr-code-container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* Override inline margin-left on toggle-section itself */
  .user-links.mt-1 .toggle-section[style*="margin-left: 30px"],
  .user-links.mt-1 .toggle-section[style*="margin-left:30px"] {
    margin-left: 0 !important;
  }
}

@media (min-width: 481px) and (max-width: 1324px) {
  /* Match UserDashboard Mobile Preview - Tablet/Medium Screen Size */
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }

  /* Hide containers */
  .container-fluid,
  .content-container {
    display: none !important;
  }

  /* Mobile container */
  .mobile-container {
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
  }

  /* Mobile frame - Match UserDashboard */
  .mobile-frame {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 100vh !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
  }

  /* User profile section - Match UserDashboard */
  .user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 2rem;
    width: 100%;
  }

  /* Container for the share icon - Match UserDashboard */
  .share-icon-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 10;
  }

  .share-icon-container button {
    font-family: inherit;
    font-size: 16px;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
  }

  /* The share button - Match UserDashboard */
  .share-icon {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    transition:
      transform 0.2s ease,
      color 0.2s ease;
    margin-left: auto;
    margin-right: 1rem;
    padding: 0.5rem;
  }

  /* Font-awesome icon inside the button */
  .share-icon i {
    font-size: 1.5rem;
    transition:
      transform 0.3s ease,
      color 0.2s ease;
  }
  .circular-frame {
    width: 19vw;
    height: auto;
    border-radius: 50%;
    border: 0.8vw solid;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
  }

  .circular-frame img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    align-items: center;
  }
  /* Social media links - Match UserDashboard with centered padding */
  .social-media-links-mobile {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem auto;
    gap: 1.5rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .social-icon-item-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .social-icon-item-mobile i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
  }

  .social-icon-item-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
  }

  .social-icon-item-mobile a:hover {
    text-decoration: none !important;
  }

  .social-icon-item-mobile a:visited {
    text-decoration: none !important;
  }

  .social-icon-item-mobile a:active {
    text-decoration: none !important;
  }

  .header-title-mobile {
    font-size: 1.2rem;
    font-weight: bold;
  }

  /* User links section - Match UserDashboard with centered padding */
  .user-links {
    display: block;
    width: 100%;
    margin-bottom: 0;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .user-links .update-item,
  .user-links .user-link-item {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
  }

  .user-link-item {
    background-color: rgba(233, 236, 239, 1);
    /* border-radius will be applied by btn-flat, btn-rounded, btn-pill classes */
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .user-link {
    color: black;
    text-align: center;
    width: 100%;
    display: block;
    text-decoration: none;
    padding: 0.5rem 0;
  }

  /* Header items - Match UserDashboard with centered padding */
  .header-item {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .header-title-mobile {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0.5rem 0;
  }

  /* Toggle sections - Centered with equal padding from both sides */
  .toggle-section {
    display: none;
    margin-top: 0;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .toggle-section a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .toggle-section a:first-child {
    border-top: none;
  }

  .toggle-section a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Center all dropdown items - override inline styles */
  .toggle-section > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  /* QR Code items inside toggle sections */
  .toggle-section .qr-code-container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* User link items inside toggle sections */
  .toggle-section .user-link-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  /* Button styles for tablet - Match UserDashboard */
  .btn-flat,
  .user-link-item.btn-flat,
  .update-item.user-link-item.btn-flat,
  .toggle-section .user-link-item.btn-flat {
    border-radius: 0 !important;
  }

  .btn-rounded,
  .user-link-item.btn-rounded,
  .update-item.user-link-item.btn-rounded,
  .toggle-section .user-link-item.btn-rounded {
    border-radius: 10px !important;
  }

  .btn-pill,
  .user-link-item.btn-pill,
  .update-item.user-link-item.btn-pill,
  .toggle-section .user-link-item.btn-pill {
    border-radius: 50px !important;
  }

  /* User links tab styles */
  .user-links-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Instead of margin-bottom on .user-link-item, you could do a gap here: */
    gap: 0.5rem; /* vertical spacing between children */
  }

  .user-link-box {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    width: 100%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    position: relative;
    text-align: center; /* Center text alignment */
  }

  .user-link-box .user-link {
    flex: 1;
    text-align: center;
  }

  /* Style the user link title */
  .user-link-title {
    font-size: 1rem; /* Adjust as needed */
    color: #000; /* Default color black */
    width: 100%; /* Ensure full width for centering */
    text-align: center; /* Center text horizontally */
    line-height: 1.5; /* Adjust for better vertical alignment */
  }
  button {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    text-align: center; /* Center text alignment */
    font-size: 1.5rem; /* Adjust as needed */
    color: #000; /* Ensure black text by default */
    background-color: #fff; /* Default background color */
    border: 1px solid #dee2e6; /* Match button border */
    border-radius: 5px; /* Optional for rounded buttons */
  }
  /* Ensure buttons are displayed side by side */
  .toggle-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin: 20px 0; /* Spacing above and below the container */
    width: 95%; /* Full width for buttons */
    margin-left: 2.5vw;
  }

  /* Style for all buttons */
  .toggle-button-container .btn {
    flex: 1 1 calc(50% - 20px); /* Ensure buttons take up 50% of the row with space */
    max-width: 400px; /* Limit the maximum width for uniformity */
    height: 60px; /* Set a fixed height for consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px; /* Rounded corners */
    background-color: var(
      --button-bg-color,
      #ffffff
    ); /* Default white background */
    border: 1px solid var(--button-border-color, #dee2e6); /* Default border */
    color: var(--button-font-color, #000); /* Default text color */
    transition:
      box-shadow 0.3s ease,
      transform 0.2s; /* Add smooth hover effects */
    padding: 10px; /* Add consistent padding */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
  }

  /* Toggle sections - Centered with equal padding from both sides */
  .toggle-section {
    display: none;
    margin-top: 0;
    width: 100%;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }

  .toggle-section a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .toggle-section a:first-child {
    border-top: none;
  }

  .toggle-section a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  /* Center all dropdown items - override inline styles */
  .toggle-section > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  /* QR Code items inside toggle sections */
  .toggle-section .qr-code-container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* User link items inside toggle sections */
  .toggle-section .user-link-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
  }

  /* Gallery grid - Match UserDashboard with centered padding */
  .gallery-container {
    margin: 1rem 0;
    width: 100%;
    padding: 0 0.5vw;
    box-sizing: border-box;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .gallery-grid-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
  }

  .gallery-grid-item img,
  .gallery-grid-item iframe,
  .gallery-grid-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* QR Code container - Match UserDashboard with centered alignment */
  .qr-code-container {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    margin-left: auto;
    margin-right: auto;
  }

  .qr-code-image {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Footer logo - Match UserDashboard with centered padding */
  .default-logo-container {
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    box-sizing: border-box;
  }

  /* Ensure buttons in the same row have equal width */
  .toggle-button-container .btn.toggle-button {
    flex: 1 1 calc(50% - 20px);
    max-width: 500px;
  }

  /* Ensure toggle button titles match user links */
  .toggle-button-title {
    font-size: 1rem;
    color: #000;
    font-family: Arial, sans-serif;
    text-align: center;
    line-height: 1.5;
  }

  .logo-icon {
    max-width: 150px;
    width: 35vw;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.85;
    padding-bottom: 2rem;
  }

  /* Location, Menu, PDF, QR Code sections - Match UserDashboard with centered padding */
  .user-links .update-item.user-link-item {
    margin-bottom: 0.75rem;
    margin-left: 0;
    margin-right: 0;
  }

  /* Ensure proper spacing for all sections with centered padding */
  .user-links.mt-1,
  .user-links.mt-3 {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Center all dropdown items inside user-links.mt-3 */
  .user-links.mt-3 .toggle-section {
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .user-links.mt-3 .toggle-section a {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem;
  }

  .user-links.mt-3 .toggle-section > * {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center icons and text inside dropdown links */
  .user-links.mt-3 .toggle-section a i {
    margin-right: 0.5rem;
  }

  /* Override any inline styles that add left margin to dropdown items */
  .toggle-section a[style*="margin-left"] {
    margin-left: 0 !important;
  }

  /* Override inline styles for centered alignment - specific patterns */
  .toggle-section a[style*="margin-left: 30px"],
  .toggle-section a[style*="margin-left:30px"] {
    margin-left: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Specific override for mt-3 dropdown items */
  .user-links.mt-3 .toggle-section a[style*="margin-left: 30px"],
  .user-links.mt-3 .toggle-section a[style*="margin-left:30px"] {
    margin-left: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center user-link-item divs inside mt-3 toggle sections (for vCard QR Code) */
  .user-links.mt-3 .toggle-section .user-link-item {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Center QR code container inside mt-3 toggle sections */
  .user-links.mt-3 .toggle-section .qr-code-container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center QR code image inside mt-3 toggle sections */
  .user-links.mt-3 .toggle-section .qr-code-image {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* Center all divs inside mt-3 toggle sections */
  .user-links.mt-3 .toggle-section > div {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Specifically center user-link-item divs */
  .user-links.mt-3 .toggle-section > div.user-link-item {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Center text content inside user-link-item divs */
  .user-links.mt-3 .toggle-section .user-link-item > div {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  /* Override inline styles on user-link-item divs */
  .user-links.mt-3 .toggle-section .user-link-item[style*="padding"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center all dropdown items inside user-links.mt-1 */
  .user-links.mt-1 .toggle-section {
    text-align: center;
    width: 100%;
    margin-left: 0 !important;
  }

  .user-links.mt-1 .toggle-section a {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem 1rem;
  }

  .user-links.mt-1 .toggle-section > * {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .user-links.mt-1 .toggle-section > div {
    margin-left: 0 !important;
    text-align: center !important;
  }

  /* Center icons and text inside dropdown links */
  .user-links.mt-1 .toggle-section a i {
    margin-right: 0.5rem;
  }

  /* Override inline margin-left styles specifically for mt-1 dropdowns */
  .user-links.mt-1 .toggle-section a[style*="margin-left: 30px"],
  .user-links.mt-1 .toggle-section a[style*="margin-left:30px"] {
    margin-left: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Center QR Code sections inside mt-1 */
  .user-links.mt-1 .toggle-section .qr-code-container {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* Override inline margin-left on toggle-section itself */
  .user-links.mt-1 .toggle-section[style*="margin-left: 30px"],
  .user-links.mt-1 .toggle-section[style*="margin-left:30px"] {
    margin-left: 0 !important;
  }

  /* Center user-link-item divs inside mt-1 toggle sections */
  .user-links.mt-1 .toggle-section .user-link-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
  }

  /* Center QR code images and containers */
  .user-links.mt-1 .toggle-section .qr-code-image {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Ensure all content inside mobile-frame has consistent centered padding */
  .mobile-frame > * {
    box-sizing: border-box;
  }
}
