/**
 * BuscarPDF Web - Estilos para Pastas Virtuais e Favoritos
 * Design System Apple / Linear com Acabamento Premium
 * Arquitetura: Desktop Workspace (Área de Trabalho de Pastas)
 */

/* Container Principal de Pastas */
.folders-main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 3.5rem;
}

/* ============================================================
   VISÃO 1: ÁREA DE TRABALHO DE PASTAS (DESKTOP WORKSPACE)
   ============================================================ */
.folders-desktop-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cabeçalho do Workspace */
.desktop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.desktop-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.desktop-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.desktop-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.folders-profile-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.desktop-stats-line {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.desktop-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.desktop-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
}

.desktop-search-box svg {
  position: absolute;
  left: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.desktop-search-box input {
  padding-left: 2.2rem !important;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.82rem;
  height: 38px;
  width: 100%;
  transition: all 0.18s ease;
}

.desktop-search-box input:focus {
  border-color: #3b82f6;
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.desktop-sort-select {
  height: 38px;
  padding: 0 1.8rem 0 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
}

.btn-create-desktop-folder {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.18s ease;
}

.btn-create-desktop-folder:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Seção Acesso Rápido */
.desktop-section-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.desktop-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.desktop-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.desktop-section-counter {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.desktop-hint-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.desktop-quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.quick-access-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.quick-access-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.quick-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.quick-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.quick-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.quick-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-card-arrow {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.quick-access-card:hover .quick-card-arrow {
  transform: translateX(3px);
  color: #3b82f6;
}

/* Área de Trabalho de Pastas (Desktop Canvas) */
.desktop-folders-canvas {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
  min-height: 380px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.desktop-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.5rem 1.25rem;
  align-items: start;
}

/* Card Individual de Pasta no Desktop */
.desktop-folder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.85rem 1rem;
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-folder-card:hover {
  transform: translateY(-4px);
  background: var(--bg-surface-hover);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Estado Selecionado (Apple-Style Focus Ring) */
.desktop-folder-card.is-selected {
  outline: 2px solid #3b82f6;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* Estados de Drag & Drop (Arraste e Encaixe na Grade) */
.desktop-folder-card.is-dragging {
  opacity: 0.35;
  transform: scale(0.95);
  border: 2px dashed #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.desktop-folder-card.drop-target-before {
  box-shadow: -4px 0 0 0 #3b82f6, 0 10px 25px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.desktop-folder-card.drop-target-after {
  box-shadow: 4px 0 0 0 #3b82f6, 0 10px 25px rgba(0,0,0,0.1);
  transform: translateX(-4px);
}

/* Gráfico da Pasta Mac / Linear Style */
.folder-visual-box {
  position: relative;
  width: 72px;
  height: 60px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.desktop-folder-card:hover .folder-visual-box {
  transform: scale(1.05);
}

.folder-svg-shape {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.folder-theme-badge,
.folder-theme-emoji {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-folder-card:hover .folder-theme-badge,
.desktop-folder-card:hover .folder-theme-emoji {
  transform: translate(-50%, -40%) scale(1.08);
}

/* Informações da Pasta */
.folder-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  margin-bottom: 0.25rem;
}

.folder-card-count {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  display: inline-block;
  transition: all 0.18s;
}

.desktop-folder-card:hover .folder-card-count,
.desktop-folder-card.is-selected .folder-card-count {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Botão de Menu de Contexto (•••) */
.folder-card-menu-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.15s ease;
  cursor: pointer;
}

.desktop-folder-card:hover .folder-card-menu-btn,
.desktop-folder-card.is-selected .folder-card-menu-btn {
  opacity: 1;
}

.folder-card-menu-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

/* Empty State na Área de Trabalho */
.desktop-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.desktop-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.desktop-empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.desktop-empty-desc {
  font-size: 0.85rem;
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Menus de Contexto Flutuantes (Apple Luxury Blur) */
.desktop-context-menu {
  position: fixed;
  z-index: 1000;
  background: var(--bg-surface-elevated, #111827);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.35rem;
  min-width: 200px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  animation: fadeInScale 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-context-menu.hidden {
  display: none;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.ctx-item:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.ctx-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.3rem 0;
}

.ctx-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Seletor de Ícones Vetoriais no Modal de Pasta */
.folder-icon-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.icon-radio-option {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.icon-radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon-radio-option .icon-badge,
.icon-radio-option span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-radio-option .icon-badge svg {
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.icon-radio-option:hover .icon-badge,
.icon-radio-option:hover span {
  background: var(--bg-surface-hover);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text-primary);
}

.icon-radio-option:hover .icon-badge svg {
  color: #3b82f6;
  transform: translateY(-1px);
}

.icon-radio-option input:checked + .icon-badge,
.icon-radio-option input:checked + span {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  font-weight: 600;
  box-shadow: 0 0 0 1.5px #3b82f6 inset;
}

.icon-radio-option input:checked + .icon-badge svg {
  color: #3b82f6;
}

/* Paleta de Cores Estilo Apple / macOS Desktop */
.color-picker-palette {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.color-option {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.color-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-option:hover span {
  transform: scale(1.15);
}

.color-option input:checked + span {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4.5px #3b82f6;
}

.color-option input:checked + span::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* ============================================================
   VISÃO 2: DENTRO DA PASTA (BREADCRUMB & DOCUMENTOS)
   ============================================================ */
.folders-inside-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.inside-folder-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.btn-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  transition: all 0.15s;
}

.btn-breadcrumb-back:hover {
  background: var(--bg-surface-hover);
  color: #3b82f6;
  transform: translateX(-2px);
}

.breadcrumb-slash {
  color: var(--text-muted);
  opacity: 0.4;
  font-size: 0.95rem;
}

.breadcrumb-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.breadcrumb-folder-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

/* Workspace da Pasta */
.folder-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.folder-workspace-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.folder-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.folder-header-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.folder-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.folder-badge-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.folder-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.folder-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.folder-header-meta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.folder-header-top-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.folder-stats-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.folder-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   ESTILOS DE DOCUMENTOS E PREVIEW SPLIT (PRESERVADOS)
   ============================================================ */
.folder-results-workspace {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.folder-results-workspace.split-active {
  grid-template-columns: 1fr 1fr;
}

.folder-results-workspace.list-active {
  grid-template-columns: 1fr;
}

.folder-results-workspace.list-active .results-preview-pane {
  display: none !important;
}

.folder-docs-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.folder-deck-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.folder-deck-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.folder-deck-card.card-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.folder-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.folder-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.folder-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.folder-doc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

.folder-doc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.folder-results-workspace .results-preview-pane {
  position: sticky;
  top: 1rem;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.folder-results-workspace .split-preview-card {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.folder-results-workspace .split-preview-header,
.folder-results-workspace .split-preview-meta {
  flex-shrink: 0;
}

.folder-results-workspace .split-preview-viewport {
  flex: 1 1 0%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  position: relative;
  overflow: hidden;
}

.folder-results-workspace .split-preview-viewport .custom-pdf-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.folder-results-workspace .split-preview-viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Busca Rápida Dentro da Pasta */
.folder-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.folder-search-box svg {
  position: absolute;
  left: 0.65rem;
  color: var(--text-muted);
  pointer-events: none;
}

.folder-search-box input {
  padding-left: 2rem !important;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.folder-search-box input:focus {
  border-color: #3b82f6;
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Responsividade de Pastas */
@media (max-width: 1100px) {
  .folder-results-workspace.split-active {
    grid-template-columns: 1fr;
  }
  .folder-results-workspace .results-preview-pane {
    display: none !important;
  }
  .folder-workspace-header .view-mode-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .folders-main-container {
    padding: 1rem 0.85rem 3rem;
  }

  .desktop-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 14px;
  }

  .desktop-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .desktop-quick-access-grid {
    grid-template-columns: 1fr;
  }

  .desktop-folders-canvas {
    padding: 1rem;
    border-radius: 14px;
  }

  .desktop-folders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .folder-card-menu-btn {
    opacity: 1;
  }

  .folder-workspace-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .folder-header-meta-actions {
    align-items: stretch;
  }

  .folder-header-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .folder-action-buttons {
    flex-wrap: wrap;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
