/* Style sheet for Picpak Quote Card Generator & Simulator */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Outfit:wght@100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300..700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=VT323&display=swap');

:root {
  /* Dashboard Colors */
  --bg-main: #0b0b0d;
  --bg-card: rgba(22, 22, 26, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-color: #ff3b30;
  --accent-color-hover: #e02e24;
  --accent-glow: rgba(255, 59, 48, 0.15);
  
  /* E-Ink Palette */
  --eink-bg: #ffffff;
  --eink-fg: #000000;
  --eink-border: #000000;

  /* Custom Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Grid Pattern */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0),
    linear-gradient(to bottom, rgba(255, 59, 48, 0.01) 0%, transparent 100%);
  background-size: 20px 20px, 100% 100%;
  z-index: -1;
  pointer-events: none;
}

/* App Header */
header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-card);
  background-color: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 28px;
  height: 28px;
  background-color: var(--accent-color);
  border-radius: 6px;
  box-shadow: 0 0 12px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.header-links a:hover {
  color: var(--accent-color);
}

.version-label {
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  user-select: none;
  cursor: default;
}

/* About Section Dropdown styles deleted - replaced with fullscreen overlay modal */

/* Main Dashboard Grid (3-Column Layout) */
.dashboard {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 320px 1fr 420px;
  gap: 2rem;
  height: calc(100vh - 80px);
  min-height: 700px;
}

@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .panel-left {
    grid-column: span 2;
    order: 3;
  }
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .panel-left, .panel-center, .panel-right {
    grid-column: span 1;
  }
}

/* Sidebar Panels (Glassmorphism) */
.panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.75rem;
}

.panel-title span.count {
  font-size: 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  margin-left: auto;
}

/* Quote Presets List */
.presets-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 0.25rem;
}

/* Custom Scrollbar for panel contents */
.presets-container::-webkit-scrollbar,
.panel-content::-webkit-scrollbar {
  width: 6px;
}

.presets-container::-webkit-scrollbar-track,
.panel-content::-webkit-scrollbar-track {
  background: transparent;
}

.presets-container::-webkit-scrollbar-thumb,
.panel-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.presets-container::-webkit-scrollbar-thumb:hover,
.panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.preset-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* CRITICAL: Prevents cards from squishing or collapsing in sidebar container */
  min-height: 85px; /* Ensures text rows are fully visible */
}

.preset-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.preset-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.preset-card.active {
  background-color: rgba(255, 59, 48, 0.05);
  border-color: rgba(255, 59, 48, 0.25);
}

.preset-card.active::before {
  background-color: var(--accent-color);
}

.preset-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

.preset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preset-author {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Center Simulator Panel */
.panel-center {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* Device Wrapper (for scaling & shadow) */
.device-wrapper {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* 3D Tactile Physical Device */
.device {
  width: 380px;
  height: 380px;
  border-radius: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: #ff3b30; /* Default color */
  transition: background-color 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 
    inset 2px 2px 2px rgba(255, 255, 255, 0.3),
    inset -2px -2px 3px rgba(0, 0, 0, 0.4),
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 3px 10px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  user-select: none;
}

/* Matte Plastic Grain Overlay */
.device::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.14;
  pointer-events: none;
  border-radius: inherit;
  z-index: 5;
}

/* Screws removed per user request */

/* E-Ink Screen Container (styled with double frame bevel) */
.screen-bezel {
  width: 100%;
  height: 242px;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.15);
  box-shadow: 
    inset 0 3px 8px rgba(0, 0, 0, 0.8),
    inset 0 -1px 3px rgba(255, 255, 255, 0.15),
    0 1px 2px rgba(255, 255, 255, 0.1);
  padding: 6px;
  overflow: hidden;
  position: relative;
}

/* E-Ink Screen Frame (The 400x300 canvas size scaled via CSS object-fit or aspect-ratio) */
.screen {
  width: 100%;
  height: 100%;
  background-color: var(--eink-bg);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--eink-border);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screen Canvas Element */
.screen canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 0;
}

/* Authentic E-Ink Glass/Paper Matte Overlay */
.screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperNoise)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 4;
}

/* E-Ink Screen Refresh Flashing Animation */
@keyframes eink-refresh {
  0% { filter: invert(0%) contrast(100%); }
  15% { filter: invert(100%) contrast(200%) brightness(0.8); }
  30% { filter: invert(0%) contrast(100%); }
  55% { filter: invert(100%) contrast(200%) brightness(0.8); }
  80% { filter: invert(0%) contrast(100%); }
  90% { filter: invert(30%) contrast(100%); }
  100% { filter: invert(0%) contrast(100%); }
}

.screen.refreshing {
  animation: eink-refresh 0.7s cubic-bezier(0.25, 1, 0.2, 1) forwards;
}

