/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 *= require_tree .
 *= require_self
 */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  /* Ensure mobile menu is properly positioned */
  #mobile-menu {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  /* Improve touch targets for mobile */
  #mobile-menu a,
  #mobile-menu button {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }

  /* Better spacing for mobile */
  .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mobile table improvements */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile card improvements */
  .mobile-card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  }

  /* Mobile breadcrumb improvements */
  .breadcrumb-mobile {
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile pagination improvements */
  .pagination-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  /* Mobile tab improvements */
  .tab-mobile {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Mobile form improvements */
  .form-mobile input,
  .form-mobile select,
  .form-mobile textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

      /* Mobile button improvements */
      .btn-mobile {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
      }

      /* Text wrapping improvements */
      .text-wrap-anywhere {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
      }

      .text-wrap-balance {
        text-wrap: balance;
      }

      /* Long text handling */
      .truncate-long-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
      }

      .break-long-words {
        word-break: break-word;
        overflow-wrap: anywhere;
      }
    }

/* Smooth transitions for mobile menu */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Better dropdown positioning on smaller screens */
@media (max-width: 1024px) {
  .group:hover .absolute {
    right: 0;
    left: auto;
  }
}
