/**
 * Orto PDF Compressor Styles
 * Beautiful, responsive PDF compression tool styles
 */

.orto-pdf-compressor-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.orto-pdf-header {
    text-align: center;
    margin-bottom: 40px;
}

.orto-pdf-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
}

.orto-pdf-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Upload Area */
.orto-pdf-upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.orto-pdf-upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.orto-pdf-upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    transform: scale(1.02);
}

.orto-pdf-upload-content {
    pointer-events: none;
}

.orto-pdf-icon {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orto-pdf-icon svg {
    width: 64px;
    height: 64px;
}

.orto-pdf-upload-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.orto-pdf-upload-text {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* File Info */
.orto-pdf-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.orto-pdf-file-details {
    flex: 1;
}

.orto-pdf-file-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    word-break: break-all;
}

.orto-pdf-file-size {
    font-size: 0.9rem;
    color: #64748b;
}

/* Buttons */
.orto-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.orto-pdf-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.orto-pdf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.orto-pdf-btn-primary:active {
    transform: translateY(0);
}

.orto-pdf-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.orto-pdf-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.orto-pdf-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.orto-pdf-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.orto-pdf-btn-remove {
    background: #fee2e2;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.orto-pdf-btn-remove:hover {
    background: #fecaca;
}

.orto-pdf-btn-icon {
    font-size: 1.2rem;
}

.orto-pdf-actions {
    text-align: center;
    margin-bottom: 20px;
}

/* Progress Bar */
.orto-pdf-progress {
    margin-bottom: 20px;
}

.orto-pdf-progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.orto-pdf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.orto-pdf-progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

/* Results */
.orto-pdf-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.orto-pdf-result-card {
    margin-bottom: 25px;
}

.orto-pdf-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.orto-pdf-result-item:last-child {
    border-bottom: none;
}

.orto-pdf-result-label {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}

.orto-pdf-result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.orto-pdf-result-value.orto-pdf-success {
    color: #10b981;
}

.orto-pdf-results .orto-pdf-btn {
    width: 100%;
    margin-bottom: 10px;
}

.orto-pdf-results .orto-pdf-btn:last-child {
    margin-bottom: 0;
}

/* Error Message */
.orto-pdf-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .orto-pdf-compressor-container {
        padding: 20px 15px;
    }
    
    .orto-pdf-title {
        font-size: 2rem;
    }
    
    .orto-pdf-upload-area {
        padding: 40px 15px;
    }
    
    .orto-pdf-upload-title {
        font-size: 1.2rem;
    }
    
    .orto-pdf-file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .orto-pdf-btn {
        width: 100%;
        padding: 14px 24px;
    }
    
    .orto-pdf-results {
        padding: 20px;
    }
    
    .orto-pdf-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .orto-pdf-title {
        font-size: 1.75rem;
    }
    
    .orto-pdf-description {
        font-size: 1rem;
    }
    
    .orto-pdf-upload-area {
        padding: 30px 10px;
    }
    
    .orto-pdf-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.orto-pdf-compressing .orto-pdf-btn-primary {
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

