@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Luxury Dark Monochromatic Theme (Default) */
  --bg-canvas: #090b10;
  --bg-ambient-1: rgba(255, 255, 255, 0.025);
  --bg-ambient-2: rgba(245, 158, 11, 0.035);
  --bg-surface: rgba(17, 21, 30, 0.76);
  --bg-surface-elevated: rgba(23, 28, 40, 0.90);
  --bg-surface-hover: rgba(32, 38, 54, 0.85);
  --bg-sidebar: rgba(12, 15, 22, 0.84);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 255, 255, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #f8fafc;
  --primary-hover: #ffffff;
  --primary-gradient: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  --primary-light: rgba(255, 255, 255, 0.08);
  --primary-text: #090b10;
  
  --accent-amber: #f59e0b;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  --accent-amber-glow: 0 0 20px rgba(245, 158, 11, 0.35);

  --success: #10b981;
  --success-light: rgba(16, 185, 129, 0.16);
  --warning: #f59e0b;
  --danger: #f87171;
  --danger-light: rgba(248, 113, 113, 0.16);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.15);
  --shadow-island: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5);
  
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-canvas: #f4f6f9;
  --bg-ambient-1: rgba(0, 0, 0, 0.03);
  --bg-ambient-2: rgba(245, 158, 11, 0.03);
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-surface-hover: rgba(240, 244, 250, 0.9);
  --bg-sidebar: rgba(250, 252, 255, 0.85);
  
  --border-color: rgba(203, 213, 225, 0.8);
  --border-glass: rgba(255, 255, 255, 0.9);
  --border-focus: #0f172a;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #8e9bb0;
  
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --primary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --primary-light: rgba(15, 23, 42, 0.08);
  --primary-text: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 24px 50px -12px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 25px rgba(0, 0, 0, 0.15);
  --shadow-island: inset 0 1px 0 #ffffff, 0 12px 36px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  --bg-canvas: #080a0f;
  --bg-ambient-1: rgba(255, 255, 255, 0.02);
  --bg-ambient-2: rgba(245, 158, 11, 0.03);
  --bg-surface: rgba(16, 20, 29, 0.78);
  --bg-surface-elevated: rgba(22, 27, 39, 0.92);
  --bg-surface-hover: rgba(30, 37, 52, 0.85);
  --bg-sidebar: rgba(11, 14, 21, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 255, 255, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #f8fafc;
  --primary-hover: #ffffff;
  --primary-gradient: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  --primary-light: rgba(255, 255, 255, 0.08);
  --primary-text: #090b10;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px rgba(255, 255, 255, 0.15);
  --shadow-island: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 50px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(at 0% 0%, var(--bg-ambient-1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--bg-ambient-2) 0px, transparent 50%),
    radial-gradient(at 50% 50%, var(--bg-ambient-1) 0px, transparent 65%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Floating Island Canvas Layout */
.app-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding: 12px;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

/* Floating Sidebar Island */
.sidebar {
  width: 255px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-island);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 24px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--primary-gradient);
  z-index: -1;
  opacity: 0.45;
  filter: blur(6px);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-glass);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px var(--primary);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Nav Badge */
.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Storage Card Glass */
.storage-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: auto;
  box-shadow: var(--shadow-sm);
}

.storage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.storage-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.storage-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--primary);
}

.storage-text {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Floating Main Content Island */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-surface);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-island);
}

/* Header inside Main Island */
.top-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  flex-shrink: 0;
  gap: 16px;
  z-index: 20;
}

.search-box {
  position: relative;
  width: 380px;
  max-width: 100%;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 0.86rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--primary-text);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
  transition: var(--transition);
}

.btn-restore {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-restore:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.user-badge:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--primary);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.user-name {
  font-size: 0.84rem;
  font-weight: 600;
}

/* Content Body */
.content-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  position: relative;
}

/* Drag overlay */
.drag-overlay {
  position: absolute;
  inset: 12px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 100;
  pointer-events: none;
}

.drag-overlay.active {
  display: flex;
}

.drag-overlay svg {
  width: 44px;
  height: 44px;
  color: var(--primary);
  stroke-width: 1.5;
}

/* Toolbar & Filter Pills */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.crumb-item {
  cursor: pointer;
  transition: var(--transition);
  padding: 3px 6px;
  border-radius: 4px;
}

.crumb-item:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.crumb-item.active {
  color: var(--text-primary);
  cursor: default;
}

.crumb-separator {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 9px;
}

.pill-btn {
  padding: 4px 11px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.pill-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.pill-btn.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: 9px;
}

