/* Responsive breakpoints:
 * Desktop  (1280px+): full sidebar, all columns visible
 * Tablet   (768-1279px): icon-only sidebar (52px), view tabs overflow
 * Phone    (375-767px): sidebar hidden, bottom navigation, simplified columns
 */

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1279px) and (min-width: 768px) {
  .sidebar {
    width: var(--sidebar-collapsed-width);
  }

  .sidebar-logo, .sidebar-workspace-name, .sidebar-section,
  .sidebar-item span, .sidebar-footer .avatar-info {
    display: none;
  }

  .sidebar-item {
    padding: 8px;
    justify-content: center;
  }

  .sidebar-item .space-dot { width: 12px; height: 12px; }

  .sidebar-footer {
    justify-content: center;
    padding: 8px;
  }

  .view-tabs { display: none; }
  .view-tabs-overflow { display: flex !important; }

  .list-header-row,
  .task-row {
    grid-template-columns: 24px 110px 1fr 90px;
  }

  /* Hide due date and priority columns on tablet */
  .col-due, .col-priority { display: none; }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sidebar { display: none; }

  .main-content { padding-bottom: 56px; }

  /* Bottom navigation bar */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    z-index: 50;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    text-decoration: none;
  }

  .bottom-nav-item.active { color: var(--accent); }

  .task-panel { width: 100%; }

  .list-header-row,
  .task-row {
    grid-template-columns: 24px 100px 1fr 28px;
  }

  .col-due, .col-estimate { display: none; }

  .topbar { padding: 0 12px; }
  .topbar .breadcrumb { font-size: 11px; }

  .view-tabs { display: none; }
  .topbar-actions .btn span { display: none; }

  .kanban-column { width: 85vw; }
  .board-content { padding: 8px; }
}

/* Hidden by default — shown only at specific breakpoints */
.bottom-nav { display: none; }
.view-tabs-overflow { display: none; }
