/* Logo and Navbar Brand Fix for Mobile */

/* Base styles for logo to ensure proper sizing/proportion */
.logo-image {
  width: auto !important;
  height: auto !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  display: block !important;
}

.logo-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 10px !important;
  width: 50px !important;
  height: 50px !important;
}

/* Adjust logo and brand sizing to prevent overlap with toggle button */
@media (max-width: 991.98px) {
  /* Improve logo display on mobile */
  .logo-image {
    width: 40px !important;
    height: 40px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast !important; /* Improve image quality */
    transform: translateZ(0) !important; /* Fix for pixelation */
  }
  
  /* Better logo container for mobile */
  .logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }
  
  /* Reset vertical positioning to prevent distortion */
  .logo-container .logo-image {
    transform: translateY(0) !important;
  }
  
  .logo-container .logo-image:hover {
    transform: translateY(0) !important;
  }
  
  /* Fix alignment and size of brand text */
  .brand-text {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    padding-top: 3px !important;
  }
  
  /* Reduce size of brand title on smaller screens */
  .brand-title {
    font-size: 1.2rem !important;
    display: inline-block !important;
    letter-spacing: -0.5px !important;
  }
  
  /* Ensure the navbar-toggler sits on the right and doesn't push down */
  .navbar > .container {
    flex-wrap: nowrap !important;
  }
  
  /* Make sure the navbar brand doesn't push the toggle button to next line */
  .navbar-brand {
    flex: 0 1 auto !important;
    margin-right: auto !important;
    white-space: normal !important;
    padding-right: 60px !important; /* Make sure there's space for the toggle button */
  }
  
  /* Improve brand structure */
  .navbar-brand > span {
    display: flex !important;
    align-items: center !important;
  }
}

/* Add specific fix for very small screens */
@media (max-width: 380px) {
  .brand-title {
    font-size: 1rem !important;
  }
  
  .logo-image {
    width: 36px !important;
    height: 36px !important;
  }
  
  .logo-container {
    width: 36px !important;
    height: 36px !important;
  }
} 