/* CSS Custom Properties for theming */
:root {
  --primary-color: #0066cc;
  --primary-hover: #0052a3;
  --secondary-color: #6b7280;
  --success-color: #10b981;
  --success-hover: #059669;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;

  --background: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #0066cc;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  --font-size-base: 0.9rem;
}

/* Dark theme */
[data-theme="dark"] {
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --border: #334155;
  --border-focus: #3b82f6;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: var(--font-size-base);
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-text {
  text-align: center;
}

.tagline-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.spacer {
  flex: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--success-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Language Selector */
.language-selector {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  height: 32px;
  min-width: 60px;
}

.language-selector:hover {
  background: var(--surface-hover);
  border-color: var(--border-focus);
}

.language-selector:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}


/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
  flex: 1;
}

/* Tab navigation */
.tab-navigation {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

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

.tab.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Tab content */
.tab-content {
  display: none;
}

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

/* Section styles */
.input-section,
.output-section,
.action-section {
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.input-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.output-actions {
  display: flex;
  gap: 0.5rem;
}

/* Textarea styles */
textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  font-size: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  resize: vertical;
  font-family: var(--font-mono);
  background: var(--background);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.5;
}

textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgb(0 102 204 / 0.1);
}

textarea[readonly] {
  background: var(--surface);
  cursor: default;
}

textarea::placeholder {
  color: var(--text-muted);
}

/* Button styles */
.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  min-width: 100px;
  justify-content: center;
}

.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.secondary-btn {
  background: var(--surface);
  color: var(--text-secondary);
  border: 2px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

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

/* Base style for icon buttons */
.base-icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
}

.base-icon-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* .base-icon-btn defines the base styles for icon buttons.
   HTML elements with both .base-icon-btn and .icon-btn classes will combine these styles. */
.icon-btn {
  /* Additional styles can be added here if needed */
}

.theme-toggle {
  /* Inherits from .base-icon-btn */
}

/* For buttons with icon and text like Copy/Download */
.icon-btn-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.link-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

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

/* Options */
.options {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
}

.format-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.format-selector select {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.format-selector select:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* File upload area */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.file-upload-area.drag-over {
  border-color: var(--primary-color);
  background: rgb(0 102 204 / 0.05);
}

.file-upload-area svg {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.file-upload-area p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

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

.file-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.file-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.file-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.file-output textarea {
  min-height: 200px;
}

.file-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Hash section styles */
.hash-section h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hash-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* URL section and Info Text */
.url-section h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* URL Tab Navigation */
.url-tab-navigation {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  gap: 0.25rem;
}

.url-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

.url-tab:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.url-tab.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.url-tab-content {
  display: none;
}

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

.info-text {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Output tabs */
.output-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.output-tab {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.output-tab:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.output-tab.active {
  background: var(--surface);
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.output-content {
  min-height: 120px;
}

.output-view {
  min-height: 120px;
}

.image-preview {
  min-height: 120px;
}

.output-view textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: inherit;
  padding: 1rem;
  border-radius: var(--radius-md);
  resize: vertical;
}

.analysis-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.analysis-item:last-child {
  border-bottom: none;
}

.analysis-item label {
  font-weight: 500;
  color: var(--text-secondary);
}

.analysis-item span {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Image Preview Styles */
.image-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 120px;
}

.image-preview-header {
  background: var(--surface-hover);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.image-preview-content {
  padding: 1rem;
  text-align: center;
  background: repeating-conic-gradient(#f8f9fa 0% 25%, #e9ecef 25% 50%) 50% / 20px 20px;
}

[data-theme="dark"] .image-preview-content {
  background: repeating-conic-gradient(#2d3748 0% 25%, #1a202c 25% 50%) 50% / 20px 20px;
}

.image-preview-content img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  background: white;
}

/* Settings Panel and Modals */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.settings-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 100%;
  max-width: 350px;
  height: 100vh;
  background: var(--background);
  z-index: 1001;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.settings-panel.active {
  right: 0;
}

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

.settings-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  line-height: 1;
}

.close-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.settings-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.setting-item label {
  cursor: pointer;
}

.setting-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.setting-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
}

.setting-item select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  min-width: 100px;
}

.setting-item select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.settings-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
}

.settings-footer button {
  flex: 1;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--background);
  z-index: 1001;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

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

.modal-body {
  padding: 1rem;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.shortcut-item:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.shortcut-item code {
  background: var(--surface-hover);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}


/* Theme toggle specific styles */
.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

/* Fullscreen mode and icons */
.icon-shrink {
  display: none;
}

body.fullscreen #fullscreenBtn .icon-expand {
  display: none;
}

body.fullscreen #fullscreenBtn .icon-shrink {
  display: block;
}

body.fullscreen {
  overflow: hidden;
}

body.fullscreen .container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  height: 100vh;
  padding: 1rem;
  background: var(--background);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

body.fullscreen header,
body.fullscreen footer,
body.fullscreen .features {
  display: none;
}

body.fullscreen .tab-content.active {
  height: calc(100vh - 80px);
  /* Adjust based on tab nav height */
  display: flex;
  flex-direction: column;
  flex: 1;
}

body.fullscreen .input-section,
body.fullscreen .output-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

body.fullscreen .action-section {
  margin-bottom: 0.5rem;
}

body.fullscreen textarea {
  flex: 1;
  min-height: 0;
  height: 100%;
}

body.fullscreen .output-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Features section */
.features {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-card svg {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

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

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.privacy-link {
  color: var(--primary-color);
  text-decoration: none;
}

.feedback-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.feedback-link:hover {
  text-decoration: underline;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .header-content {
    padding: 0 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .button-group {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .file-upload-area {
    padding: 2rem 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .features h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .tab-navigation {
    padding: 0.125rem;
    flex-wrap: wrap;
  }

  .tab {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  textarea {
    min-height: 100px;
    font-size: 0.85rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .output-actions {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active {
  animation: fadeIn 0.3s ease-out;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Tooltip styles */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--background);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease-out forwards;
}

[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-primary);
  z-index: 1001;
  margin-bottom: 0.1rem;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease-out forwards;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Print styles */
@media print {

  header,
  footer,
  .theme-toggle,
  .tab-navigation,
  .button-group,
  .features,
  .settings-panel,
  .modal {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  textarea {
    border: 1px solid #000;
    background: white !important;
    color: black !important;
  }
}