/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Bootstrap 5.3 - loaded via CDN in layout */

/* Prevent horizontal overflow on mobile */
body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
}

/* Collapsible chevron animation */
.transition-transform {
  transition: transform 0.2s ease-in-out;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Tenant dropdown - prevent cutoff on desktop */
@media (min-width: 992px) {
  #mindsDropdown + .dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* Keep hamburger in place when dropdown opens on mobile */
@media (max-width: 991px) {
  .navbar-toggler {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    z-index: 1050;
  }

  /* Center tenant switcher on mobile now that hamburger is absolute */
  .navbar-nav.mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Center dropdown on mobile to prevent cutoff - use absolute not fixed */
  #mindsDropdown + .dropdown-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important;
    max-width: 400px !important;
    margin-top: 0.5rem !important;
  }

  /* Increase navbar z-index to keep dropdown above content */
  .navbar {
    position: relative;
    z-index: 1040;
  }
}