/* Modern CSS Variables - FreePDFConvert Style */
:root {
    --primary-color: #f78e43;
    --primary-hover: #e57c32;
    --primary-light: #fef3e2;
    --primary-bg: #fffbf7;
    --primary-bg-hover: #fef7f0;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

/* Modern Upload Section */
.upload-section {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Modern Upload Area - No Emojis */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-gray);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--primary-bg-hover);
    box-shadow: var(--shadow-md);
}

.upload-area.dragover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: var(--primary-bg);
    box-shadow: var(--shadow-lg);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    border-right: 2px solid transparent;
    transform: rotate(45deg);
}

.upload-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 12px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.upload-area h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.upload-info {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 1.5rem !important;
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-xs);
    letter-spacing: 0.025em;
}

.upload-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

/* Conversion Options */
.conversion-options {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.conversion-options h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.option-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-group label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
    font-size: 0.95rem;
}

.option-group select,
.option-group input[type="number"] {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    min-width: 150px;
}

.option-group select:focus,
.option-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.option-group input[type="range"] {
    flex: 1;
    margin: 0 1rem;
}

#quality-value {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 50px;
}

#custom-size {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#custom-size .option-group {
    width: 100%;
    margin-bottom: 0.5rem;
}

#custom-size input[type="checkbox"] {
    margin-right: 0.5rem;
}

.convert-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
}

.convert-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.convert-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.progress-modal.show {
    display: flex;
}

.progress-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.progress-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

/* Responsive Upload Section */
@media (max-width: 768px) {
    .upload-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-area h3 {
        font-size: 1.3rem;
    }
    
    .conversion-options {
        padding: 1.5rem;
    }
    
    .option-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .option-group label {
        min-width: auto;
    }
    
    .option-group select,
    .option-group input[type="number"] {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 1.5rem 0.8rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-area h3 {
        font-size: 1.2rem;
    }
    
    .conversion-options {
        padding: 1.2rem;
    }
}
