/* ==========================================
   WEB STATION - Windows 11 Explorer Theme
   ========================================== */

:root {
  /* Windows 11 Dark Theme Colors */
  --bg-primary: #1c1c1c;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #383838;
  --bg-hover: #3d3d3d;
  --bg-active: #4a4a4a;
  --bg-elevated: #292929;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-acrylic: rgba(44, 44, 44, 0.85);
  --bg-mica: rgba(32, 32, 32, 0.95);

  --text-primary: #ffffff;
  --text-secondary: #9e9e9e;
  --text-tertiary: #6e6e6e;
  --text-disabled: #4a4a4a;

  --accent: #60cdff;
  --accent-dark: #0078d4;
  --accent-hover: #429ce3;
  --accent-subtle: rgba(96, 205, 255, 0.1);

  --border: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.12);

  --danger: #ff6b6b;
  --success: #4ecdc4;
  --warning: #ffd93d;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-acrylic: 0 8px 40px rgba(0, 0, 0, 0.5);

  --transition: all 0.15s ease;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;

  --sidebar-width: 260px;
  --titlebar-height: 46px;
  --toolbar-height: 44px;
  --statusbar-height: 28px;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Explorer App Container */
.explorer-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}

/* ==========================================
   TITLE BAR
   ========================================== */
.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--titlebar-height);
  padding: 0 12px;
  background: var(--bg-mica);
  border-bottom: 1px solid var(--border);
  -webkit-app-region: drag;
  flex-shrink: 0;
}

.title-bar-left {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.title-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-buttons {
  display: flex;
  gap: 2px;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 12px;
}
.nav-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-btn:disabled {
  color: var(--text-disabled);
  cursor: default;
}

/* Breadcrumb */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 4px;
  flex: 1;
  height: 32px;
  overflow: hidden;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}
.breadcrumb-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.breadcrumb-item.active {
  color: var(--text-primary);
}
.breadcrumb-item::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 8px;
  color: var(--text-tertiary);
  margin-left: 4px;
}
.breadcrumb-item:last-child::after {
  display: none;
}
.breadcrumb-item i {
  font-size: 12px;
  color: var(--accent);
}

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  height: 32px;
  width: 240px;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent);
  background: var(--bg-tertiary);
  box-shadow: 0 0 0 1px var(--accent);
}
.search-box i {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-right: 8px;
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  font-family: var(--font);
}
.search-box input::placeholder {
  color: var(--text-tertiary);
}

/* User Area */
.user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.auth-btn:hover {
  background: var(--bg-hover);
}
.auth-btn.register {
  background: var(--accent-dark);
  color: white;
}
.auth-btn.register:hover {
  background: var(--accent-hover);
}

.user-dropdown {
  position: relative;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--font);
  transition: var(--transition);
}
.user-btn:hover {
  background: var(--bg-hover);
}
.user-btn i:first-child {
  font-size: 18px;
  color: var(--accent);
}
.user-btn .fa-chevron-down {
  font-size: 10px;
  color: var(--text-tertiary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-acrylic);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow-acrylic);
  display: none;
  z-index: 1000;
  animation: fadeSlideIn 0.15s ease;
}
.dropdown-menu.show {
  display: block;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.dropdown-menu a:hover {
  background: var(--bg-hover);
}
.dropdown-menu a i {
  width: 16px;
  color: var(--text-secondary);
  font-size: 13px;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* ==========================================
   TOOLBAR
   ========================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--toolbar-height);
  padding: 0 12px;
  background: var(--bg-mica);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font);
  transition: var(--transition);
  white-space: nowrap;
}
.toolbar-btn:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.toolbar-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.toolbar-btn.danger:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
}
.toolbar-btn i {
  font-size: 13px;
}

.toolbar-separator {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* View Toggle */
.view-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
}
.view-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.view-btn.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* Sort Dropdown */
.sort-dropdown {
  position: relative;
  margin-right: 8px;
}
.sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-acrylic);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow-acrylic);
  display: none;
  z-index: 100;
}
.sort-menu.show {
  display: block;
}
.sort-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sort-menu a:hover {
  background: var(--bg-hover);
}
.sort-menu a .fa-check {
  opacity: 0;
  font-size: 10px;
  color: var(--accent);
}
.sort-menu a.active .fa-check {
  opacity: 1;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-mica);
  border-right: 1px solid var(--border);
  padding: 8px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-header {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: var(--accent-subtle);
  color: var(--accent);
}
.sidebar-item i {
  width: 18px;
  font-size: 14px;
}

