@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-dark-base: #04080e;
  --panel-glass: rgba(10, 16, 28, 0.5);
  --panel-glass-hover: rgba(15, 23, 42, 0.65);
  --panel-glass-light: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-glow: rgba(16, 185, 129, 0.3); /* Green accent */
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  /* Emerald Accent */
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.25);
  
  --border-radius-lg: 14px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

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

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-dark-base);
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Background Wallpaper */
.wallpaper-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -3;
  transition: background 0.8s ease;
}

.glass-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
  backdrop-filter: saturate(130%) blur(1px);
  z-index: -2;
}

/* Wrapper */
.app-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* 1. TOP CAROUSEL NAVIGATION */
.top-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 80px 10px 80px;
  gap: 12px;
  z-index: 10;
  flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(4, 8, 14, 0.4) 0%, transparent 100%);
}

.slider-nav-btn {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.add-page-top-btn {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.add-page-top-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.top-tabs-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  max-width: 900px;
  padding: 4px 8px;
  scrollbar-width: none; /* Firefox */
}

.top-tabs-slider::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* Page capsule tab item */
.top-page-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.top-page-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Selected Tab Capsule */
.top-page-item.active {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #030712;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Edit/Delete tags inside slide caps (only show on hover if not active) */
.page-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.25s ease;
}

.top-page-item:hover .page-item-actions {
  opacity: 0.8;
  max-width: 40px;
}

.page-action-btn {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.page-action-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.top-page-item.active .page-action-btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

.page-action-btn.delete-btn:hover {
  color: #ef4444;
}

/* 2. CENTERED SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 540px;
  max-width: 90%;
  background: rgba(10, 16, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-glow);
  border-radius: 99px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
}

.search-overlay.hidden {
  transform: translateX(-50%) translateY(-30px);
  opacity: 0;
  pointer-events: none;
}

.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.search-overlay-icon {
  color: var(--text-muted);
  margin-right: 8px;
}

#global-search {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.search-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* 3. MAIN DASHBOARD VIEWPORT (Masonry columns) */
.boards-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 16px 100px 80px 64px; /* Space on right for floating bar */
}

.page-header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 10px;
}

.active-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  border-bottom: 1px dashed transparent;
  outline: none;
  cursor: text;
  transition: all 0.2s ease;
  min-width: 80px;
}

.active-page-title:focus {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.edit-indicator {
  opacity: 0;
  color: var(--text-muted);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.page-header-title-row:hover .edit-indicator {
  opacity: 0.7;
}

/* Masonry Columns */
.boards-grid {
  column-width: 310px;
  column-gap: 22px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* 4. BOARD CARD STYLING (Matches Screenshot) */
.board-card {
  break-inside: avoid;
  margin-bottom: 22px;
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  background: var(--panel-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.board-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  background: var(--panel-glass-hover);
}

/* Subtly color header text instead of huge colored bar */
.board-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.board-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.board-color-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.board-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  border-bottom: 1px dashed transparent;
  padding: 1px 2px;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
  cursor: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-title:focus {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: currentColor;
}

.board-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.board-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.board-action-btn:hover {
  background: var(--panel-glass-light);
  color: var(--text-primary);
}

.board-action-btn.delete:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* Bookmark List items */
.bookmarks-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 40px;
}

.bookmarks-list.dragover {
  background: rgba(16, 185, 129, 0.06);
  outline: 2px dashed rgba(16, 185, 129, 0.25);
  border-radius: var(--border-radius-md);
}

.bookmark-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--border-radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: grab;
  transition: all 0.2s ease;
  user-select: none;
}

.bookmark-item:hover {
  background: var(--panel-glass-light);
  border-color: rgba(255, 255, 255, 0.04);
}

.bookmark-item.dragging {
  opacity: 0.35;
  transform: scale(0.97);
  border: 1px dashed var(--accent-emerald);
}

.bookmark-link-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-decoration: none;
  min-width: 0;
}

.bookmark-favicon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookmark-favicon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bookmark-favicon svg {
  width: 11px;
  height: 11px;
  color: var(--text-muted);
}

.bookmark-text-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bookmark-title-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #e2e8f0; /* White/slate text exactly like screenshot */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  transition: filter 0.2s ease;
}

