/* Compress PDF Page Specific Styles */

.compress-section {
    padding: 3rem 0;
    background: var(--bg-color);
}

.compress-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* File Info Card */
.file-info-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.file-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.file-info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    word-break: break-all;
}

.file-info-value.success {
    color: var(--secondary-color);
}

/* Compression Options */
.compression-options {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.compression-options h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.compression-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compression-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.compression-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.compression-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.compression-option input[type="radio"]:checked + .option-content {
    color: var(--primary-color);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-content strong {
    font-size: 1rem;
    color: var(--text-color);
}

.option-content span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.compression-option input[type="radio"]:checked ~ .option-content strong,
.compression-option:has(input[type="radio"]:checked) .option-content strong {
    color: var(--primary-color);
}

.compression-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.05);
}

/* Progress Bar */
.progress-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-text {
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #45b869;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Active Nav Link */
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-info-card {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .compression-option {
        padding: 0.8rem;
    }
}

