/* Atelier by GallusTech Modern Design System */
/* Native system typography stack (zero external Google Fonts dependency) */

:root {
  --bg-main: #0f141c;
  --polaroid-bg: #fcfaf5;
  --polaroid-text: #1e293b;
  --polaroid-sub: #64748b;
  --accent-primary: #6366f1;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

  --font-title: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-handwriting: "Segoe Print", "Bradley Hand", "Chalkboard SE", "Marker Felt", cursive, sans-serif;
}

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

/* Enforce automatic EXIF orientation reading for all image elements */
img {
  image-orientation: from-image;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.8) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  height: 100vh;
  min-height: 100vh;
  line-height: 1.5;
  overflow: hidden;
}

/* Folder Description Banner (.desc / .description dotfiles) */
.folder-desc-banner {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(10px);
}

.folder-comment {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 2px;
}

/* App Header & Navigation Bar (Universal WebOS Top Bar) */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--menu-bar-bg, rgba(10, 13, 20, 0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.55rem 1.25rem;
  height: 52px;
  box-sizing: border-box;
  color: var(--text-main);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.app-launcher-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-launcher-btn:hover,
.app-launcher-btn.active {
  background: var(--bg-card, rgba(255, 255, 255, 0.08));
  border-color: var(--border-color, rgba(255, 255, 255, 0.15));
}

.brand-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
  color: var(--text-muted);
}

.app-launcher-menu {
  position: absolute;
  top: 48px;
  left: 0;
  background: var(--menu-bar-bg, var(--bg-card, rgba(15, 23, 42, 0.96)));
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  min-width: 270px;
  width: max-content;
  max-width: 380px;
  padding: 0.6rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text-main);
  animation: launcherFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes launcherFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-launcher-search-box {
  position: relative;
  margin-bottom: 0.4rem;
}

.app-launcher-search-input {
  width: 100%;
  padding: 0.45rem 0.65rem 0.45rem 2rem;
  border-radius: 8px;
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  color: var(--text-main, #ffffff);
  font-size: 0.82rem;
  outline: none;
  transition: all 0.15s ease;
}

.app-launcher-search-input:focus {
  border-color: var(--accent-primary, #6366f1);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.app-launcher-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}

.app-launcher-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 480px;
}

/* Category Row with Flyout Trigger */
.app-launcher-cat-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.app-launcher-cat-row:hover,
.app-launcher-cat-row.active {
  background: var(--border-color-hover, rgba(99, 102, 241, 0.2));
  border-color: var(--border-color, rgba(255, 255, 255, 0.12));
  color: #fff;
  transform: translateX(2px);
}

.app-launcher-cat-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.app-launcher-cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-launcher-cat-count {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
}

.app-launcher-cat-arrow {
  font-size: 0.9rem;
  color: var(--text-muted, #94a3b8);
  transition: all 0.15s ease;
}

.app-launcher-cat-row:hover .app-launcher-cat-arrow,
.app-launcher-cat-row.active .app-launcher-cat-arrow {
  color: var(--accent-primary, #818cf8);
  transform: translateX(2px);
}

/* Floating Flyout Submenu */
.app-launcher-flyout-submenu {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  background: var(--menu-bar-bg, var(--bg-card, rgba(15, 23, 42, 0.98)));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  min-width: 290px;
  max-width: 420px;
  width: max-content;
  padding: 0.55rem;
  z-index: 100005;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: flyoutFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes flyoutFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.app-launcher-flyout-header {
  padding: 0.25rem 0.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary, #818cf8);
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  margin-bottom: 0.2rem;
}

.app-launcher-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.app-launcher-item:hover {
  background: var(--border-color-hover, rgba(99, 102, 241, 0.2));
  border-color: var(--border-color, rgba(255, 255, 255, 0.1));
  color: #fff;
  transform: translateX(2px);
}

.app-launcher-icon {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  border-radius: 8px;
  flex-shrink: 0;
}

.app-launcher-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.app-launcher-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-launcher-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* Desktop Surface & Icon Shortcuts Grid */
.desktop-surface {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  z-index: 1;
  pointer-events: auto;
  user-select: none;
}

.desktop-shortcuts-grid {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.5rem 1.75rem;
  max-height: calc(100vh - 130px);
}

.desktop-shortcut-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  padding: 0.65rem 0.4rem;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  color: #fff;
}

.desktop-shortcut-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.desktop-shortcut-card:active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  transform: scale(0.96);
}

.desktop-shortcut-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.desktop-shortcut-icon img.desktop-shortcut-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.desktop-shortcut-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.85rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.desktop-shortcuts-zone.drag-active {
  background: rgba(99, 102, 241, 0.08);
  outline: 2px dashed rgba(99, 102, 241, 0.5);
  outline-offset: -4px;
  border-radius: 16px;
}

.desktop-shortcut-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), #ec4899);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-glow);
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}

/* Dynamic App Header Contextual Zone */
.app-header-zone {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  overflow: visible;
}

.explorer-header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: nowrap;
}