.bookmark-url-host {
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  display: none; /* Hide host domain to make clean, compact look matching image */
}

/* Showing bookmark actions only on hover */
.bookmark-item-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.bookmark-item:hover .bookmark-item-actions {
  opacity: 1;
}

/* Highlights */
.search-highlight {
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  border-radius: 2px;
  padding: 0 1px;
}

/* Privacy Mode blur */
.privacy-blur .bookmark-title-label {
  filter: blur(6px);
  user-select: none;
}
.privacy-blur .bookmark-favicon {
  filter: blur(4px);
}

/* Empty board state */
.empty-board-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}

/* 5. RIGHT FLOATING CIRCULAR PANEL */
.right-floating-panel {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
}

.floating-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-circle-btn:hover {
  transform: scale(1.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05), var(--shadow-lg);
}

.floating-circle-btn.active {
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

/* Highlighted green gear button in bottom right */
.settings-glow-btn {
  background: var(--accent-emerald);
  color: #030712;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.settings-glow-btn:hover {
  background: var(--accent-emerald-dark);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
  border-color: transparent;
}

/* 6. BOTTOM LEFT WALLPAPER TRIGGER */
.bottom-left-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
}

.wallpaper-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s ease;
}

.wallpaper-icon-btn:hover {
  transform: scale(1.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Board drag reorder placeholders */
.drop-placeholder {
  border: 1px dashed var(--accent-emerald);
  background: rgba(16, 185, 129, 0.03);
  border-radius: var(--border-radius-md);
  height: 38px;
  margin: 2px 0;
}

/* Board Color menus */
.board-color-menu {
  position: absolute;
  background: #0b0f19;
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  z-index: 90;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.color-option {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-option:hover {
  transform: scale(1.2);
}

/* ========================================== */
/* MODALS SYSTEM (Unmodified functionality, styled glass) */
/* ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.3s ease;
  opacity: 1;
}

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

.modal-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
              0 0 40px rgba(16, 185, 129, 0.1);
  width: 580px;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-card.modal-small {
  width: 400px;
}

@keyframes modalEnter {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(10, 16, 28, 0.3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.margin-top-12 {
  margin-top: 12px;
}

.flex-row {
  display: flex;
  align-items: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

input[type="text"],
input[type="url"],
select {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="url"]:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Settings Tabs */
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
  gap: 16px;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.tab-btn.active {
  color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
}

.tab-content.hidden {
  display: none !important;
}

.tab-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-separator {
  margin: 20px 0;
  border: none;
  border-top: 1px solid var(--border-glass);
}

/* Wallpapers picker */
.wallpaper-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.wallpaper-card {
  aspect-ratio: 16/10;
  border-radius: var(--border-radius-md);
  border: 2px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wallpaper-card:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.3);
}

.wallpaper-card.active {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.wallpaper-preview-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 9px;
  text-align: center;
  padding: 2px;
}

.custom-wallpaper-input-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 16px;
}

/* Modal Buttons */
.modal-primary-btn,
.modal-secondary-btn,
.modal-accent-btn,
.modal-danger-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.modal-primary-btn {
  background: var(--accent-emerald);
  color: #030712;
}
.modal-primary-btn:hover {
  background: var(--accent-emerald-dark);
  color: #fff;
}

.modal-secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.modal-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal-accent-btn {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: #030712;
}
.modal-accent-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.modal-danger-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.modal-danger-btn:hover {
  background: #ef4444;
  color: #fff;
}

.danger-heading {
  color: #f87171;
}

/* Page Icon selection */
.icon-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.icon-choice-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.icon-choice-card:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  transform: scale(1.06);
}

/* Trash Bin specific layout */
.trash-lists-wrapper {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  height: 280px;
}

.trash-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.trash-section h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 4px;
}

.trash-list {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 13px;
}

.trash-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  color: var(--text-primary);
}

.trash-item-actions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.trash-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.trash-btn.restore:hover {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.trash-btn.delete-perm:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.empty-trash-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
}
