/* =========================================
   MINIMAL DRIVE — ULTRA-MINIMALIST DESIGN SYSTEM
   Zero gradients, strict minimalism, high practicality
   ========================================= */

:root {
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-surface: #18181b;
  --bg-surface-hover: #222226;
  --border-color: #27272a;
  --border-focus: #52525b;
  --border-hover: #3f3f46;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --btn-primary-bg: #fafafa;
  --btn-primary-text: #09090b;
  --btn-primary-hover: #e4e4e7;
  
  --btn-secondary-bg: #18181b;
  --btn-secondary-border: #27272a;
  --btn-secondary-text: #fafafa;
  --btn-secondary-hover: #27272a;
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition: all 0.15s ease;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #fbfbfb;
  --bg-surface: #f4f4f5;
  --bg-surface-hover: #e4e4e7;
  --border-color: #e4e4e7;
  --border-focus: #a1a1aa;
  --border-hover: #d4d4d8;
  
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  
  --btn-primary-bg: #09090b;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #27272a;
  
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: #e4e4e7;
  --btn-secondary-text: #09090b;
  --btn-secondary-hover: #f4f4f5;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Layout */
.app-container {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  flex-shrink: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 18px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.brand-icon {
  width: 30px;
  height: 30px;
  background: var(--btn-primary-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-primary-text);
}

.brand-info h1 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-badge {
  font-size: 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  text-transform: uppercase;
}

.sidebar-action-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-bottom: 20px;
}

.sidebar-action-btn:hover {
  background: var(--btn-primary-hover);
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 10px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.nav-item.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
  font-weight: 600;
}

.nav-item .icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.nav-item .count-badge {
  margin-left: auto;
  font-size: 0.7rem;
  background: var(--bg-surface-hover);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-variant-numeric: tabular-nums;
}

/* Sidebar Storage Card */
.sidebar-storage {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

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

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

.storage-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  border-radius: var(--radius-xs);
  transition: width 0.3s ease;
}

.storage-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Topbar */
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  background: var(--bg-secondary);
  z-index: 10;
}

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

.search-box input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 7px 14px 7px 34px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

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

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
}

.search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  font-family: monospace;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

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

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

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

.user-avatar {
  width: 20px;
  height: 20px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Page Body */
.page-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Stats Row */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-info h4 {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-info .value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Section Controls */
.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.sort-select:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* File Grid View */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.file-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.file-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.file-card-preview {
  height: 100px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
}

.file-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-type-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  color: var(--text-secondary);
}

.file-star-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
  font-size: 0.75rem;
}

.file-star-btn:hover, .file-star-btn.starred {
  color: #eab308;
  border-color: #eab308;
}

.file-name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.file-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.file-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.action-btn-sm {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 5px 0;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.action-btn-sm.delete:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* File Table View */
.file-table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.file-table th {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.file-table td {
  padding: 10px 14px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

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

.file-table-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.file-table-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 320px;
  margin-bottom: 16px;
}

/* Drag & Drop Overlay */
.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.drop-overlay.active {
  display: flex;
  pointer-events: auto;
}

.drop-zone {
  border: 2px dashed var(--border-focus);
  border-radius: var(--radius-md);
  padding: 50px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.drop-zone svg {
  width: 48px;
  height: 48px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.drop-zone h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.drop-zone p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Upload Progress Drawer */
.upload-drawer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  z-index: 90;
  overflow: hidden;
  display: none;
}

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

.upload-drawer-header {
  padding: 10px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.upload-items-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
}

.upload-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  margin-bottom: 4px;
}

.upload-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.upload-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  font-weight: 500;
}

.upload-item-progress-bar {
  height: 3px;
  background: var(--bg-surface);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.upload-item-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  transition: width 0.15s ease;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 18px;
}

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

/* Buttons */
.btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: transparent;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  opacity: 0.9;
}

/* Form inputs */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--border-focus);
}

/* Share Link Box */
.share-link-input-group {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.share-link-input-group input {
  flex-grow: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: monospace;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.qr-code-container img {
  width: 140px;
  height: 140px;
}

.qr-code-label {
  font-size: 0.7rem;
  color: #555;
  margin-top: 6px;
  font-weight: 500;
}

/* =========================================
   PUBLIC SHARE / DOWNLOAD PAGE & HOME
   ========================================= */
.public-share-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 10;
  background: var(--bg-primary);
}

.share-card-wrapper {
  width: 100%;
  max-width: 500px;
}

.public-share-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.public-share-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  margin-bottom: 16px;
}

.public-file-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.public-file-name {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-word;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--text-primary);
}

/* Public Preview Container */
.public-preview-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 320px;
}

.public-preview-box img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.public-preview-box video {
  width: 100%;
  max-height: 300px;
  background: #000;
}

.public-preview-box audio {
  width: 90%;
  margin: 16px 0;
}

.public-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-big-download {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-big-download:hover {
  background: var(--btn-primary-hover);
}

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

.public-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.public-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.public-footer a:hover {
  color: var(--text-primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    height: 100vh;
  }
  .sidebar.mobile-open {
    left: 0;
  }
  .search-box {
    width: auto;
    flex-grow: 1;
  }
  .topbar {
    padding: 0 14px;
  }
  .page-body {
    padding: 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