.system-tray-section {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* -------------------------------------------------------------
 * Breadcrumbs Bar (Dedicated Explorer Navigation Zone)
 * ------------------------------------------------------------- */
.webos-explorer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

.breadcrumbs-container {
  width: 100%;
  max-width: var(--max-width, 1600px);
  margin: 0.6rem auto 0.2rem auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.breadcrumbs::-webkit-scrollbar {
  height: 4px;
}

.breadcrumbs::-webkit-scrollbar-thumb {
  background: var(--border-color, rgba(255, 255, 255, 0.15));
  border-radius: 4px;
}

.crumb-item {
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 6px;
}

.crumb-item:hover {
  color: var(--accent-primary, #6366f1);
  background: var(--border-color-hover, rgba(255, 255, 255, 0.06));
}

.crumb-separator {
  color: var(--text-muted, #94a3b8);
  opacity: 0.45;
  font-size: 0.75rem;
  user-select: none;
}

.crumb-active {
  color: var(--text-main, #f8fafc);
  font-weight: 600;
  background: var(--bg-card, rgba(255, 255, 255, 0.08));
}

/* Toolbar Controls */
.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}

.search-input {
  width: 100%;
  background: var(--bg-card, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 0.5rem 2.5rem 0.5rem 2.4rem;
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: var(--bg-card, rgba(255, 255, 255, 0.1));
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-clear-btn {
  position: absolute;
  right: 2.35rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card, rgba(255, 255, 255, 0.08));
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  background: var(--border-color-hover, rgba(255, 255, 255, 0.2));
  color: var(--text-main);
}

.search-filter-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.search-filter-btn svg {
  pointer-events: none;
}

.search-filter-btn:hover, .search-filter-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.08);
}

/* Search Active Results Banner */
.search-results-banner {
  background: var(--border-color-hover, rgba(99, 102, 241, 0.12));
  border: 1px solid var(--border-color, rgba(99, 102, 241, 0.3));
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeIn 0.25s ease;
}

.search-results-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-results-badge {
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.search-results-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

.exit-search-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.exit-search-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Button & Pill Controls */
.control-btn-group {
  display: flex;
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-toggle {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-toggle:hover {
  background: var(--border-color-hover, rgba(99, 102, 241, 0.15));
  color: var(--text-main);
}

.btn-toggle.active {
  color: #fff;
  background: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.fav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 12px;
  margin-left: 4px;
  line-height: 1.2;
}

.btn-toggle.active .fav-count-badge {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Vector Flag & Language Selector System */
.flag-icon {
  width: 19px;
  height: 13px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-selector-container {
  position: relative;
  display: inline-flex;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-main);
}

.lang-dropdown-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--menu-bar-bg, var(--bg-card));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  min-width: 165px;
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(14px);
  padding: 4px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.lang-option-btn:hover {
  background: var(--border-color-hover, rgba(99, 102, 241, 0.15));
  color: var(--text-main);
}

.lang-option-btn.active {
  color: var(--accent-primary);
}

.lang-option-btn .lang-code {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* View Mode Selector Dropdown */
.view-selector-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  height: 32px;
  box-sizing: border-box;
}

.view-dropdown-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.view-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  min-width: 160px;
  z-index: 99999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  box-sizing: border-box;
}

.view-option-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.15s ease;
}

.view-option-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
}

.view-option-btn.active {
  background: rgba(99, 102, 241, 0.25);
  font-weight: 600;
  color: var(--accent-primary);
}

/* Sort Group */
.sort-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  height: 32px;
}

.sort-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 0.6rem;
  height: 32px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.sort-select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
}

.sort-select option {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 0.5rem;
}

/* Category Filters Bar */
.filter-bar {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 0 0;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill-btn:hover, .pill-btn.active {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  border-color: var(--accent-primary);
}

.gallery-stats {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Main Workspace Gallery Container */
.gallery-container {
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 4rem 0;
  padding: 0 1.25rem;
}

/* Subfolders Section */
.section-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================================
   ENLARGED & CENTERED FOLDER CARDS DESIGN
   ============================================================= */
.folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.folder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.folder-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-color-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.folder-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--accent-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.folder-card:hover .folder-icon-wrapper {
  transform: scale(1.12) rotate(-4deg);
}

.folder-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  image-orientation: from-image;
}

.folder-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.folder-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

/* =============================================================
   GALLERY VIEW PLUGINS STYLES
   (Decoupled into modular stylesheets under css/views/*.css)
   ============================================================= */

.gps-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}

.gps-badge:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

/* Lightbox Modal Media Viewer */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 9, 15, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-header {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
}

.lightbox-comment {
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: 4px;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}

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

.zoom-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.zoom-badge.zoomed {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.explorer-img {
  width: 100%;
  height: 100%;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  cursor: zoom-in;
  user-select: none;
  touch-action: none;
  transform-origin: center center;
  will-change: transform;
  image-orientation: from-image;
}

.explorer-img.is-panning,
.explorer-img.dragging {
  cursor: grabbing !important;
}

.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: hidden;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev { left: 1.5rem; }
.lightbox-nav-next { right: 1.5rem; }

.lightbox-content-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.lightbox-content-wrapper video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  outline: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-audio-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 400px;
  text-align: center;
}

.lightbox-audio-card audio {
  width: 100%;
}

.lightbox-footer {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

kbd {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-family: inherit;
  color: #fff;
}

/* Empty State / Loading State */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  color: var(--text-muted);
  gap: 1rem;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
/* Responsive Mobile Scaling Optimization (768px and smaller) */
@media (max-width: 768px) {
  .app-header {
    padding: 0.6rem 0.85rem !important;
  }
  
  .header-top-row {
    gap: 0.5rem;
  }

  .brand-title {
    font-size: 1.1rem !important;
  }

  .brand-logo {
    width: 26px !important;
    height: 26px !important;
  }

  .toolbar-controls {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0.35rem !important;
  }

  .btn-toggle,
  .view-btn,
  .search-box,
  .search-input {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.775rem !important;
    height: auto !important;
  }

  .search-box {
    width: 100% !important;
    margin-top: 0.25rem !important;
  }

  .filter-bar {
    padding: 0 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }

  .filter-btn {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.75rem !important;
  }

  .breadcrumbs {
    font-size: 0.8rem !important;
    padding: 0.2rem 0 !important;
  }

  .gallery-container {
    padding: 0 0.75rem !important;
  }

  .folders-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 0.85rem !important;
    margin-bottom: 1.5rem !important;
  }

  .folder-card {
    padding: 0.85rem 0.65rem !important;
    gap: 0.5rem !important;
  }

  .folder-icon-wrapper {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.75rem !important;
  }

  .folder-title {
    font-size: 0.85rem !important;
  }

  .polaroid-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
    gap: 0.85rem !important;
    padding: 0.75rem 0 !important;
  }

  .polaroid-card {
    padding: 8px 8px 12px 8px !important;
    border-radius: 2px !important;
  }

  .polaroid-card::before {
    width: 48px !important;
    height: 14px !important;
    top: -8px !important;
  }

  .polaroid-caption {
    padding-top: 6px !important;
  }

  .polaroid-caption span {
    font-size: 0.85rem !important;
  }

  .polaroid-subcaption {
    font-size: 0.675rem !important;
  }

  .modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .lightbox-footer {
    display: none !important;
  }

  #imageExplorerControls {
    display: none !important;
  }

  .lightbox-header {
    padding: 0.6rem 0.85rem !important;
    gap: 0.5rem;
  }

  .lightbox-title {
    font-size: 0.95rem !important;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lightbox-actions {
    gap: 0.3rem !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .lightbox-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.9rem !important;
    flex-shrink: 0;
  }

  .lightbox-nav-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
  }

  .lightbox-nav-prev { left: 0.35rem !important; }
  .lightbox-nav-next { right: 0.35rem !important; }
}

