﻿/* ============================================
   DevTools Box — Design System
   Premium dark theme for developer tools
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Backgrounds */
  --bg-body: #08080d;
  --bg-surface: #0f0f17;
  --bg-card: #14141f;
  --bg-input: #1a1a28;
  --bg-input-focus: #1e1e30;
  --bg-sidebar: #0c0c14;

  /* Accent */
  --accent: #7c6cff;
  --accent-hover: #9186ff;
  --accent-dim: rgba(124, 108, 255, 0.12);
  --accent-glow: rgba(124, 108, 255, 0.25);
  --accent-gradient: linear-gradient(135deg, #7c6cff 0%, #00c6ff 100%);

  /* Text */
  --text-1: #eaeaf2;
  --text-2: #a0a0b8;
  --text-3: #6a6a80;
  --text-link: #7c6cff;

  /* Status */
  --success: #4ade80;
  --success-dim: rgba(74, 222, 128, 0.12);
  --error: #f87171;
  --error-dim: rgba(248, 113, 113, 0.12);
  --warning: #fbbf24;

  /* Borders */
  --border: #222234;
  --border-hover: #33334a;
  --border-focus: #7c6cff;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px rgba(124,108,255,0.15);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 260px;
  --content-max: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

code, pre, .mono {
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
}

::selection {
  background: var(--accent-dim);
  color: var(--text-1);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ============================================
   LAYOUT: Sidebar + Main
   ============================================ */
.layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
}

.sidebar-logo-mark,
.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sidebar-logo-mark {
  display: block;
}

.sidebar-logo-icon {
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}

.sidebar-logo-wordmark,
.sidebar-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.sidebar-logo-wordmark span,
.sidebar-logo-text span {
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  padding: 12px 8px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--accent-dim);
  color: var(--text-1);
}

.sidebar-link.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.sidebar-link .icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.sidebar-link.active .icon {
  opacity: 1;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

.sidebar-footer a {
  color: var(--text-3);
  margin-right: 12px;
}
.sidebar-footer a:hover {
  color: var(--text-2);
}

/* --- Main Content --- */
.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 40px 48px;
  width: 100%;
}

/* --- Mobile Menu Toggle --- */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-1);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { background: var(--accent-dim); }

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.page-title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-desc {
  font-size: 15px;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Privacy Badge --- */
.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-dim);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.notice-badge svg {
  width: 14px;
  height: 14px;
}

/* --- Homepage smart entry --- */
.hero-panel {
  max-width: 900px;
}

.privacy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.smart-entry {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.smart-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.smart-entry-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

.smart-entry-note {
  font-size: 12px;
  color: var(--text-3);
}

.smart-input {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 18px;
  background: var(--bg-input);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  outline: none;
  resize: vertical;
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.smart-input:focus {
  background: var(--bg-input-focus);
}

.smart-input::placeholder {
  color: var(--text-3);
}

.smart-results {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.smart-results.is-empty {
  color: var(--text-3);
  font-size: 13px;
}

.smart-results-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

.smart-result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  padding: 14px;
}

.smart-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 700;
}

.smart-result-meta span:last-child {
  color: var(--text-3);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  font-weight: 600;
}

.smart-result-card p {
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 12px;
}

.smart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-heading {
  margin: 40px 0 0;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
}

.section-heading p {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 4px;
}

/* ============================================
   TOOL CARDS (Homepage)
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.tool-card-icon svg {
  width: 22px;
  height: 22px;
}

.tool-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-1);
}

.tool-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}

.tool-card-arrow {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.tool-card:hover .tool-card-arrow {
  gap: 8px;
}

/* ============================================
   TOOL WORKSPACE
   ============================================ */
.tool-workspace {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tool-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.tool-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.tool-panel {
  display: flex;
  flex-direction: column;
}

.tool-panel + .tool-panel {
  border-left: 1px solid var(--border);
}

.tool-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.tool-panel-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
}

.tool-textarea {
  flex: 1;
  width: 100%;
  min-height: 350px;
  padding: 16px;
  background: var(--bg-input);
  color: var(--text-1);
  border: none;
  outline: none;
  resize: vertical;
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

.tool-textarea:focus {
  background: var(--bg-input-focus);
}

.tool-textarea::placeholder {
  color: var(--text-3);
}

/* Single column layout (for tools like UUID, Hash) */
.tool-single {
  padding: 24px;
}

/* --- Results list (for Hash, UUID) --- */
.result-group {
  margin-bottom: 20px;
}

.result-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
}

.result-value {
  flex: 1;
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  color: var(--text-1);
  word-break: break-all;
  user-select: all;
}

/* --- Options row --- */
.options-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  user-select: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Primary */
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Secondary */
.btn-secondary {
  background: var(--bg-input);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-input-focus);
  color: var(--text-1);
  border-color: var(--border-hover);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  background: var(--accent-dim);
  color: var(--text-1);
}

