/* PDF Compression Tool Styles */
.compress-pdf-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

/* Header */
.pdf-header {
    text-align: center;
    margin-bottom: 40px;
}

.pdf-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.pdf-header .subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Ad Slots */
.ad-slot {
    margin: 30px 0;
    text-align: center;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 0.9rem;
}

.ad-top .ad-placeholder {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-middle .ad-placeholder,
.ad-bottom .ad-placeholder {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar .ad-placeholder {
    height: 600px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tool Container */
.tool-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* Upload Section */
.upload-section {
    flex: 1;
}

.upload-area {
    border: 3px dashed #4a6ee0;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #f8fafd;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    background: #eef2ff;
    border-color: #3a5bd0;
}

.upload-area.drag-over {
    background: #e3e9ff;
    border-color: #2a4bc0;
    transform: scale(1.01);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-text {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.browse-btn {
    background: #4a6ee0;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.browse-btn:hover {
    background: #3a5bd0;
}

.file-size-limit {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 15px;
}

/* Options Section */
.options-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.options-section h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #4a6ee0;
    transform: translateY(-2px);
}

.option-card.active {
    border-color: #4a6ee0;
    background: #f0f4ff;
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.option-card h4 {
    margin-bottom: 8px;
    color: #2c3e50;
}

.option-card p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.option-size {
    font-weight: 600;
    color: #4a6ee0;
}

/* Advanced Options */
.advanced-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.advanced-options h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.option-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #495057;
}

.quality-slider {
    max-width: 300px;
}

.quality-slider label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
}

.quality-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
}

.quality-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a6ee0;
    cursor: pointer;
}

/* Progress Section */
.progress-section,
.results-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.progress-header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-header h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a6ee0, #6a8eff);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-percent {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a6ee0;
}

.file-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
    border-bottom: none;
}

/* Results Section */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.file-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.file-original,
.file-compressed {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    min-width: 200px;
}

.file-original {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.file-compressed {
    background: #f0f4ff;
    border: 2px solid #4a6ee0;
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.file-size {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 10px;
}

.file-original .file-size {
    color: #6c757d;
}

.file-compressed .file-size {
    color: #4a6ee0;
}

.reduction-badge {
    background: #4a6ee0;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.file-arrow {
    font-size: 2rem;
    color: #4a6ee0;
    font-weight: bold;
}

.download-section {
    text-align: center;
    margin-bottom: 40px;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: #4a6ee0;
    color: white;
}

.btn-primary:hover {
    background: #3a5bd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 110, 224, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-left: 15px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-download {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.tips-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.tips-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.tips-section ul {
    list-style: none;
    padding: 0;
}

.tips-section li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tips-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a6ee0;
    font-weight: bold;
}

/* Info Section */
.info-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    text-align: center;
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #4a6ee0;
}

.info-number {
    width: 40px;
    height: 40px;
    background: #4a6ee0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

.security-notice {
    display: flex;
    align-items: center;
    background: #f0f4ff;
    border-radius: 8px;
    padding: 25px;
    gap: 20px;
}

.security-icon {
    font-size: 2.5rem;
}

.security-text h4 {
    margin-bottom: 5px;
    color: #2c3e50;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tool-container {
        flex-direction: column;
    }
    
    .ad-sidebar {
        display: none;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .file-comparison {
        flex-direction: column;
        gap: 20px;
    }
    
    .file-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .compress-pdf-wrapper {
        padding: 15px;
    }
    
    .pdf-header h1 {
        font-size: 2rem;
    }
    
    .progress-section,
    .results-section,
    .info-section {
        padding: 25px 20px;
    }
    
    .option-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-section {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .security-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 40px 15px;
    }
    
    .file-info {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}