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

:root {
  --bg-primary: #0a0d16;
  --bg-secondary: #111625;
  --bg-card: rgba(21, 28, 47, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.5);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.35);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%);
}

/* Header & Container */
header {
  padding: 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 13, 22, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  fill: url(#logo-grad);
  width: 2rem;
  height: 2rem;
}

.nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

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

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

/* App Hero Text */
.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-section h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 300;
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 968px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title svg {
  color: var(--primary);
  width: 1.5rem;
  height: 1.5rem;
}

/* Drag and Drop Zone */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  overflow: hidden;
}

.dropzone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropzone:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.02);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.dropzone:hover::before {
  opacity: 1;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.05);
  transform: scale(1.01);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.upload-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.dropzone:hover .upload-icon-container {
  transform: translateY(-5px);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.upload-icon-container svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.dropzone:hover .upload-icon-container svg {
  color: var(--primary);
}

.dropzone h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.dropzone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.supported-formats {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.format-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* File Input Hidden */
.file-input {
  display: none;
}

/* Loaded Image & Settings Layout */
.workspace-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.file-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

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

.file-name {
  font-weight: 500;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-btn:hover {
  color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

/* Preview Image Area */
.preview-source-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%, transparent 0% 50%) 50% / 20px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 260px;
  position: relative;
}

.preview-source-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Options Panel */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Options Switchers / Buttons */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  text-align: center;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.preset-btn.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Size checkbox list */
.size-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.size-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.size-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

.size-item.selected {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
}

.size-item input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--text-muted);
  accent-color: var(--primary);
  cursor: pointer;
}

.size-details-text {
  display: flex;
  flex-direction: column;
}

.size-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.size-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Resize Mode selector */
.resize-selector {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.resize-option {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.resize-option.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Color input and transparency */
.color-picker-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.color-input-wrapper {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.color-input-wrapper input[type="color"] {
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border: none;
  cursor: pointer;
}

.transparent-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.transparent-toggle-label input {
  accent-color: var(--primary);
  width: 1.1rem;
  height: 1.1rem;
}

/* Download / Action Panel */
.action-panel {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
  width: 100%;
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

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

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-primary svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Spinner */
.spinner {
  animation: rotate 1s linear infinite;
  width: 1.25rem;
  height: 1.25rem;
  display: none;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Right Column (Mockups & Previews) */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Web Browser Tab Mockup */
.mockup-browser {
  background: #181f30;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-header {
  height: 38px;
  background: #0f1320;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.browser-buttons {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #10b981; }

.browser-tab {
  height: 28px;
  background: #181f30;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  min-width: 140px;
}

.tab-favicon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  background: transparent;
  display: inline-block;
  image-rendering: pixelated;
}

.tab-title {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-body {
  padding: 1.5rem;
  height: 80px;
  background: #131926;
  display: flex;
  align-items: center;
}

.browser-address-bar {
  background: #0f1320;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  width: 100%;
}

/* System Grid Mockups (Desktop & Taskbar) */
.system-previews-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .system-previews-container {
    grid-template-columns: 1fr;
  }
}

.mockup-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mockup-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-bottom: 1rem;
}

/* Desktop shortcut simulation */
.desktop-shortcut-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.desktop-shortcut-label {
  font-size: 0.7rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Taskbar simulation */
.taskbar-wrapper {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.taskbar-system-icon {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.taskbar-app-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  position: relative;
}

.taskbar-app-icon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

/* Sizes preview grid */
.sizes-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sizes-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.size-preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 70px;
  min-width: 70px;
  max-width: 100px;
}

.size-preview-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 50% / 10px 10px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  width: 48px;
  height: 48px;
  position: relative;
}

.size-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.size-preview-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* HTML Favicon Guide Container */
.favicon-guide-container {
  margin-top: 1.5rem;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f1320;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-bottom: none;
}

.code-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

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

.code-block {
  background: #131926;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #a7f3d0;
  overflow-x: auto;
  white-space: pre;
}

/* TAB 2: ICO EXTRACTOR / ANALYZER styles */
.analyzer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 968px) {
  .analyzer-grid {
    grid-template-columns: 1fr;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.info-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.info-item-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-item-val {
  font-size: 1rem;
  font-weight: 600;
}

.extracted-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.extracted-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
}

.extracted-card:hover {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.01);
}

.extracted-canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 50% / 12px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  width: 72px;
  height: 72px;
}

.extracted-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.extracted-info {
  text-align: center;
  width: 100%;
}

.extracted-size {
  font-size: 0.85rem;
  font-weight: 600;
}

.extracted-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.btn-sm-download {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.btn-sm-download:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.empty-state svg {
  width: 3rem;
  height: 3rem;
  color: var(--text-muted);
}

/* Footer styling */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary);
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  min-width: 280px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--primary); }

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Guide Sections styling */
.guide-section {
  max-width: 800px;
  margin: 1.5rem auto 0 auto;
}

.guide-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.faq-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.faq-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
