:root {
    --bg-body: #0b0f19;
    --bg-surface: #151c2c;
    --bg-surface-hover: #1e293b;
    --bg-input: #1a2336;
    --border-subtle: #2a364f;
    --border-accent: rgba(16, 185, 129, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent-primary: #10b981;
    --accent-primary-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --accent-secondary: #6366f1;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --success-bg: rgba(16, 185, 129, 0.1);
    --radius-card: 14px;
    --radius-pill: 9999px;
    --font-display: "Outfit", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    background-image:
        radial-gradient(
            circle at 15% 15%,
            rgba(99, 102, 241, 0.08) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(16, 185, 129, 0.06) 0%,
            transparent 45%
        );
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    width: 100%;
    flex: 1;
}

/* Shared Accessible Focus Ring */
.tool-card:focus-visible,
.tab-btn:focus-visible,
.back-btn:focus-visible,
.upload-area:focus-visible,
.btn-select:focus-visible,
.btn-convert:focus-visible,
.btn-list-action:focus-visible,
.drag-handle:focus-visible,
.btn-move:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-top: auto;
}

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

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
