@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 {
  /* Color Palette - Modern Dark/Light Hybrid & Obsidian Mint theme */
  --canvas: #0d1117;
  --surface: #161b22;
  --panel: #21262d;
  --panel-hover: #262c36;
  --panel-active: #2d333b;
  --border: #30363d;
  --border-light: #444c56;
  
  --ink: #f0f6fc;
  --ink-muted: #8b949e;
  --ink-subtle: #6e7681;
  
  --primary: #1f6feb;
  --primary-hover: #388bfd;
  --primary-glow: rgba(31, 111, 235, 0.25);
  
  --accent-teal: #2ea043;
  --accent-teal-glow: rgba(46, 160, 67, 0.2);
  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-gold: #e3b341;
  --accent-rose: #f87171;
  
  --mint-bg: rgba(46, 160, 67, 0.1);
  --mint-border: rgba(46, 160, 67, 0.3);
  --mint-text: #3fb950;
  
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* App Layout Structure */
.app-shell {
  display: flex;
  min-height: 100vh;
  background: radial-gradient(circle at 80% -20%, rgba(31, 111, 235, 0.08), transparent 40%),
              radial-gradient(circle at 10% 50%, rgba(168, 85, 247, 0.05), transparent 40%);
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  flex: 0 0 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transition: var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #38bdf8 0%, #1f6feb 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.brand strong {
  color: var(--accent-cyan);
}

.eyebrow, .nav-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(33, 38, 45, 0.6);
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  transition: var(--transition);
}

.workspace:hover {
  border-color: var(--border-light);
  background: var(--panel);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2ea043 0%, #1f6feb 100%);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.workspace b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.workspace small {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.sidebar nav a, .sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.sidebar nav a:hover, .sidebar-bottom > a:hover {
  background: var(--panel-hover);
  color: var(--ink);
}

.sidebar nav a.active {
  background: rgba(31, 111, 235, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.sidebar nav a .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Sidebar Nav Dropdown */
.nav-dropdown {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}
.nav-dropdown-toggle:hover {
  background: var(--panel-hover);
  color: var(--ink);
}
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--accent-cyan);
}
.nav-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--ink-subtle);
}
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  margin-top: 2px;
  margin-bottom: 4px;
  border-left: 2px solid rgba(56, 189, 248, 0.2);
  margin-left: 20px;
}
.nav-dropdown.open .nav-submenu {
  display: flex;
}
.nav-submenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.nav-submenu a:hover {
  background: var(--panel-hover);
  color: var(--ink);
}
.nav-submenu a.active {
  background: rgba(31, 111, 235, 0.15);
  color: var(--accent-cyan);
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.2);
}


.nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.nav-heading a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s;
}

.nav-heading a:hover {
  transform: scale(1.2);
}

.drive-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.drive {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.drive:hover {
  background: var(--panel-hover);
  color: var(--ink);
}

.drive.active {
  background: var(--panel);
  border-color: var(--border);
  color: var(--ink);
}

.drive-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.drive-icon.all {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
}

.drive-icon.google {
  background: rgba(227, 179, 65, 0.15);
  color: var(--accent-gold);
}

.drive span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive small {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-subtle);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

.connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
}

.connect:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.storage-sidebar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.storage-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink);
}

.storage-sidebar-head strong {
  font-family: var(--mono);
  color: var(--accent-cyan);
}

.progress-track-sm {
  width: 100%;
  height: 6px;
  background: var(--canvas);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-sm {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1f6feb 0%, #38bdf8 100%);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-sm.warning {
  background: linear-gradient(90deg, #e3b341 0%, #f97316 100%) !important;
}

.progress-bar-sm.danger {
  background: linear-gradient(90deg, #f97316 0%, #f87171 100%) !important;
}


.progress-bar-sm.indeterminate-pulse {
  background: linear-gradient(90deg, #1f6feb, #38bdf8, #2ea043, #1f6feb);
  background-size: 200% 100%;
  animation: progressFlow 1.2s linear infinite;
}

@keyframes progressFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}


.storage-sidebar-card small {
  font-size: 11px;
  color: var(--ink-muted);
  display: block;
}

/* Main Content Area */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

header {
  height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 9;
}

.mobile-menu {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.crumb b {
  color: var(--ink-subtle);
}

.crumb strong {
  color: var(--ink);
  font-weight: 700;
}

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

.header-search {
  position: relative;
  width: 260px;
}

.header-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  outline: none;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  width: 300px;
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-subtle);
  font-size: 14px;
  pointer-events: none;
}

.content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 40px 60px;
}

/* Flash Notice */
.flash {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--mint-border);
  border-radius: var(--radius-md);
  background: var(--mint-bg);
  color: var(--mint-text);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(33, 38, 45, 0.7) 100%);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 8px;
}

