/* ================================================================
   VISUAL ENHANCEMENTS V2 — Private Cloud
   Laden nach enhancements.css
   ================================================================ */

/* ── Google Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --vv-teal:        #0d9488;
  --vv-teal-lt:     #14b8a6;
  --vv-blue:        #0ea5e9;
  --vv-purple:      #8b5cf6;
  --vv-rose:        #f43f5e;
  --vv-amber:       #f59e0b;
  --vv-card-bg:     rgba(10, 17, 28, 0.72);
  --vv-card-border: rgba(255,255,255,0.07);
  --vv-hover-bg:    rgba(20, 184, 166, 0.06);
  --vv-glass:       rgba(8, 14, 24, 0.80);
  --vv-radius:      14px;
  --vv-font:        'DM Sans', 'Outfit', sans-serif;
}

/* ── Global Font Override ────────────────────────────────────── */
.main-content,
.file-list,
.toolbar,
.toolbar-actions-row,
.search-container,
.breadcrumb,
.path-display {
  font-family: var(--vv-font) !important;
}

/* ================================================================
   KLICKBARES BREADCRUMB
   ================================================================ */

.vv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--vv-font);
}

.vv-bc-home {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
  letter-spacing: 0.01em;
}
.vv-bc-home svg { width: 14px; height: 14px; flex-shrink: 0; }
.vv-bc-home:hover { color: #5eead4; background: rgba(20,184,166,0.08); }

.vv-bc-sep {
  color: #1e293b;
  font-size: 0.9rem;
  margin: 0 1px;
  flex-shrink: 0;
  user-select: none;
}

.vv-bc-seg {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  border: none;
  background: none;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.vv-bc-seg:hover { color: #5eead4; background: rgba(20,184,166,0.08); }
.vv-bc-seg.active {
  color: #94a3b8;
  cursor: default;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ================================================================
   VIEW-TOGGLE BUTTON
   ================================================================ */

.vv-view-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.vv-view-btn {
  width: 30px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.vv-view-btn svg { width: 15px; height: 15px; }
.vv-view-btn:hover { background: rgba(255,255,255,0.07); color: #94a3b8; }
.vv-view-btn.active {
  background: rgba(20,184,166,0.15);
  color: #5eead4;
  box-shadow: 0 0 0 1px rgba(20,184,166,0.2);
}

/* ================================================================
   LISTEN-ANSICHT — verbesserte Zeilen
   ================================================================ */

.file-list-container {
  background: rgba(8, 14, 24, 0.60) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(16px) !important;
}

.file-list:not(.view-grid) li {
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  position: relative;
}

.file-list:not(.view-grid) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  border-radius: 0 2px 2px 0;
  transition: width 0.15s ease;
}

.file-list:not(.view-grid) li.selected::before { width: 3px; }
.file-list:not(.view-grid) li.selected {
  background: rgba(13, 148, 136, 0.08) !important;
  border-bottom-color: rgba(13, 148, 136, 0.12) !important;
}

.file-list:not(.view-grid) li:hover {
  background: rgba(255,255,255,0.025) !important;
}

/* Thumbnail-Upgrade in Listenansicht */
.file-list:not(.view-grid) .file-thumbnail {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background: rgba(15,25,40,0.8) !important;
}

.file-list:not(.view-grid) .file-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 9px;
}

/* Dateiname-Styling */
.file-list:not(.view-grid) .file-text strong {
  font-family: var(--vv-font) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  color: #cbd5e1 !important;
  letter-spacing: -0.01em;
}

.file-list:not(.view-grid) .file-size,
.file-list:not(.view-grid) .file-date {
  font-family: var(--vv-font) !important;
  font-size: 0.75rem !important;
  color: #475569 !important;
  letter-spacing: 0.01em;
}

/* ================================================================
   GRID-ANSICHT
   ================================================================ */

.file-list.view-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px !important;
  list-style: none;
}

/* Grid-Elemente: Karte */
.file-list.view-grid li {
  display: flex !important;
  flex-direction: column !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 0 !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(12, 20, 32, 0.75) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.2s ease,
              border-color 0.2s ease !important;
  animation: vv-card-in 0.3s cubic-bezier(0.22,1,0.36,1) both;
  grid-template-columns: none !important; /* override file-list li grid */
  gap: 0 !important;
}

@keyframes vv-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.file-list.view-grid li:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(20,184,166,0.25) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(20,184,166,0.1) !important;
  background: rgba(14,24,36,0.9) !important;
}

.file-list.view-grid li.selected {
  border-color: rgba(13,148,136,0.5) !important;
  box-shadow: 0 0 0 2px rgba(13,148,136,0.25), 0 8px 24px rgba(0,0,0,0.35) !important;
  background: rgba(13,148,136,0.08) !important;
}

/* ── Grid Thumbnail ── */
.file-list.view-grid .file-thumbnail {
  width: 100% !important;
  height: 140px !important;
  border-radius: 14px 14px 0 0 !important;
  border: none !important;
  background: linear-gradient(135deg, #0d1420 0%, #0a1828 100%) !important;
  position: relative;
  overflow: hidden;
  flex-shrink: 0 !important;
}

.file-list.view-grid .file-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px 14px 0 0 !important;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.file-list.view-grid li:hover .file-thumbnail img {
  transform: scale(1.06);
}

.file-list.view-grid .file-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%,-50%) !important;
  font-size: 2.8rem !important;
  width: auto !important;
  height: auto !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Overlay-Gradient über Thumbnail */
.file-list.view-grid .file-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(8,14,24,0.85) 0%, transparent 100%);
  pointer-events: none;
}