@media (max-width: 480px) {
  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .modern-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
}

/* Admin Modal & Badge Styles */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.admin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-content {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: adminModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes adminModalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.admin-modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-modal-body {
  padding: 1.5rem;
}

.admin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.admin-error-msg {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.admin-success-msg {
  color: #34d399;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.btn-toggle.admin-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Dotfile Edit Buttons */
.edit-dotfile-btn, .edit-media-comment-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.edit-dotfile-btn:hover, .edit-media-comment-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Folder Protection Badges */
.folder-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.private-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.protected-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.unlocked-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.folder-lock-icon {
  font-size: 2.2rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
}

.relock-btn {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.relock-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.polaroid-card:hover .video-play-overlay,
.grid-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent-primary);
  border-color: #ffffff;
}

.lightbox-exif-panel {
  position: absolute;
  right: 1.5rem;
  top: 4.5rem;
  width: 360px;
  max-width: calc(100vw - 3rem);
  max-height: calc(100vh - 11rem);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.2);
  z-index: 25;
  overflow-y: auto;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.exif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.exif-panel-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exif-panel-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.meta-section-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.meta-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary, #a5b4fc);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 0.825rem;
  gap: 0.75rem;
  line-height: 1.4;
}

.meta-row-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.meta-row-value {
  color: var(--text-main, #f8fafc);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.meta-sample-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.meta-sample-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #cbd5e1;
}

.meta-sample-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-sample-item span:last-child {
  color: #94a3b8;
  flex-shrink: 0;
}

.exif-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.exif-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.exif-value {
  font-size: 0.875rem;
  color: var(--text-main, #f8fafc);
  font-weight: 500;
  word-break: break-word;
}

.exif-camera-box {
  background: var(--bg-card, rgba(99, 102, 241, 0.1));
  border: 1px solid var(--border-color, rgba(99, 102, 241, 0.3));
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--accent-primary, #6366f1);
  font-weight: 600;
  font-size: 0.875rem;
}

.exif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
}


.exif-maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.exif-maps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  color: white;
}

.folder-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.folder-map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
  color: white !important;
}