.hero-text p {
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--ink);
}

.button:hover {
  background: var(--panel-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #1f6feb 0%, #38bdf8 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 111, 235, 0.4);
}

.button-primary:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.button-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* Grid Layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  position: relative;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-header label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
  text-transform: uppercase;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-size: 16px;
}

.stat-icon.blue { background: rgba(31, 111, 235, 0.15); color: var(--accent-cyan); }
.stat-icon.green { background: rgba(46, 160, 67, 0.15); color: var(--accent-teal); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.stat-icon.gold { background: rgba(227, 179, 65, 0.15); color: var(--accent-gold); }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-footer {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* Two Column Grid for Breakdown & Upload */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title-bar h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Storage breakdown per drive */
.drive-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drive-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  transition: var(--transition);
}

.drive-card-item:hover {
  border-color: var(--border-light);
  background: var(--panel-hover);
}

.drive-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drive-card-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-card-info small {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.drive-card-meta {
  text-align: right;
  flex-shrink: 0;
}

.drive-card-meta b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-cyan);
}

.drive-card-meta small {
  display: block;
  font-size: 11px;
  color: var(--ink-subtle);
}

/* Storage breakdown by file type bar */
.type-distribution {
  margin-top: 24px;
}

.type-distribution-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.type-progress-stacked {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--canvas);
  margin-bottom: 16px;
}

.type-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.type-segment.img { background: #38bdf8; }
.type-segment.doc { background: #a855f7; }
.type-segment.vid { background: #f87171; }
.type-segment.zip { background: #e3b341; }
.type-segment.code { background: #2ea043; }
.type-segment.other { background: #6e7681; }

.type-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.type-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
}

.type-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

/* Drag and Drop Quick Upload Zone */
.upload-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background: rgba(33, 38, 45, 0.4);
  transition: var(--transition);
  cursor: pointer;
}

.upload-dropzone.dragover, .upload-dropzone:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.upload-icon {
  font-size: 32px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.upload-dropzone h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.upload-dropzone p {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.file-input-hidden {
  display: none;
}

.upload-progress-card {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
}

.upload-progress-card.visible {
  display: block;
}

.upload-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--mono);
  margin-bottom: 8px;
  color: var(--ink-muted);
}

/* Tables */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.table-header-tools {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.table-header-tools h2 {
  font-size: 16px;
  font-weight: 700;
}

.table-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-search {
  position: relative;
  width: 240px;
}

.table-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.table-search input:focus {
  border-color: var(--primary);
}

.table-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-subtle);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  height: 42px;
  padding: 0 20px;
  background: var(--panel);
  color: var(--ink-subtle);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-muted);
}

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

tr:hover td {
  background: rgba(33, 38, 45, 0.5);
  color: var(--ink);
}

.file-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}

.file-badge-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex-shrink: 0;
}

.file-badge-icon.folder { background: rgba(227, 179, 65, 0.15); color: var(--accent-gold); }
.file-badge-icon.image { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }
.file-badge-icon.code { background: rgba(46, 160, 67, 0.15); color: var(--accent-teal); }
.file-badge-icon.pdf { background: rgba(248, 113, 113, 0.15); color: var(--accent-rose); }
/* Floating Batch Action Bar for Multi-Select */
.batch-action-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.batch-action-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.batch-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.batch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #1f6feb 0%, #38bdf8 100%);
  color: #fff;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.batch-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}


.drive-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--ink-muted);
}

.row-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--ink-muted);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--border-light);
}

.action-btn.danger:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--accent-rose);
  border-color: rgba(248, 113, 113, 0.3);
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 2px;
}

.activity-content small {
  font-size: 11px;
  color: var(--ink-subtle);
  font-family: var(--mono);
}

/* Responsive Mobile Rules */
@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -290px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .mobile-menu {
    display: block;
  }
  
  header {
    padding: 0 20px;
  }
  
  .header-search {
    display: none;
  }
  
  .content {
    padding: 24px 18px 40px;
  }
  
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  
  .hero-cta {
    width: 100%;
  }
  
  .hero-cta .button {
    flex: 1;
  }
}