/* Ordner-Karte: spezielles Styling */
.file-list.view-grid li[data-is-dir="true"] .file-thumbnail {
  background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(13,148,136,0.08) 100%) !important;
}

/* ── Grid Card Body ── */
.file-list.view-grid .vv-grid-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.file-list.view-grid .vv-grid-name {
  font-family: var(--vv-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.file-list.view-grid .vv-grid-meta {
  font-size: 0.68rem;
  color: #475569;
  font-family: var(--vv-font);
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-list.view-grid .vv-grid-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}

/* ── Hide unused columns in Grid ── */
.file-list.view-grid .file-name {
  display: none !important;
}
.file-list.view-grid .file-size,
.file-list.view-grid .file-date,
.file-list.view-grid .file-actions {
  display: none !important;
}

/* ── Grid Checkbox Overlay ── */
.file-list.view-grid .file-checkbox-container {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 10 !important;
  opacity: 0;
  transition: opacity 0.15s;
}
.file-list.view-grid li:hover .file-checkbox-container,
.file-list.view-grid li.selected .file-checkbox-container {
  opacity: 1;
}

/* ── Grid Fav-Button ── */
.file-list.view-grid .file-actions {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  z-index: 10;
  display: flex !important;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.file-list.view-grid li:hover .file-actions,
.file-list.view-grid li.is-favorite .file-actions {
  opacity: 1 !important;
}
.file-list.view-grid .fav-btn {
  background: rgba(8,14,24,0.85) !important;
  backdrop-filter: blur(8px);
  border-radius: 7px !important;
  opacity: 1 !important;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Kein grid in der file-header bei grid mode */
.view-grid-active .file-header { display: none !important; }

/* ================================================================
   VERBESSERTER MP3 PLAYER
   ================================================================ */

#mp3-player {
  background: rgba(6, 10, 18, 0.97) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  backdrop-filter: blur(40px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.8) !important;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.6) !important;
}

.player-container {
  display: grid !important;
  grid-template-columns: 280px 1fr auto !important;
  grid-template-rows: 1fr auto !important;
  align-items: center !important;
  gap: 0 24px !important;
  padding: 14px 28px !important;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Cover Art ── */
.vv-player-cover {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d9488, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(13,148,136,0.4);
  overflow: hidden;
}
.vv-player-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.vv-player-cover svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,0.9);
  z-index: 1;
}
.vv-player-cover-spin {
  animation: vv-cover-spin 12s linear infinite;
}
@keyframes vv-cover-spin {
  to { transform: rotate(360deg); }
}

/* ── Waveform Visualizer (pure CSS) ── */
.vv-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  margin-top: 6px;
}
.vv-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #0d9488, #38bdf8);
  opacity: 0.5;
  animation: vv-wave 1.2s ease-in-out infinite;
  transform-origin: bottom;
}
.vv-wave-bar:nth-child(1)  { height: 40%; animation-delay: 0.0s; }
.vv-wave-bar:nth-child(2)  { height: 70%; animation-delay: 0.1s; }
.vv-wave-bar:nth-child(3)  { height: 100%; animation-delay: 0.2s; }
.vv-wave-bar:nth-child(4)  { height: 60%; animation-delay: 0.15s; }
.vv-wave-bar:nth-child(5)  { height: 80%; animation-delay: 0.3s; }
.vv-wave-bar:nth-child(6)  { height: 50%; animation-delay: 0.05s; }
.vv-wave-bar:nth-child(7)  { height: 90%; animation-delay: 0.25s; }
.vv-wave-bar:nth-child(8)  { height: 65%; animation-delay: 0.1s; }
.vv-wave-bar:nth-child(9)  { height: 45%; animation-delay: 0.35s; }
.vv-wave-bar:nth-child(10) { height: 75%; animation-delay: 0.0s; }
.vv-wave-bar:nth-child(11) { height: 55%; animation-delay: 0.2s; }
.vv-wave-bar:nth-child(12) { height: 85%; animation-delay: 0.15s; }

