/* ==========================================================================
   FASTARCHIVE (EXPERIMENTAL) - AMBIENT GLOW & FROSTED GLASS THEME
   ========================================================================== */

:root {
  --bg-black: #000000;
  --bg-surface: #070707;
  --bg-card: #0c0c0c;
  --bg-hover: #161616;
  --bg-active: #222222;
  
  --border-muted: #181818;
  --border-subtle: #242424;
  --border-strong: #363636;
  --border-bright: #666666;
  --border-glass: rgba(255, 255, 255, 0.12);

  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --text-inverse: #000000;

  --accent-raw: #ffffff;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --header-height: 64px;
  --sidebar-width: 420px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Custom Minimalist Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-black);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  overflow-x: hidden;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  user-select: none;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-divider {
  color: var(--border-strong);
}

/* Header Right Controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-filters-row,
.header-actions-row {
  display: contents;
}

.filter-group {
  display: flex;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  min-width: 66px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

#filterRaw {
  min-width: 120px;
}

.filter-btn + .filter-btn {
  border-left: 1px solid var(--border-subtle);
}

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

.filter-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  font-weight: 600;
}

/* Select Box matching typography with fixed stable width */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 195px;
}

.camera-select {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 34px 8px 14px;
  width: 100%;
  outline: none;
  cursor: pointer;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.camera-select:focus {
  border-color: var(--border-bright);
}

.select-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-secondary);
}

.camera-select option {
  font-family: var(--font-sans);
  font-size: 14px;
  background: #0d0d0d;
  color: #ffffff;
  padding: 8px;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Ambient Glow Header Toggle */
.glow-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0 14px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.glow-toggle-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-secondary);
}

.glow-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 0.25s ease;
}

