/* Manus PDF Compressor Styles */

.mpdc-header {
    text-align: center;
    margin-bottom: 30px;
}

.mpdc-header h2 {
    color: #1a202c;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.mpdc-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Upload Section */
.mpdc-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f7fafc;
    width: 840px;
    height: 350px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.mpdc-upload-area:hover,
.mpdc-upload-area.mpdc-drag-over {
    border-color: #4299e1;
    background: #ebf8ff;
}

.mpdc-upload-icon {
    color: #a0aec0;
    margin-bottom: 16px;
}

.mpdc-upload-area h3 {
    color: #2d3748;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.mpdc-upload-area p {
    color: #718096;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* Buttons */
.mpdc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mpdc-btn-primary {
    background: #4299e1;
    color: white;
}

.mpdc-btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.mpdc-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.mpdc-btn-secondary:hover {
    background: #cbd5e0;
}

.mpdc-btn-success {
    background: #48bb78;
    color: white;
}

.mpdc-btn-success:hover {
    background: #38a169;
    transform: translateY(-1px);
}

/* Progress Section */
.mpdc-progress-section {
    text-align: center;
    padding: 40px 20px;
}

.mpdc-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mpdc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #48bb78);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

#mpdc-progress-text {
    color: #4a5568;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Results Section */
.mpdc-results-section {
    text-align: center;
    padding: 20px;
}

.mpdc-results-header h3 {
    color: #48bb78;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.mpdc-file-info {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.mpdc-file-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mpdc-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.mpdc-detail-item:last-child {
    border-bottom: none;
}

.mpdc-label {
    color: #4a5568;
    font-weight: 500;
}

.mpdc-value {
    color: #2d3748;
    font-weight: 600;
}

.mpdc-savings {
    color: #48bb78;
}

.mpdc-download-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Error Section */
.mpdc-error-section {
    text-align: center;
    padding: 40px 20px;
}

.mpdc-error-message h3 {
    color: #e53e3e;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.mpdc-error-message p {
    color: #718096;
    font-size: 16px;
    margin: 0 0 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpdc-container {
        margin: 10px;
        padding: 16px;
    }
    
    .mpdc-upload-area {
        padding: 30px 16px;
        width: 100%;
        height: 280px;
        min-height: 280px;
    }
    
    .mpdc-header h2 {
        font-size: 24px;
    }
    
    .mpdc-download-section {
        flex-direction: column;
    }
    
    .mpdc-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mpdc-upload-area {
        height: 250px;
        min-height: 250px;
        padding: 20px 12px;
    }
}

/* Animation for smooth transitions */
.mpdc-upload-section,
.mpdc-progress-section,
.mpdc-results-section,
.mpdc-error-section {
    animation: fadeIn 0.3s ease-in-out;
}

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