@keyframes vv-wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.35; }
  50%       { transform: scaleY(1);   opacity: 0.85; }
}

#mp3-player:has(#pause-icon[style*="block"]) .vv-wave-bar {
  /* Pause: Animation einfrieren */
  animation-play-state: paused;
  opacity: 0.2 !important;
}

/* ── Neue Player-Info ── */
.player-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: initial !important;
  min-width: 0;
}

.music-icon {
  display: none !important;
}

.track-info { flex: 1; min-width: 0; }

.track-title {
  font-family: var(--vv-font) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: #e2e8f0 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 6px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-time {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.72rem !important;
  color: #475569 !important;
}

/* ── Progress Ring (SVG) ── */
.vv-progress-ring-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.vv-progress-ring {
  transform: rotate(-90deg);
}
.vv-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 3;
}
.vv-ring-fg {
  fill: none;
  stroke: url(#vv-ring-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}
.vv-ring-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vv-ring-btn svg {
  width: 18px;
  height: 18px;
  color: white;
}

/* ── Player Controls neu ── */
.player-controls {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: initial !important;
}

.player-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 50% !important;
  transition: all 0.18s cubic-bezier(0.16,1,0.3,1) !important;
}
.player-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.16) !important;
  transform: scale(1.1) !important;
}
.player-btn.play-btn {
  background: none !important;
  border: none !important;
}
.player-btn.play-btn:hover { background: none !important; transform: none !important; }

/* ── Seek Bar ── */
.player-progress {
  grid-column: 1 / -1;
  padding: 0 !important;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seek-bar {
  flex: 1;
  height: 3px !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 2px !important;
  cursor: pointer;
  accent-color: #0d9488;
  -webkit-appearance: none;
}
.seek-bar::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.seek-bar::-webkit-slider-thumb {
  width: 12px !important;
  height: 12px !important;
  background: #5eead4 !important;
  box-shadow: 0 0 8px rgba(94,234,212,0.5) !important;
  margin-top: -4.5px;
  transition: transform 0.15s !important;
}
.seek-bar::-webkit-slider-thumb:hover { transform: scale(1.4) !important; }

/* Mobile Player */
@media (max-width: 768px) {
  .player-container {
    grid-template-columns: 1fr auto !important;
    gap: 0 12px !important;
    padding: 10px 14px !important;
  }
  .vv-waveform { display: none; }
  .player-progress { grid-column: 1 / -1; }
  .player-controls { grid-column: 1 / -1; justify-content: center; }
}

/* ================================================================
   VERBESSERTE LEERER-ORDNER-ANZEIGE
   ================================================================ */

.vv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 280px;
  padding: 40px;
  text-align: center;
}

.vv-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15,25,40,0.9), rgba(10,18,30,0.9));
  border: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  animation: vv-float 4s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
@keyframes vv-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.vv-empty-title {
  font-family: var(--vv-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: -0.02em;
  margin: 0;
}

.vv-empty-sub {
  font-size: 0.78rem;
  color: #334155;
  font-family: var(--vv-font);
  max-width: 280px;
  line-height: 1.6;
  margin: 0;
}

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

.vv-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--vv-font);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid;
}
.vv-empty-btn-primary {
  background: rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.3);
  color: #34d399;
}
.vv-empty-btn-primary:hover {
  background: rgba(13,148,136,0.18);
  transform: translateY(-1px);
}
.vv-empty-btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
  color: #64748b;
}
.vv-empty-btn-secondary:hover {
  background: rgba(255,255,255,0.07);
  color: #94a3b8;
}
.vv-empty-btn svg { width: 14px; height: 14px; }

/* ================================================================
   UPLOAD PROGRESS — PER FILE
   ================================================================ */

