/* ============================================
   Whisper - Modern Clean Design
   Refined UI with subtle depth and polish
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Colors - Light Theme (Black & White) */
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #f5f5f5;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #fafafa;

  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #888888;
  --text-inverse: #ffffff;

  --border-color: #e0e0e0;
  --border-focus: #111111;
  --border-hover: #cccccc;

  /* Accent - Pure Black */
  --accent-start: #111111;
  --accent-end: #333333;
  --accent-solid: #111111;
  --accent-hover: #000000;

  /* Status Colors */
  --success: #111111;
  --success-bg: rgba(17, 17, 17, 0.05);
  --success-border: rgba(17, 17, 17, 0.2);
  --error: #dc2626;
  --error-bg: rgba(220, 38, 38, 0.08);
  --error-border: rgba(220, 38, 38, 0.25);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.08);
  --warning-border: rgba(217, 119, 6, 0.25);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
  --shadow-glow: none;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition: 0.15s ease;
  --backdrop-blur: blur(8px);
}

/* Dark Theme (White on Black) */
[data-theme="dark"] {
  --bg-gradient-start: #0a0a0a;
  --bg-gradient-end: #111111;
  --bg-card: rgba(20, 20, 20, 0.9);
  --bg-card-solid: #141414;
  --bg-input: rgba(30, 30, 30, 0.8);
  --bg-hover: rgba(255, 255, 255, 0.05);

  --text-primary: #f5f5f5;
  --text-secondary: #cccccc;
  --text-muted: #777777;
  --text-inverse: #0a0a0a;

  --border-color: rgba(255, 255, 255, 0.12);
  --border-focus: #ffffff;
  --border-hover: rgba(255, 255, 255, 0.25);

  --accent-start: #ffffff;
  --accent-end: #e0e0e0;
  --accent-solid: #ffffff;
  --accent-hover: #f0f0f0;

  --success: #ffffff;
  --success-bg: rgba(255, 255, 255, 0.08);
  --success-border: rgba(255, 255, 255, 0.2);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.12);
  --error-border: rgba(239, 68, 68, 0.3);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.7), 0 8px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-gradient-start);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(120, 120, 120, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(120, 120, 120, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(120, 120, 120, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle Grid Pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(128, 128, 128, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 128, 128, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
}

[data-theme="dark"] body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* ===== App Container ===== */
.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.logo-container {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.logo-image {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition), filter var(--transition);
}

[data-theme="dark"] .logo-image {
  filter: invert(1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

.logo-image:hover {
  transform: scale(1.05);
}

.title {
  font-family: 'Satoshi', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

.slogan {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-focus);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.theme-toggle:hover .theme-svg {
  color: var(--accent-solid);
}

/* ===== Cards & Main Container ===== */
.main-container,
.card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.main-container:hover,
.card:hover {
  box-shadow: var(--shadow-xl);
}

/* ===== Forms ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  font-family: inherit;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="datetime-local"]:hover,
select:hover,
textarea:hover {
  border-color: var(--border-hover);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

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

.input-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.input-help::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-solid);
  border-radius: 50%;
  opacity: 0.6;
}

/* Secret Toggle Button */
.secret-toggle {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.secret-toggle:hover {
  color: var(--accent-solid);
  background: var(--bg-hover);
}

/* Textarea Wrapper */
.textarea-wrapper {
  position: relative;
}

.textarea-wrapper textarea {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding-right: 3rem;
}

.textarea-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.textarea-toggle:hover {
  color: var(--accent-solid);
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

/* ===== Checkbox ===== */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  cursor: pointer;
  padding: 1rem 1.125rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.checkbox-wrapper:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-input);
  position: relative;
}

input[type="checkbox"]:hover {
  border-color: var(--border-focus);
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  border-color: transparent;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--text-inverse);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  flex: 1;
}

.checkbox-label > div:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.btn-primary {
  background: var(--accent-solid);
  color: var(--text-inverse);
  min-height: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 54px;
}

/* ===== Alerts ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.5;
}

.alert strong {
  font-weight: 600;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.alert-error,
.alert-danger {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning);
}

/* ===== Success State ===== */
.success-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.success-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-solid);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.success-icon svg {
  width: 20px;
  height: 20px;
}

.success-header strong {
  font-size: 1.125rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== Copy Field ===== */
.copy-field {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.link-input {
  flex: 1;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.8125rem;
  padding: 0.875rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.copy-btn {
  padding: 0.875rem 1.25rem;
  background: var(--accent-solid);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--accent-hover);
}

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

.copy-btn.copied {
  background: var(--accent-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== Hidden Class ===== */
.hidden {
  display: none !important;
}

/* ===== Success View (Minimalist) ===== */
.success-view {
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.success-icon-large {
  width: 56px;
  height: 56px;
  background: var(--accent-solid);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.success-icon-large svg {
  width: 28px;
  height: 28px;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}

.success-subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Link Display */
.link-display {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.link-input-full {
  width: 100%;
  padding: 1rem;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.8125rem;
  text-align: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition);
}

.link-input-full:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .link-input-full:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.copy-btn-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--accent-solid);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.copy-btn-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--accent-hover);
}

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

.copy-btn-full.copied {
  background: var(--accent-hover);
}

/* QR Divider */
.qr-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.qr-divider::before,
.qr-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.qr-divider span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* QR Code Wrapper */
.qr-wrapper {
  display: flex;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

#qr-code {
  display: block;
  border-radius: var(--radius-sm);
}

/* New Link */
.new-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.new-link:hover {
  color: var(--accent-solid);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.security-badge:hover {
  border-color: var(--border-focus);
  color: var(--accent-solid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== Spinner ===== */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  text-align: center;
  padding: 3rem 2rem;
}

.loading .spinner {
  width: 32px;
  height: 32px;
  border-color: var(--border-color);
  border-top-color: var(--accent-solid);
  margin: 0 auto 1rem;
}

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

/* ===== Input Group (for secret with toggle) ===== */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  padding-right: 3rem;
}

.input-icon-btn {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.input-icon-btn:hover {
  color: var(--accent-solid);
  background: var(--bg-hover);
}

.input-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Select Styling ===== */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 3rem;
  cursor: pointer;
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* ===== Utility Classes ===== */
.subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.btn-link:hover {
  color: var(--accent-solid) !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.w-full { width: 100%; }

/* ===== Button States ===== */
.btn.success {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .app {
    padding: 1.5rem 1rem;
  }

  .header {
    margin-bottom: 1.5rem;
  }

  .title {
    font-size: 1.625rem;
  }

  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .main-container,
  .card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .copy-field {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    min-height: 50px;
  }
}

@media (max-width: 380px) {
  .app {
    padding: 1rem 0.75rem;
  }

  .main-container,
  .card {
    padding: 1.25rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success,
.response > * {
  animation: fadeIn 0.3s ease-out;
}

/* ===== Focus Visible (Accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
  outline: none;
}