/* Storage Info */
.storage-info {
  padding: 8px 12px;
}
.storage-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.storage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 2px;
  transition: width 0.5s ease;
}
.storage-text {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ==========================================
   FILE AREA
   ========================================== */
.file-area {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 12px;
}

/* Loading */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 10;
}
.loading-overlay.hidden {
  display: none;
}
.loading-spinner {
  text-align: center;
}
.spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}
.empty-state i {
  font-size: 60px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.empty-state p {
  font-size: 13px;
}

/* Drop Zone */
.drop-zone {
  position: absolute;
  inset: 0;
  background: rgba(0, 120, 212, 0.08);
  border: 3px dashed var(--accent-dark);
  border-radius: var(--radius-lg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.drop-zone.active {
  display: flex;
}
.drop-zone-inner {
  text-align: center;
  color: var(--accent);
}
.drop-zone-inner i {
  font-size: 48px;
  margin-bottom: 12px;
}
.drop-zone-inner h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.drop-zone-inner p {
  font-size: 13px;
  opacity: 0.7;
}

/* ==========================================
   FILE GRID
   ========================================== */
.file-grid {
  display: grid;
  gap: 4px;
}

/* Grid View */
.file-grid.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.file-grid.view-grid .file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: 2px solid transparent;
  position: relative;
}
.file-grid.view-grid .file-item:hover {
  background: var(--bg-hover);
}
.file-grid.view-grid .file-item.selected {
  background: var(--accent-subtle);
  border-color: var(--accent-dark);
}
.file-grid.view-grid .file-icon {
  font-size: 42px;
  margin-bottom: 8px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-grid.view-grid .file-name {
  font-size: 12px;
  word-break: break-word;
  line-height: 1.3;
  width: 100%;
}

/* Inline rename input */
.inline-rename-input {
  width: 100%;
  padding: 2px 4px;
  font-size: 12px;
  font-family: var(--font);
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--text-primary);
  outline: none;
  text-align: center;
  line-height: 1.3;
}

/* Cut item visual feedback */
.file-item.cut-item {
  opacity: 0.45;
}

/* Thumbnail in grid */
.file-grid.view-grid .file-icon.file-thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-tertiary);
}
.file-icon.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s ease;
}
.file-item:hover .file-icon.file-thumb img {
  transform: scale(1.05);
}

/* List View */
.file-grid.view-list .file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.file-grid.view-list .file-item:hover {
  background: var(--bg-hover);
}
.file-grid.view-list .file-item.selected {
  background: var(--accent-subtle);
  border-color: var(--accent-dark);
}
.file-grid.view-list .file-icon {
  font-size: 18px;
  width: 24px;
}
.file-grid.view-list .file-name {
  font-size: 13px;
  flex: 1;
}
.file-grid.view-list .file-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Details View */
.file-grid.view-details {
  display: flex;
  flex-direction: column;
}
.file-grid.view-details .file-header {
  display: grid;
  grid-template-columns: 40px 1fr 100px 120px 140px;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 5;
}
.file-grid.view-details .file-item {
  display: grid;
  grid-template-columns: 40px 1fr 100px 120px 140px;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.file-grid.view-details .file-item:hover {
  background: var(--bg-hover);
}
.file-grid.view-details .file-item.selected {
  background: var(--accent-subtle);
  border-color: var(--accent-dark);
}
.file-grid.view-details .file-icon {
  font-size: 18px;
  text-align: center;
}
.file-grid.view-details .file-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-grid.view-details .file-size {
  font-size: 12px;
  color: var(--text-tertiary);
}
.file-grid.view-details .file-type {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.file-grid.view-details .file-date {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* File Icon Colors */
.icon-folder {
  color: #ffd93d;
}
.icon-image {
  color: #a78bfa;
}
.icon-video {
  color: #f472b6;
}
.icon-audio {
  color: #fb923c;
}
.icon-archive {
  color: #4ade80;
}
.icon-document {
  color: #60a5fa;
}
.icon-pdf {
  color: #ef4444;
}
.icon-code {
  color: #34d399;
}
.icon-exe {
  color: #8b5cf6;
}
.icon-default {
  color: #94a3b8;
}

/* ==========================================
   PROPERTIES PANEL
   ========================================== */
.properties-panel {
  width: 280px;
  background: var(--bg-mica);
  border-left: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}
.properties-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.properties-header h3 {
  font-size: 14px;
  font-weight: 600;
}
.close-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.property-item {
  margin-bottom: 12px;
}
.property-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  text-transform: uppercase;
}
.property-value {
  font-size: 13px;
  color: var(--text-primary);
  word-break: break-word;
}

/* ==========================================
   STATUS BAR
   ========================================== */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--statusbar-height);
  padding: 0 12px;
  background: var(--bg-mica);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.15s ease;
}
.modal {
  background: var(--bg-acrylic);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  animation: scaleIn 0.2s ease;
}
.upload-modal {
  max-width: 600px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-header h3 i {
  color: var(--accent);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 60vh;
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--accent-dark);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
}
.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(255, 107, 107, 0.25);
}

/* Upload Area */
.upload-drop-area {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}
.upload-drop-area:hover,
.upload-drop-area.dragover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.upload-drop-area i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 12px;
}
.upload-drop-area h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.upload-drop-area p {
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Upload Queue */
.upload-queue {
  max-height: 200px;
  overflow-y: auto;
}
.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
}
.upload-item-icon {
  font-size: 20px;
  color: var(--accent);
}
.upload-item-info {
  flex: 1;
  min-width: 0;
}
.upload-item-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-item-size {
  font-size: 11px;
  color: var(--text-tertiary);
}
.upload-item-progress {
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.upload-item-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}
.upload-item-status {
  font-size: 11px;
  color: var(--text-tertiary);
}
.upload-item-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-item-remove:hover {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.upload-actions select {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
}

/* Share Modal */
.share-link-group {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.share-link-group input {
  flex: 1;
}
.share-qr {
  text-align: center;
}
.share-qr canvas,
.share-qr img {
  border-radius: var(--radius-md);
  max-width: 200px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .search-box {
    width: 160px;
  }
  .toolbar-btn span {
    display: none;
  }
  .file-grid.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-acrylic);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  animation: fadeSlideIn 0.3s ease;
  max-width: 360px;
}
.toast-success i {
  color: var(--success);
}
.toast-error i {
  color: var(--danger);
}
.toast-info i {
  color: var(--accent);
}