/* Device Control Area (Bottom section with button) */
.device-controls {
  flex-grow: 1;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

/* Large Tactile White Button */
.device-btn-wrapper {
  position: absolute;
  left: 20px;
  bottom: 5px;
  width: 68px;
  height: 68px;
}

.device-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #e5e7eb 70%, #d1d5db);
  border: none;
  outline: none;
  cursor: pointer;
  position: absolute;
  top: 0; left: 0;
  box-shadow: 
    0 5px 0px #b5b7bb,
    0 7px 10px rgba(0, 0, 0, 0.4),
    inset 1px 1px 1px #fff;
  transition: all 0.08s cubic-bezier(0.175, 0.885, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}

/* Depressed state of the 3D button */
.device-btn:active, .device-btn.pressed {
  transform: translateY(4px);
  box-shadow: 
    0 1px 0px #b5b7bb,
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Recess bezel under the white button */
.device-btn-recess {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.22);
  top: -4px; left: -4px;
  box-shadow: 
    inset 0 3px 5px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(255, 255, 255, 0.15);
  z-index: 6;
}

/* Quick help label on the device */
.device-logo-label {
  position: absolute;
  right: 20px;
  bottom: 25px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: rgba(0, 0, 0, 0.45);
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Device Colors Panel (Under the Simulator) */
.device-color-palette {
  display: flex;
  gap: 0.75rem;
  background-color: rgba(22, 22, 26, 0.5);
  border: 1px solid var(--border-card);
  padding: 0.6rem 1rem;
  border-radius: 30px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-bounce);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4);
}

.color-dot:hover {
  transform: scale(1.25);
  border-color: #fff;
}

.color-dot.active {
  transform: scale(1.2);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color-dot.red { background-color: #ff3b30; }
.color-dot.yellow { background-color: #ffcc00; }
.color-dot.green { background-color: #34c759; }
.color-dot.black { background-color: #1c1c1e; }
.color-dot.white { background-color: #f2f2f7; }
.color-dot.beige { background-color: #dfd5c6; }

/* Right Workshop Control Panel */
.panel-right {
  display: flex;
  flex-direction: column;
}

.panel-content {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-right: 0.25rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-label span.val {
  text-transform: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: normal;
}

/* Custom Styled Inputs & Textareas */
input[type="text"], textarea, select {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-main);
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  outline: none;
}

input[type="text"]:focus, textarea:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background-color: rgba(0, 0, 0, 0.5);
}

textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.4;
}

/* Custom Image Drag and Drop Uploader */
.dropzone {
  border: 2px dashed var(--border-card);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background-color: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-color);
  background-color: rgba(255, 59, 48, 0.02);
}

.dropzone svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.dropzone:hover svg {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.dropzone p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropzone span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Double column sliders */
.sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Range Inputs */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 5px rgba(255, 59, 48, 0.5);
  transition: var(--transition-bounce);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #ff5b52;
}

/* Action Buttons for Exports */
.actions-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-card);
}

.btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #d31a11);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5b52, var(--accent-color));
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Info Tooltips or Hints */
.card-tips {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.card-tips svg {
  flex-shrink: 0;
  color: var(--accent-color);
  width: 16px;
  height: 16px;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(18, 18, 22, 0.95);
  border: 1px solid var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success-icon {
  color: var(--accent-color);
  font-weight: bold;
}

/* Workshop Tab Bar Styles */
.tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  outline: none;
}

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

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

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 2px;
}

.tab-content {
  display: none;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
}

.tab-content.active {
  display: flex;
}

/* Style Presets Tab Grid and Cards */
.style-presets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-right: 0.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.style-preset-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.style-preset-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.style-preset-card.active {
  background-color: rgba(255, 59, 48, 0.05);
  border-color: rgba(255, 59, 48, 0.25);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.05);
}

.preset-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  transition: var(--transition-smooth);
}

.style-preset-card.active .preset-card-title {
  color: var(--accent-color);
}

.preset-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Fullscreen About Overlay Modal (per user request) */
.about-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.overlay-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.overlay-window {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1000px;
  background-color: rgba(28, 28, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  padding: 2.5rem;
  color: #fff;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-overlay.show .overlay-window {
  transform: scale(1) translateY(0);
}

.overlay-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  color: #fff;
}

.overlay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .overlay-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .overlay-window {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 90vh;
  }
}

.overlay-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.about-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-desc strong {
  color: var(--text-main);
}

.overlay-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.overlay-close-btn:hover {
  background-color: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.25);
  color: var(--accent-color);
  transform: rotate(90deg);
}

.overlay-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Info Notebook widget adaptations inside Overlay */
.info-notebook {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.info-tabs {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-card);
}

.info-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.info-tab-btn:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.01);
}

.info-tab-btn.active {
  color: var(--accent-color);
  background-color: var(--bg-card);
  position: relative;
}

.info-tab-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

.info-body {
  padding: 1.25rem;
  min-height: 140px;
}

.info-pane {
  display: none;
}

.info-pane.active {
  display: block;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
}

.info-list li strong {
  color: var(--text-main);
}

/* Status Badges */
.badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.badge-high {
  background-color: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.25);
}

.badge-med {
  background-color: rgba(255, 159, 10, 0.15);
  color: #ff9f0a;
  border: 1px solid rgba(255, 159, 10, 0.25);
}

.badge-low {
  background-color: rgba(10, 132, 255, 0.15);
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.25);
}

.badge-done {
  background-color: rgba(48, 209, 88, 0.15);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.25);
}

/* Spectra Swatch Active Styles */
.spectra-swatch-grid button.swatch-btn.active {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 12px var(--accent-glow);
  background: rgba(255, 59, 48, 0.08) !important;
}

.spectra-swatch-grid button.swatch-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2);
}
