/* Responsive Media Queries */

/* Tablet & Smaller Screens */
@media (max-width: 1024px) {
  .workspace-panes {
    flex-direction: column;
    overflow-y: auto;
  }

  .pane-left {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    height: 50vh;
    min-height: 250px;
  }

  .pane-right {
    height: 50vh;
    min-height: 250px;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .brand {
    justify-content: center;
  }

  .brand-tagline {
    display: none;
  }

  .nav-tabs {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .nav-tab {
    padding: 0 var(--spacing-sm);
    font-size: 0.8rem;
  }

  .tab-navbar {
    padding: 0 var(--spacing-sm);
    overflow: hidden;
  }

  .header-actions {
    justify-content: center;
    width: 100%;
    gap: var(--spacing-sm);
  }

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

  footer {
    padding: 0.5rem var(--spacing-sm);
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-start;
  }

  .status-left {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

/* Small Devices (Portrait Phones) */
@media (max-width: 480px) {
  .brand-text h1 {
    font-size: 1rem;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .btn span {
    display: none; /* Hide button text on extra-small screens, leaving icons */
  }

  .btn svg {
    margin-right: 0;
  }
}
