/* ==========================================================================
   BEYOND NEXUS MSP (msp.bydnx.com) - Responsive Breakpoints & Mobile Drawer
   Breakpoints: 1440px, 1280px, 1024px, 768px, 480px
   ========================================================================== */

/* 1280px Screen Adaptations */
@media (max-width: 1280px) {
  .health-grid {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* 1024px Screen Adaptations */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }

  .health-grid {
    grid-template-columns: 1fr;
  }

  .health-score-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1.25rem;
  }

  .search-trigger-btn {
    min-width: 170px;
  }

  .app-content {
    padding: 1.25rem;
  }
}

/* 768px Tablet & Mobile Breakpoint */
@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
    width: 280px;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .app-topbar {
    padding: 0 1rem;
  }

  .search-trigger-btn span,
  .search-kbd {
    display: none;
  }

  .search-trigger-btn {
    min-width: unset;
    padding: 0.45rem;
  }

  .tenant-info {
    display: none;
  }

  .user-meta {
    display: none;
  }

  .notification-drawer {
    width: 100%;
    right: -100%;
  }

  .modal-dialog {
    max-width: 95%;
  }

  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-pills-group {
    overflow-x: auto;
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 480px Small Mobile Adaptations */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .app-content {
    padding: 0.85rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .kpi-card {
    padding: 1rem;
  }

  .kpi-value {
    font-size: 1.5rem;
  }

  .health-status-items {
    grid-template-columns: 1fr 1fr;
  }

  .demo-pill {
    display: none;
  }
}