.glow-toggle-btn.active {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.glow-toggle-btn.active .glow-indicator {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   AMBIENT GLOW STATE (OFF BY DEFAULT UNLESS .glow-on CLASS IS PRESENT)
   ========================================================================== */

/* Clean visual toggling without any layout or scale shifts */
html:not(.glow-on) .card-glow,
html:not(.glow-on) .lightbox-ambient {
  display: none !important;
}

html:not(.glow-on) .card-inner {
  border-color: var(--border-muted) !important;
  box-shadow: none !important;
}

html:not(.glow-on) .photo-card:hover .card-inner {
  border-color: var(--border-strong) !important;
  box-shadow: none !important;
}

html:not(.glow-on) .viewer-img {
  filter: none !important;
}

html:not(.glow-on) .viewer-stage {
  background: var(--bg-black) !important;
}

html:not(.glow-on) .lightbox-topbar {
  background: var(--bg-black) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.glow-on) .viewer-sidebar {
  background: var(--bg-surface) !important;
  border-left: 1px solid var(--border-subtle) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

html:not(.glow-on) .sidebar-section.header-section {
  background: transparent !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

html:not(.glow-on) .meta-label {
  color: var(--text-muted) !important;
}

html:not(.glow-on) .meta-grid {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-muted) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.glow-on) .sidebar-footer {
  background: var(--bg-surface) !important;
  border-top: 1px solid var(--border-subtle) !important;
}

html:not(.glow-on) .topbar-btn {
  background: transparent !important;
  border: 1px solid var(--border-subtle) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.glow-on) .topbar-btn:hover {
  border-color: var(--border-bright) !important;
  color: var(--text-primary) !important;
  background: var(--bg-hover) !important;
}

html:not(.glow-on) .zoom-toolbar {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.glow-on) .zoom-level,
html:not(.glow-on) .zoom-reset-btn {
  border-color: var(--border-subtle) !important;
}

html:not(.glow-on) .nav-arrow {
  background: rgba(0, 0, 0, 0.75) !important;
  border: 1px solid var(--border-subtle) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html:not(.glow-on) .nav-arrow:hover {
  background: var(--bg-surface) !important;
  border-color: var(--border-bright) !important;
  color: var(--text-primary) !important;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.main-layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  position: relative;
  overflow-x: hidden;
}

/* Timeline Sidebar Drawer */
.timeline-sidebar {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 340px;
  height: calc(100vh - var(--header-height));
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.timeline-sidebar.open {
  transform: translateX(0);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.timeline-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

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

.timeline-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.timeline-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-left-color: var(--text-primary);
}

.timeline-badge {
  font-size: 12px;
  color: var(--text-muted);
}

/* Gallery Viewport */
.gallery-viewport {
  flex: 1;
  padding: 36px 48px 100px 48px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

/* ==========================================================================
   DATE GROUPS & GALLERY GRID
   ========================================================================== */

.date-group {
  margin-bottom: 56px;
  overflow: visible;
}

.date-group-header {
  position: relative;
  z-index: 5;
  background: transparent;
  padding: 8px 0 16px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.date-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.date-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.85);
}

.date-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.85);
}

.date-meta-stats {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.85);
}

/* Photo Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  overflow: visible;
  isolation: isolate;
}

/* Photo Card */
.photo-card {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: visible;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  outline: none !important;
  box-sizing: border-box;
}

/* Ambient Radiant Card Glow Backdrop (Strictly behind all photos) */
.card-glow {
  position: absolute;
  inset: -55px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  filter: blur(55px) saturate(260%) brightness(0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  will-change: opacity;
  z-index: 1;
}

/* Card Inner Frame (Strictly above all glows across the grid) */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.photo-card:hover .card-inner {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.photo-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--bg-card);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.photo-thumbnail.loaded {
  opacity: 1;
}

/* Raw Badge */
.raw-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000000;
  border: 1px solid var(--border-strong);
  color: var(--accent-raw);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  z-index: 2;
  pointer-events: none;
}

/* Card Hover Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
  overflow: hidden;
  box-sizing: border-box;
}

.photo-card:hover .card-overlay {
  opacity: 1;
}

.overlay-top {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.overlay-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.overlay-filename {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-meta-cam {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Quick Download Button (Top Right) */
.card-dl-btn {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.card-dl-btn:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

/* Card Dual Download (Top Right) */
.card-dual-dl {
  display: flex;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid var(--border-strong);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.card-dual-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.card-dual-btn + .card-dual-btn {
  border-left: 1px solid var(--border-strong);
}

.card-dual-btn:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

/* ==========================================================================
   FULLSCREEN PHOTO VIEWER LIGHTBOX WITH AMBIENT GLOW & GLASSMORPHISM
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.lightbox-modal.hidden {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: #000000;
  z-index: 0;
}

/* Dynamic Ambient Glow Layers */
.lightbox-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ambient-layer {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  background-size: cover;
  background-position: center;
  filter: blur(95px) saturate(240%) brightness(0.6);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.05);
  will-change: opacity, transform;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow: hidden;
}

/* Focus Outline Reset (Prevents white box outline on button click + keyboard arrow nav) */
button:focus,
button:focus-visible,
.nav-arrow:focus,
.nav-arrow:focus-visible,
.topbar-btn:focus,
.topbar-btn:focus-visible,
.zoom-btn:focus,
.zoom-btn:focus-visible,
.filter-btn:focus,
.filter-btn:focus-visible,
.icon-btn:focus,
.icon-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Lightbox Topbar with Frosted Glass (Strict 64px matching app-header) */
.lightbox-topbar {
  height: var(--header-height);
  background: rgba(6, 6, 6, 0.4);
  backdrop-filter: blur(35px) saturate(180%);
  -webkit-backdrop-filter: blur(35px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  user-select: none;
}

.viewer-top-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.viewer-counter {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Zoom Toolbar */
.zoom-toolbar {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-glass);
  background: rgba(16, 16, 16, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.zoom-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
  font-size: 12px;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.zoom-level {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0 10px;
  min-width: 58px;
  text-align: center;
  border-left: 1px solid var(--border-glass);
  border-right: 1px solid var(--border-glass);
}

.zoom-reset-btn {
  border-left: 1px solid var(--border-glass);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
}

.viewer-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-btn {
  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.topbar-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.topbar-btn.close-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Lightbox Main Content (Split) */
.lightbox-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Left: Image Viewport Stage (Transparent to let ambient glow radiate) */
.viewer-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  user-select: none;
}

.viewer-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.viewer-img {
  width: 100%;
  height: 100%;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 130px);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: center center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: zoom-in;
}

.viewer-img.zoomed {
  cursor: grab;
}

.viewer-img.dragging {
  cursor: grabbing !important;
  transition: none !important;
}

/* Nav Arrows with Frosted Glass */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 48px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.nav-prev {
  left: 20px;
}

.nav-next {
  right: 20px;
}

/* Right: Metadata Sidebar with Frosted Glass (Glassmorphism) */
.viewer-sidebar {
  width: var(--sidebar-width);
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(45px) saturate(190%) contrast(92%);
  -webkit-backdrop-filter: blur(45px) saturate(190%) contrast(92%);
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.6);
  transition: margin-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.viewer-sidebar.collapsed {
  margin-right: calc(-1 * var(--sidebar-width));
}

.sidebar-section.header-section {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.meta-filename {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.sidebar-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-x: hidden;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.meta-value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.meta-value.mono {
  font-family: var(--font-mono);
  font-size: 14px;
}

/* EXIF Technical Grid in Glass */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-sizing: border-box;
  width: 100%;
}

.grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grid-item .meta-value {
  font-size: 15px;
  font-weight: 500;
}

/* Sidebar Footer & Unified Solid White Download Buttons */
.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.35);
  overflow-x: hidden;
  box-sizing: border-box;
}

.download-container {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Unified Single Download Button (Solid White) */
.btn-download-single {
  width: 100%;
  height: 52px;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-download-single:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* Unified Split Dual Download Button (Solid White) */
.btn-download-split {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 52px;
  border: 1px solid #ffffff;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
}

.split-part {
  flex: 1;
  height: 100%;
  background: #ffffff;
  color: #000000;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
  min-width: 0;
  padding: 0 10px;
  white-space: nowrap;
}

.split-part + .split-part {
  border-left: 1px solid #000000;
}

.split-part:hover {
  background: #000000;
  color: #ffffff;
}

.split-part.split-raw {
  background: #ffffff;
  color: #000000;
}

.split-part.split-raw:hover {
  background: #000000;
  color: #ffffff;
}

/* ==========================================================================
   SPINNERS & LOADERS
   ========================================================================== */

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50vh;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.stage-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

/* ==========================================================================
   EMPTY STATE & BUTTONS
   ========================================================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
}

.empty-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-minimal {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-minimal:hover {
  background: #ffffff;
  color: #000000;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.9);
  animation: toastIn 0.2s ease-out;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE SMARTPHONES)
   ========================================================================== */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .header-stats {
    display: none;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 98px;
    --sidebar-width: 100%;
  }

  /* Compact 2-Row Header (Fixed with precise height matching margin-top) */
  .app-header {
    height: auto;
    min-height: 56px;
    padding: 12px 16px 10px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .main-layout {
    margin-top: var(--header-height);
  }

  /* Row 1: Brand on left, Actions on right */
  .header-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
  }

  .brand-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: visible;
  }

  /* Row 1 Actions: Timeline, Refresh, Secret Trigger (Glow toggle hidden on mobile) */
  .header-actions-row {
    position: absolute;
    top: 11px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .glow-toggle-btn {
    display: none !important;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Row 2: Filter buttons and Camera dropdown in 2 clean columns */
  .header-filters-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .header-filters-row .filter-group {
    flex: 1;
    display: flex;
    height: 34px;
  }

  .header-filters-row .filter-btn {
    flex: 1;
    text-align: center;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-filters-row .select-wrapper {
    flex: 1.15;
    width: 100%;
    min-width: 0;
    height: 34px;
  }

  .header-filters-row .camera-select {
    width: 100%;
    height: 34px;
    padding: 6px 28px 6px 10px;
    font-size: 11px;
    max-width: 100%;
  }

  /* Disable radiant card glow and overlays on mobile */
  .card-glow,
  .ambient-layer {
    display: none !important;
  }

  .card-overlay {
    display: none !important;
  }

  .photo-card:hover .card-inner {
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
  }

  /* Lightbox touch-action & zoom fix */
  .lightbox-modal,
  .viewer-stage,
  .viewer-image-wrapper,
  .viewer-img {
    touch-action: none !important;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Gallery Viewport */
  .gallery-viewport {
    padding: 10px 10px 60px 10px;
  }

  .date-group {
    margin-bottom: 28px;
  }

  .date-group-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .date-title {
    font-size: 16px;
  }

  .date-subtitle {
    font-size: 10px;
  }

  .date-meta-stats {
    font-size: 11px;
  }

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

  /* Lightbox / Viewer Mobile Bottom Sheet */
  .lightbox-topbar {
    height: 52px;
    padding: 0 16px;
  }

  .viewer-controls {
    gap: 8px;
  }

  .topbar-btn {
    width: 32px;
    height: 32px;
  }

  .topbar-btn svg {
    width: 16px;
    height: 16px;
  }

  .viewer-counter {
    font-size: 12px;
  }

  .zoom-toolbar {
    display: none;
  }

  .nav-arrow {
    display: none; /* Mobile touch swipe replaces arrow buttons */
  }

  .viewer-sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 75vh;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    z-index: 50;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.98);
    transform: translateY(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .viewer-sidebar.collapsed {
    transform: translateY(100%);
    margin-right: 0;
  }

  .sidebar-section.header-section {
    padding: 14px 18px;
  }

  .meta-filename {
    font-size: 13px;
  }

  .sidebar-body {
    padding: 14px 18px;
    max-height: calc(75vh - 140px);
    overflow-y: auto;
    gap: 12px;
  }

  .meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 14px;
  }

  .sidebar-footer {
    padding: 12px 18px;
  }

  .download-container {
    width: 100%;
  }

  .btn-download,
  .btn-download-split {
    width: 100%;
    height: 46px;
    font-size: 12px;
    font-weight: 700;
  }

  .split-part {
    font-size: 12px;
    padding: 0 12px;
  }

  /* Timeline Drawer */
  .timeline-sidebar {
    width: min(320px, 85vw);
  }

  .timeline-header {
    padding: 16px 20px;
  }

  .timeline-item {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 12px;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-title {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .modal-body {
    padding: 16px 18px;
    gap: 14px;
  }

  .upload-body {
    padding: 16px 18px;
    max-height: calc(94vh - 150px);
    gap: 16px;
  }

  .upload-dropzone {
    padding: 24px 14px;
  }

  .dropzone-title {
    font-size: 11px;
  }

  .dropzone-desc {
    font-size: 9px;
    margin-bottom: 14px;
  }

  .modal-footer {
    padding: 14px 18px;
  }

  .modal-input {
    height: 46px;
    font-size: 16px; /* Prevents iOS auto-zoom */
  }

  .btn-primary,
  .btn-secondary {
    height: 44px;
    font-size: 12px;
  }

  .upload-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .upload-actions .btn-secondary,
  .upload-actions .btn-primary {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
  }

  .upload-footer {
    flex-direction: column-reverse;
    gap: 10px;
    align-items: stretch;
  }

  .upload-status-summary {
    text-align: center;
    font-size: 11px;
  }

  .upload-file-row {
    padding: 10px 12px;
  }

  .file-name {
    font-size: 12px;
  }
}

/* Extra small mobile phones (<= 380px) */
@media (max-width: 380px) {
  .photos-grid {
    gap: 6px;
  }

  .card-dual-dl {
    gap: 2px;
  }

  .card-dual-btn {
    padding: 2px 4px;
    font-size: 9px;
  }
}


/* ==========================================================================
   SECRET TRIGGER & MODALS (PASSWORD & UPLOAD PANEL)
   ========================================================================== */

/* Invisible secret trigger in top right corner (minimal 20x20 hit area) */
.secret-trigger {
  position: fixed;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  z-index: 150;
  cursor: default !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  opacity: 0 !important;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}

/* Generic Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.92);
}

.modal-card {
  position: relative;
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.98);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-card {
  max-width: 400px;
}

.upload-card {
  max-width: 660px;
  max-height: 90vh;
}

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

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.modal-close-btn {
  border-radius: 0;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: var(--bg-black);
}

.upload-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 160px);
  gap: 24px;
}

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

.password-card .modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.password-card .modal-footer .btn-secondary,
.password-card .modal-footer .btn-primary {
  width: 100%;
}

.upload-footer {
  justify-content: space-between;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-actions .btn-secondary,
.upload-actions .btn-primary {
  min-width: 165px;
}

.upload-status-summary {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Forms & Inputs */
.input-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.modal-input {
  width: 100%;
  height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 0 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  user-select: text;
  -webkit-user-select: text;
}

.modal-input:focus {
  border-color: var(--border-bright);
  background-color: var(--bg-hover);
}

.input-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: #ff5555;
  margin-top: -8px;
}

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

/* Buttons */
.btn-primary {
  height: 42px;
  padding: 0 24px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  box-sizing: border-box;
}

.btn-primary:hover:not(:disabled) {
  background-color: #e5e5e5;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-secondary {
  height: 42px;
  padding: 0 24px;
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

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

.btn-text-danger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.15s ease;
  padding: 4px 8px;
}

.btn-text-danger:hover {
  color: #ff5555;
}

/* Drag & Drop Zone */
.upload-dropzone {
  border: 1px dashed var(--border-strong);
  border-radius: 0;
  background-color: var(--bg-card);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--border-bright);
  background-color: var(--bg-hover);
}

.dropzone-icon {
  color: var(--text-secondary);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.upload-dropzone:hover .dropzone-icon,
.upload-dropzone.dragover .dropzone-icon {
  color: var(--text-primary);
}

.dropzone-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.dropzone-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.dropzone-btn {
  pointer-events: auto;
}

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

/* Upload Queue Section */
.upload-queue-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-queue-section.hidden {
  display: none;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-muted);
}

.queue-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.upload-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Single File Queue Row */
.upload-file-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 0;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.upload-file-row.status-uploading {
  border-color: var(--border-strong);
  background-color: var(--bg-hover);
}

.upload-file-row.status-success {
  border-color: var(--border-subtle);
}

.upload-file-row.status-error {
  border-color: rgba(244, 67, 54, 0.4);
}

.file-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.file-type-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-transform: uppercase;
  flex-shrink: 0;
}

.file-type-badge.badge-cr2 {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 800;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.file-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.file-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.file-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.file-status-label.success {
  color: #ffffff;
  font-weight: 600;
}

.file-status-label.error {
  color: #ff5555;
}

.file-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.file-remove-btn:hover {
  color: var(--text-primary);
}

/* Sequential File Progress Bar */
.file-progress-container {
  width: 100%;
  height: 2px;
  background-color: var(--border-muted);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.file-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #ffffff;
  border-radius: 0;
  transition: width 0.15s ease;
}

.file-progress-bar.success {
  background-color: #ffffff;
}

.file-progress-bar.error {
  background-color: #ff5555;
}

.file-progress-bar.uploading {
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


