/* ══════════════════════════════════════════════════════════════
   SRT to Audio Converter - Stylesheet
   Premium dark theme with glassmorphism design
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(17, 24, 39, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

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

    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --accent-glow: rgba(99, 102, 241, 0.25);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-focus: rgba(99, 102, 241, 0.5);

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

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Animated Background ────────────────────────────────────── */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent);
    top: 50%;
    right: -10%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent);
    bottom: -5%;
    left: 30%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(40px, 30px) scale(1.02);
    }
}

/* ── App Container ──────────────────────────────────────────── */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────── */
.app-header {
    text-align: center;
    padding: 24px 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    100% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ── Main Content Grid ──────────────────────────────────────── */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: 1;
}

/* ── Panel Base ─────────────────────────────────────────────── */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.panel-header h2 svg {
    color: var(--accent-2);
}

/* ── Input Toggle ───────────────────────────────────────────── */
.input-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
    font-family: inherit;
}

.toggle-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* ── Drop Zone ──────────────────────────────────────────────── */
.drop-zone {
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-glass);
    position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

.drop-zone.dragover {
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.1);
}

.drop-zone-content svg {
    color: var(--accent-2);
    margin-bottom: 16px;
    opacity: 0.7;
}

.drop-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.drop-text strong {
    color: var(--accent-2);
}

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

/* ── File Info Badge ────────────────────────────────────────── */
.file-info {
    margin-top: 12px;
}

.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 4px;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    color: var(--error);
}

/* ── Textarea ───────────────────────────────────────────────── */
textarea {
    width: 100%;
    min-height: 260px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    resize: vertical;
    transition: var(--transition);
}

textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* ── Settings ───────────────────────────────────────────────── */
.settings-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.settings-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.settings-section h3 svg {
    color: var(--accent-2);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-item label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.setting-item label span {
    color: var(--accent-2);
    font-weight: 600;
}

select {
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

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

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ── Range Slider ───────────────────────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Token & Credit Styles ─────────────────────────────────────── */
.setting-item-full {
    grid-column: 1 / -1;
}

.token-input-wrapper {
    display: flex;
    gap: 8px;
}

.token-input-wrapper input {
    flex: 1;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.token-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.token-toggle {
    padding: 8px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.token-toggle:hover {
    background: var(--surface-3);
}

.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    margin-left: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-2);
    animation: fadeIn 0.3s ease;
}

.credit-info {
    padding: 10px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-2);
    animation: fadeIn 0.3s ease;
}

.credit-info.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.credit-info.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error);
}

/* ── Auto Speed Button ──────────────────────────────────────── */
.auto-speed-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    margin-left: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--accent-1);
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-2);
    cursor: pointer;
    transition: var(--transition-fast);
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auto-speed-btn:hover {
    background: var(--accent-1);
    color: white;
    box-shadow: 0 0 12px var(--accent-glow);
}

.auto-speed-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auto-speed-btn.loading {
    pointer-events: none;
    position: relative;
}

.auto-speed-btn.loading svg {
    animation: spin 0.6s linear infinite;
}

.auto-speed-status {
    margin-top: 6px;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
}

.auto-speed-status.success {
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.auto-speed-status.info {
    color: var(--accent-2);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.auto-speed-status.analyzing {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ── Convert Button ─────────────────────────────────────────── */
.convert-btn {
    width: 100%;
    padding: 16px 24px;
    margin-top: 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.convert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.convert-btn:hover:not(:disabled)::before {
    left: 100%;
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.convert-btn:active:not(:disabled) {
    transform: translateY(0);
}

.convert-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.convert-btn.loading {
    pointer-events: none;
}

.convert-btn.loading span {
    visibility: hidden;
}

.convert-btn.loading svg {
    visibility: hidden;
}

.convert-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Output Panel ───────────────────────────────────────────── */
.output-panel {
    display: flex;
    flex-direction: column;
}

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    opacity: 0.2;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 250px;
    line-height: 1.6;
}

/* ── Progress ───────────────────────────────────────────────── */
.progress-section {
    padding: 24px 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-percent {
    font-size: 0.85rem;
    color: var(--accent-2);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.progress-detail {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Result ─────────────────────────────────────────────────── */
.result-section {
    animation: fadeIn 0.5s ease;
}

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

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

.result-card {
    text-align: center;
    padding: 24px;
    margin-bottom: 20px;
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--success);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.result-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 12px;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 8px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-2);
    display: block;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Audio Player ───────────────────────────────────────────── */
.audio-player-wrapper {
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

audio {
    width: 100%;
    height: 42px;
    border-radius: 6px;
}

audio::-webkit-media-controls-panel {
    background: transparent;
}

/* ── Download Button ────────────────────────────────────────── */
.download-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid var(--success);
    border-radius: var(--radius-md);
    background: var(--success-bg);
    color: var(--success);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--success);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.new-btn {
    width: 100%;
    padding: 12px 24px;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.new-btn:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

/* ── Error ──────────────────────────────────────────────────── */
.error-card {
    text-align: center;
    padding: 32px 24px;
}

.error-card svg {
    color: var(--error);
    margin-bottom: 12px;
}

.error-card h3 {
    color: var(--error);
    margin-bottom: 8px;
}

.error-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    background: var(--error-bg);
    color: var(--error);
    cursor: pointer;
    transition: var(--transition);
}

.retry-btn:hover {
    background: var(--error);
    color: white;
}

/* ── Subtitle Preview Table ─────────────────────────────────── */
.subtitle-preview {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.subtitle-preview h3 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.subtitle-preview h3 svg {
    color: var(--accent-2);
}

.table-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.table-wrapper::-webkit-scrollbar {
    width: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

th {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-2);
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 8px 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

td:first-child {
    color: var(--text-muted);
    font-weight: 600;
    width: 40px;
}

td:nth-child(2),
td:nth-child(3) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-2);
    white-space: nowrap;
    width: 100px;
}

td:last-child {
    color: var(--text-primary);
}

/* ── Footer ─────────────────────────────────────────────────── */
.app-footer {
    text-align: center;
    padding: 20px 0 8px;
    margin-top: 16px;
}

.app-footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.app-footer strong {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .app-container {
        padding: 16px;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .panel {
        padding: 20px;
    }

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

    .drop-zone {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-stats {
        flex-direction: column;
        align-items: center;
    }
}