/* pdf-compressor.css */
@import '../../merge-pdf/css/merge-pdf.css';

.file-overview {
    display: flex;
    align-items: center;
    background: var(--card-h);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.fo-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 16px;
}

.fo-details {
    display: flex;
    flex-direction: column;
}

.fo-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--t);
    margin-bottom: 4px;
    word-break: break-all;
}

.fo-size {
    font-size: 0.85rem;
    color: var(--t3);
}

.compress-options {
    margin-bottom: 24px;
}

.mode-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin-bottom: 16px;
}

.mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.mode-content {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--r);
    padding: 20px;
    transition: all 0.2s ease;
}

.mode-card:hover .mode-content {
    background: var(--card-h);
    border-color: rgba(139, 92, 246, 0.3);
}

.mode-card input[type="radio"]:checked + .mode-content {
    border-color: var(--p);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

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

.mode-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-badge {
    background: var(--grad3);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--t2);
    line-height: 1.5;
}

.mode-warning {
    margin-top: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #fca5a5;
    border-radius: 4px;
}

/* Result Card */
.result-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

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

.result-card h3 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: var(--t);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: 12px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-label {
    font-size: 0.8rem;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sb-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--t);
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
