/* PDF Compressor - Tool Specific Styles */

:root {
    --theme-accent: #ff004d;
    --theme-accent-glow: rgba(255, 0, 77, 0.35);
    --theme-accent-dim: rgba(255, 0, 77, 0.12);
    --max-width: 820px;

    --footer-theme: var(--theme-accent);
}

.nav-brand .brand-badge {
    border-color: rgba(255, 0, 77, 0.25);
}

.tool-icon-wrapper {
    border-color: rgba(255, 0, 77, 0.25);
}

.btn-primary {
    color: #ffffff;
}

/* Compression Level Radio Grid */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.radio-card {
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card .card-content {
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    background: #0b0d12;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    transition: all 0.2s;
    height: 100%;
}

.radio-card .card-content strong {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--theme-text);
}

.radio-card .card-content small {
    font-size: 0.78rem;
    color: var(--theme-text-muted);
    line-height: 1.4;
}

.radio-card input:checked + .card-content {
    border-color: var(--theme-accent);
    background: var(--theme-accent-dim);
    box-shadow: 0 0 14px rgba(255, 0, 77, 0.15);
}

.radio-card input:checked + .card-content strong {
    color: var(--theme-accent);
}

/* Custom Controls Box */
.custom-specs-box {
    background: #0b0d12;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.custom-specs-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--theme-accent);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.slider-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.slider-box {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 12px 14px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-accent);
}

.custom-slider {
    width: 100%;
    height: 6px;
    background: #19202b;
    border-radius: 3px;
    outline: none;
    accent-color: var(--theme-accent);
    cursor: pointer;
}

.tip-box {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

/* Progress Container */
.progress-container {
    margin: 20px 0;
}

.progress-status-row {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    margin-bottom: 8px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #141923;
    border-radius: 999px;
    overflow: hidden;
}

.fill {
    width: 0%;
    height: 100%;
    background: var(--theme-accent);
    transition: width 0.3s ease;
}

/* Results Stats */
.result-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: #0b0d12;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 16px 24px;
    min-width: 140px;
    text-align: center;
}

.stat-card.highlight {
    border-color: rgba(255, 0, 77, 0.5);
    background: var(--theme-accent-dim);
}

.stat-lbl {
    display: block;
    font-size: 0.78rem;
    color: var(--theme-text-muted);
    margin-bottom: 4px;
}

.stat-num {
    font-family: var(--theme-font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-text);
}

.stat-card.highlight .stat-num {
    color: var(--theme-accent);
}

.stat-arrow {
    color: var(--theme-text-muted);
}

.savings-display {
    text-align: center;
    margin-bottom: 24px;
}

.savings-badge {
    display: inline-block;
    background: var(--theme-accent-dim);
    color: var(--theme-accent);
    border: 1px solid rgba(255, 0, 77, 0.3);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
}

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

@media (max-width: 600px) {
    .slider-row {
        flex-direction: column;
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
}