/* Icon-only */
.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-3);
  border: 1px solid transparent;
}
.btn-icon:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--border);
}

.send-to-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.send-to-select {
  min-width: 128px;
  max-width: 180px;
  height: 34px;
  padding: 6px 10px;
}

.send-to-button {
  height: 34px;
  padding: 7px 12px;
}

/* Large */
.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: var(--radius-md);
}

/* --- Select --- */
.select {
  padding: 7px 12px;
  background: var(--bg-input);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236a6a80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.select:focus {
  border-color: var(--accent);
}

/* --- Number input --- */
.input-number {
  width: 80px;
  padding: 7px 12px;
  background: var(--bg-input);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition);
}
.input-number:focus {
  border-color: var(--accent);
}

/* --- Text input --- */
.input-text {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.input-text:focus {
  border-color: var(--accent);
  background: var(--bg-input-focus);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.toast-success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.toast-error {
  background: var(--error-dim);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.toast-exit {
  animation: toastOut 0.2s ease forwards;
}

/* ============================================
   SEO / INFO SECTIONS
   ============================================ */
.info-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.info-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.info-section p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 12px;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-1);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================
   FEATURES STRIP (Homepage)
   ============================================ */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ============================================
   ABOUT / PRIVACY PAGES
   ============================================ */
.prose {
  max-width: 700px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.prose p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose li {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 4px;
}

/* ============================================
   STATUS BAR
   ============================================ */
.status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  background: var(--bg-surface);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* ============================================
   COMMAND PALETTE
   ============================================ */
.command-palette {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.command-palette.open {
  display: block;
}

.command-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.command-palette-dialog {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  margin: 12vh auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.command-palette-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  background: var(--bg-input);
  color: var(--text-1);
  font: inherit;
  font-size: 16px;
}

.command-palette-input::placeholder {
  color: var(--text-3);
}

.command-palette-results {
  max-height: min(430px, 56vh);
  overflow-y: auto;
  padding: 8px;
}

.command-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-1);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.command-result:hover,
.command-result.is-selected {
  background: var(--accent-dim);
  border-color: var(--border-hover);
}

.command-result-title {
  font-size: 14px;
  font-weight: 700;
}

.command-result-meta {
  flex-shrink: 0;
  color: var(--text-3);
  font-size: 12px;
}

.command-empty {
  padding: 18px 12px;
  color: var(--text-3);
  font-size: 13px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

.animate-in {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-in:nth-child(2) { animation-delay: 0.05s; }
.animate-in:nth-child(3) { animation-delay: 0.1s; }
.animate-in:nth-child(4) { animation-delay: 0.15s; }
.animate-in:nth-child(5) { animation-delay: 0.2s; }
.animate-in:nth-child(6) { animation-delay: 0.25s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .tool-panels {
    grid-template-columns: 1fr;
  }
  .tool-panel + .tool-panel {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .tool-textarea {
    min-height: 200px;
  }
  .features-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .smart-entry-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .send-to-control {
    width: 100%;
    margin-left: 0;
  }
  .send-to-select {
    flex: 1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-header {
    display: flex;
  }
  .main {
    margin-left: 0;
  }
  .main-content {
    padding: 72px 16px 24px;
  }
  .main-footer {
    padding: 20px 16px;
  }
  .page-title {
    font-size: 22px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .features-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .feature-item {
    padding: 16px 12px;
  }
  .privacy-chips {
    gap: 6px;
  }
  .privacy-chip {
    font-size: 11px;
  }
  .smart-input {
    min-height: 150px;
  }
  .smart-actions .btn {
    width: 100%;
  }
  .command-palette-dialog {
    margin-top: 72px;
  }
  .tool-toolbar {
    padding: 10px 12px;
  }
  .options-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