.view-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.view-btn.active {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ==================================================== */
/* ZEN CAPSULE EMPTY STATE (Compact, Refined, Minimalist) */
/* ==================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  margin: 40px auto;
  max-width: 360px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.4);
}

.empty-icon-bubble.danger {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 6px 16px -2px rgba(239, 68, 68, 0.25);
}

/* Critical size constraint so empty state icons never blow up */
.empty-state svg,
.empty-icon-bubble svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--primary);
  flex-shrink: 0;
}

.empty-icon-bubble.danger svg {
  color: var(--danger) !important;
}

.empty-state h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.empty-state p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==================================================== */
/* TACTILE FOLDER PILLS                                 */
/* ==================================================== */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.folder-card {
  height: 48px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.folder-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.folder-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.folder-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.folder-icon svg {
  width: 17px;
  height: 17px;
}

.folder-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================================================== */
/* FILE CARDS & GRID                                    */
/* ==================================================== */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}

.file-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.file-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.folder-card.has-active-dropdown,
.file-card.has-active-dropdown,
.file-table tr.has-active-dropdown,
.file-table td.has-active-dropdown {
  z-index: 1000 !important;
}

.file-thumbnail {
  height: 125px;
  background-color: var(--bg-surface-elevated);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.file-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.file-card:hover .file-thumbnail img {
  transform: scale(1.05);
}

.file-thumbnail-video {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: #fff;
}

.file-play-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.file-card:hover .file-play-icon {
  transform: scale(1.1);
  background: var(--accent-amber);
  color: #090b10;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5);
}

.file-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.file-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.file-meta {
  overflow: hidden;
}

.file-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.file-subtitle {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Card Selection Indicator */
.file-card.selected,
.folder-card.selected {
  border-color: var(--accent-amber) !important;
  box-shadow: 0 0 0 2px var(--accent-amber), 0 12px 28px rgba(245, 158, 11, 0.25) !important;
}

/* ==================================================== */
/* FILE TABLE VIEW                                      */
/* ==================================================== */
.file-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: visible;
}

.file-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.file-table td {
  padding: 11px 16px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  position: relative;
}

.file-table tr:last-child td {
  border-bottom: none;
}

.file-table tr:hover td {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.file-table tr.selected td {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ==================================================== */
/* RAYCAST / MACOS STYLE CONTEXT MENU & DROPDOWNS       */
/* ==================================================== */
.action-dropdown {
  position: relative;
  z-index: 60;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  min-width: 165px;
  max-width: 185px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 4px;
  animation: dropdownIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
  display: flex !important;
}

.floating-context-menu {
  position: fixed !important;
  z-index: 10000 !important;
  margin: 0 !important;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dropdown-item svg {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.85;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.menu-shortcut {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  opacity: 0.45;
  font-weight: 500;
}

.menu-divider {
  height: 1px;
  margin: 3px 2px;
  background: var(--border-color);
}

/* ==================================================== */
/* IN-APP TOAST NOTIFICATIONS                           */
/* ==================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 16px 44px -4px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  animation: toastIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-item.toast-leave {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 14px;
  height: 14px;
}

.toast-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.toast-icon.error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.toast-icon.info {
  background: var(--primary-light);
  color: var(--primary);
}

.toast-content {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.toast-btn {
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--border-glass);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.toast-btn:hover {
  background: var(--primary);
  color: #fff;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 4px;
}

.toast-close:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* ==================================================== */
/* FLOATING UPLOAD DRAWER                               */
/* ==================================================== */
.upload-drawer {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 380px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.upload-drawer.show {
  display: flex;
}

.drawer-header {
  padding: 14px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.drawer-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.drawer-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.drawer-progress-bar {
  width: 100%;
  height: 5px;
  background-color: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.drawer-progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width 0.2s ease;
  box-shadow: 0 0 8px var(--primary);
}

.badge-instant {
  background-color: var(--success-light);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ==================================================== */
/* MODALS & CONFIRM DIALOG                              */
/* ==================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card-sm {
  max-width: 400px !important;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.modal-body {
  padding: 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-footer {
  padding: 14px 24px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

/* ==================================================== */
/* QUICKLOOK MEDIA PREVIEW MODAL                        */
/* ==================================================== */
.preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: none;
  flex-direction: column;
  z-index: 500;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.preview-backdrop.show {
  display: flex;
}

.preview-header {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 17, 30, 0.7);
  backdrop-filter: blur(20px);
  color: #fff;
}

.preview-file-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-file-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

.preview-file-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.preview-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.preview-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}

.preview-image-container {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.preview-image-container img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.preview-video-container {
  width: 90vw;
  max-width: 1000px;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  background: #000;
}

.preview-video-container video {
  width: 100%;
  max-height: 76vh;
  display: block;
  outline: none;
}

.preview-audio-container {
  width: 480px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-xl);
}

.preview-audio-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.preview-text-container {
  width: 90vw;
  max-width: 940px;
  height: 78vh;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.preview-text-toolbar {
  padding: 12px 18px;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8b949e;
}

.preview-text-content {
  flex: 1;
  padding: 20px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e6edf3;
  white-space: pre;
  tab-size: 2;
}

/* Trash Banner */
.trash-banner {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.trash-banner-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--danger);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================================================== */
/* DASHBOARD TELEMETRY WIDGETS                          */
/* ==================================================== */
.dashboard-widgets {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 1024px) {
  .dashboard-widgets {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.dash-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.dash-subtext {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dash-storage-amount {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.dash-storage-total {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.dash-progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.dash-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dash-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.dash-cat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.dash-cat-pill:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.dash-cat-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.dash-cat-info {
  display: flex;
  flex-direction: column;
}

.dash-cat-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-status-online {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status-online::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dash-features-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dash-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dash-feature-item svg {
  color: var(--accent-amber);
  flex-shrink: 0;
}

/* ==================================================== */
/* FLOATING MULTI-SELECTION CAPSULE (visionOS / Apple)   */
/* ==================================================== */
.selection-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 18, 25, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px 6px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  z-index: 9999;
  animation: slideUpCapsule 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCapsule {
  from {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.selection-count-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  padding-right: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.selection-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

.selection-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-selection {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-selection:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn-selection.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-selection.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ffffff;
}

.icon-btn-selection {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn-selection:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ==================================================== */
/* CARD CHECKBOX & DRAG-AND-DROP TARGET FEEDBACK         */
/* ==================================================== */
.select-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  z-index: 5;
}

.folder-card .select-checkbox {
  top: 14px;
  right: 12px;
}

.file-card:hover .select-checkbox,
.folder-card:hover .select-checkbox,
.file-card.selected .select-checkbox,
.folder-card.selected .select-checkbox {
  opacity: 1;
}

.select-checkbox.checked,
.file-card.selected .select-checkbox,
.folder-card.selected .select-checkbox {
  opacity: 1;
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.select-checkbox svg {
  display: none;
  stroke: #090b10;
  stroke-width: 3;
}

.select-checkbox.checked svg,
.file-card.selected .select-checkbox svg,
.folder-card.selected .select-checkbox svg {
  display: block;
}

/* Folder Drag & Drop target glow */
.folder-card.drop-target {
  border-color: var(--accent-amber) !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.45), inset 0 0 14px rgba(245, 158, 11, 0.2) !important;
  transform: scale(1.03) !important;
}

/* ==================================================== */
/* MOVE TO FOLDER MODAL LIST                            */
/* ==================================================== */
.move-folder-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.move-folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  font-size: 0.86rem;
}

.move-folder-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.move-folder-item.selected {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #ffffff;
}

.move-folder-icon {
  color: var(--accent-amber);
  display: flex;
  align-items: center;
}

/* ==================================================== */
/* SHARED LINKS VIEW ("Общий доступ")                   */
/* ==================================================== */
.shared-summary-banner {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.shared-summary-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.shared-summary-text b {
  color: var(--text-primary);
}

.shared-link-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  max-width: 280px;
}

.shared-link-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-micro {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-micro:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.view-count-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-status-lock {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-status-open {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ==================================================== */
/* DUAL-PANE FILE MANAGER (One Commander Style)         */
/* ==================================================== */
.dual-panes-wrapper {
  display: flex;
  gap: 12px;
  height: calc(100vh - 120px);
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.pane-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  min-width: 0;
}

.pane-column.active-pane {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-md);
}

.pane-header {
  padding: 8px 12px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.pane-title-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.pane-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 6px var(--accent-amber);
}

.pane-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: nowrap;
  flex: 1;
  padding: 0 6px;
}

.pane-crumb {
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.pane-crumb:hover {
  color: var(--text-primary);
}

.pane-crumb.active {
  color: var(--text-primary);
  font-weight: 700;
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-pane-action {
  height: 26px;
  padding: 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pane-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.pane-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  position: relative;
}

.pane-scrollable-content.drag-over {
  background: rgba(245, 158, 11, 0.04);
  border: 2px dashed var(--accent-amber);
}

.pane-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34px;
  flex-shrink: 0;
  gap: 8px;
}

.btn-transfer-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-transfer-arrow:hover {
  background: var(--accent-amber);
  color: #090b10;
  border-color: var(--accent-amber);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
  transform: scale(1.1);
}

.btn-transfer-arrow:active {
  transform: scale(0.95);
}

/* Compact folder grid for panes */
.pane-scrollable-content .folder-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

/* Compact file grid for panes */
.pane-scrollable-content .file-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

/* Pane empty state */
.pane-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pane-empty-state svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 8px;
  opacity: 0.6;
}
