/* ==========================================================================
   Responsive Overrides & Mobile Layout Adjustments
   Unified IT Bid Auctions Design System
   ========================================================================== */

@media (max-width: 991.98px) {
  .app-navbar {
    padding: 0.45rem 0.75rem;
  }
  
  .header-logo-img {
    height: 30px;
  }

  .nav-search-wrapper {
    max-width: 100%;
    margin: 0.5rem 0;
  }

  .hero-section {
    padding: 2.5rem 1rem !important;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .admin-sidebar {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0 !important;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Portal Off-Canvas Mobile Drawer */
  .portal-workspace-layout {
    flex-direction: column;
    min-height: auto;
  }

  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    z-index: 1060 !important;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }

  .portal-sidebar.show {
    transform: translateX(0) !important;
  }

  .portal-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .portal-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }

  .portal-main-area {
    width: 100%;
  }

  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-footer .footer-main-area {
    padding: 2.75rem 0 1.75rem;
  }

  .footer-col-brand {
    margin-bottom: 0.5rem;
  }

  .footer-description {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .footer-col-contact {
    margin-top: 0.5rem;
  }

  .footer-bottom-actions {
    justify-content: center !important;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 0.8125rem;
  }

  .header-logo-img {
    height: 28px;
    max-width: 135px;
  }

  .glass-card {
    padding: 1rem;
    border-radius: var(--border-radius-lg);
  }

  .stat-val {
    font-size: 1.35rem;
  }

  .btn {
    font-size: 0.775rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-title {
    font-size: 1.75rem !important;
  }

  .hero-nlp-box {
    border-radius: var(--border-radius-lg) !important;
    flex-direction: column;
    padding: 0.5rem !important;
    gap: 0.5rem;
  }

  .hero-nlp-box input {
    width: 100%;
  }

  .hero-nlp-box button {
    width: 100%;
  }

  .appearance-studio {
    padding: 0.85rem 0.5rem;
  }

  .app-footer .footer-main-area {
    padding: 2rem 0 1.25rem;
  }

  .footer-heading {
    margin-bottom: 0.85rem;
    font-size: 0.825rem;
  }

  .footer-links-list {
    gap: 0.5rem;
  }

  .footer-link {
    padding: 0.15rem 0;
    font-size: 0.8125rem;
  }

  .footer-social-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .footer-bottom-bar {
    padding: 1rem 0;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