.vv-upload-progress {
  background: rgba(8, 14, 24, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  backdrop-filter: blur(20px);
  animation: vv-slide-down 0.3s ease;
  display: none;
}
.vv-upload-progress.visible { display: block; }

@keyframes vv-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vv-upload-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.vv-upload-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(13,148,136,0.12);
  border: 1px solid rgba(13,148,136,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: vv-upload-pulse 2s ease-in-out infinite;
}
.vv-upload-icon svg { width: 15px; height: 15px; stroke: #34d399; }
@keyframes vv-upload-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
  50%       { box-shadow: 0 0 0 4px rgba(13,148,136,0.15); }
}

.vv-upload-text { flex: 1; min-width: 0; }
.vv-upload-filename {
  font-family: var(--vv-font);
  font-size: 0.83rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.vv-upload-counter {
  font-size: 0.68rem;
  color: #475569;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.vv-upload-speed {
  font-size: 0.7rem;
  color: #34d399;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.vv-upload-bar-wrap {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  overflow: hidden;
}
.vv-upload-bar {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #38bdf8, #0d9488);
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.2s ease;
  animation: vv-bar-gradient 2s ease-in-out infinite;
  position: relative;
}
.vv-upload-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: vv-bar-sheen 1.4s ease-in-out infinite;
}
@keyframes vv-bar-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes vv-bar-sheen {
  to { left: 110%; }
}

.vv-upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.vv-upload-pct {
  font-size: 0.72rem;
  color: #0d9488;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.vv-upload-files {
  display: flex;
  gap: 4px;
  align-items: center;
}
.vv-upload-file-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.vv-upload-file-dot.done   { background: #10b981; }
.vv-upload-file-dot.active { background: #38bdf8; animation: vv-dot-pulse 1s ease-in-out infinite; }
@keyframes vv-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ================================================================
   SKELETON LOADING — verbessert
   ================================================================ */

.skeleton-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 0 !important;
  grid-template-columns: none !important;
}

.skeleton-bar {
  border-radius: 6px !important;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: vv-skeleton 1.6s ease-in-out infinite !important;
}

.skeleton-thumb {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

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

/* ================================================================
   CUT-PENDING — verbessertes Styling
   ================================================================ */

.cut-pending {
  opacity: 0.55 !important;
  background: rgba(239,68,68,0.06) !important;
  border-color: rgba(239,68,68,0.15) !important;
}

.file-list.view-grid .cut-pending {
  opacity: 0.5 !important;
  filter: grayscale(0.4) !important;
}

/* ================================================================
   DRAG-GHOST — verbessertes Styling
   ================================================================ */

.drag-ghost {
  background: rgba(8,14,24,0.92) !important;
  border: 1px solid rgba(94,234,212,0.3) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-family: var(--vv-font) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #5eead4 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(94,234,212,0.1) !important;
  backdrop-filter: blur(16px) !important;
}

/* ================================================================
   TOOLBAR-ACTIONS — verbesserte Buttons
   ================================================================ */

.toolbar-actions-row {
  align-items: center !important;
  gap: 8px !important;
}

.action-btn-modern {
  font-family: var(--vv-font) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.01em !important;
  border-radius: 10px !important;
  padding: 9px 16px !important;
  gap: 8px !important;
}
.action-btn-modern svg { width: 16px; height: 16px; }

/* ================================================================
   SEARCH — verbessertes Styling
   ================================================================ */

.search-container input {
  font-family: var(--vv-font) !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
  letter-spacing: -0.01em !important;
  background: rgba(8,14,24,0.7) !important;
}

.search-container input::placeholder {
  font-weight: 300 !important;
  color: #334155 !important;
}

/* ================================================================
   SPINNING REFRESH
   ================================================================ */

@keyframes vv-spin {
  to { transform: rotate(360deg); }
}
.spinning { animation: vv-spin 0.7s linear infinite !important; }

/* ================================================================
   RESPONSIVE GRID
   ================================================================ */

@media (max-width: 768px) {
  .file-list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .file-list.view-grid .file-thumbnail {
    height: 110px !important;
  }
}

@media (max-width: 480px) {
  .file-list.view-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1200px) {
  .file-list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
  }
}

/* ================================================================
   DOT-GLOW ANIMATION (Toolbar-Dots)
   ================================================================ */

.dot-glow-anim {
  animation: dot-glow-pulse 2.5s ease-in-out infinite;
}
@keyframes dot-glow-pulse {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50%       { box-shadow: 0 0 10px currentColor; }
}

/* ================================================================
   EXIF-BADGE
   ================================================================ */

.exif-badge {
  font-size: 9px !important;
  width: 14px !important;
  height: 14px !important;
  line-height: 14px !important;
  margin-left: 4px !important;
  background: rgba(14,165,233,0.1) !important;
  border: 1px solid rgba(14,165,233,0.2) !important;
  border-radius: 4px !important;
}

/* ================================================================
   CONTEXT MENU — verbessertes Styling
   ================================================================ */

.context-menu {
  background: rgba(8,14,24,0.96) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(32px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) !important;
  padding: 6px !important;
}
.context-menu-item {
  border-radius: 8px !important;
  font-family: var(--vv-font) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  padding: 8px 11px !important;
  gap: 10px !important;
}
.context-menu-item:hover { background: rgba(255,255,255,0.06) !important; }
.context-menu-item.danger:hover { background: rgba(239,68,68,0.08) !important; }
.context-menu-item svg { width: 15px; height: 15px; opacity: 0.8; }
.context-menu-item kbd {
  font-size: 10px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 5px !important;
  padding: 2px 5px !important;
}
.menu-divider { margin: 4px 0 !important; background: rgba(255,255,255,0.06) !important; }