/* Drag & Drop Upload Overlay & Progress Modal */
.drop-zone-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px dashed var(--accent-primary);
  margin: 1rem;
  border-radius: var(--radius-xl);
  pointer-events: auto;
  animation: fadeIn 0.2s ease;
}

.drop-zone-content,
.drop-zone-content * {
  text-align: center;
  color: var(--text-main);
  pointer-events: none !important;
}

.drop-zone-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce 1.2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.drop-zone-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

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

.upload-progress-bar-container {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
  position: relative;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #3b82f6);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.2s ease;
  border-radius: 12px;
}

/* Drag & Drop Internal Item Moving Styles */
.drag-handle {
  cursor: grab !important;
}

.drag-handle:active {
  cursor: grabbing !important;
}

.polaroid-card.dragging,
.grid-card.dragging,
.mosaic-card.dragging,
.folder-card.dragging,
.list-table-row.dragging {
  opacity: 0.35 !important;
  transform: scale(0.95) !important;
  filter: grayscale(30%) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.drop-hover {
  outline: 3px dashed #6366f1 !important;
  outline-offset: -3px;
  background: rgba(99, 102, 241, 0.25) !important;
  transform: scale(1.04) !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4) !important;
}

.crumb-item.drop-hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 2px 8px;
  transform: scale(1.08) !important;
}

/* Delete Item Buttons */
.delete-item-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.delete-item-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.15);
  opacity: 1;
}

.folder-card, .polaroid-card, .grid-card {
  position: relative;
}

.folder-card .delete-item-btn {
  top: 10px;
  right: 10px;
}

