/* Main Styles for Image Converter */

/* Main Layout */
.main-content {
    padding: 2rem 0;
}

/* Upload Section Styles */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.upload-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f78e43 0%, #ff9666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Drop Zone */
.drop-zone {
    background: white;
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #f78e43;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(247, 142, 67, 0.1);
}

.drop-zone-content .upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.drop-zone-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.drop-zone-content p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.upload-formats {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.privacy-note {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 500;
    background: #ecfdf5;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 1rem;
}

/* Files Section */
.files-section {
    margin-top: 2rem;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.files-header h3 {
    font-size: 1.2rem;
    color: #334155;
    font-weight: 600;
    margin: 0;
}

.clear-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.file-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.file-name {
    font-weight: 500;
    color: #334155;
    font-size: 0.9rem;
}

.file-size {
    font-size: 0.8rem;
    color: #64748b;
}

.remove-file {
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Options Section */
.options-section {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.options-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.options-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.option-group {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.option-group label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.option-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Format Buttons */
.format-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.format-option {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

.format-option:hover {
    border-color: #f78e43;
    color: #f78e43;
    transform: translateY(-2px);
}

.format-option.active {
    background: linear-gradient(135deg, #f78e43 0%, #ff9666 100%);
    border-color: #f78e43;
    color: white;
    box-shadow: 0 8px 25px rgba(247, 142, 67, 0.3);
}

/* Quality Control */
.quality-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.quality-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.quality-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f78e43 0%, #ff9666 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(247, 142, 67, 0.3);
}

.quality-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f78e43 0%, #ff9666 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(247, 142, 67, 0.3);
}

#qualityValue {
    font-weight: 700;
    color: #f78e43;
    min-width: 40px;
    text-align: right;
}

/* Resize Options */
.resize-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.resize-inputs input[type="number"] {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.resize-inputs input[type="number"]:focus {
    outline: none;
    border-color: #f78e43;
    box-shadow: 0 0 0 3px rgba(247, 142, 67, 0.1);
}

.resize-inputs span {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Convert Button */
.convert-btn {
    background: linear-gradient(135deg, #f78e43 0%, #ff9666 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.convert-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Progress Section */
.progress-section {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-container h3 {
    font-size: 1.3rem;
    color: #334155;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.progress-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #f78e43 0%, #ff9666 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f78e43;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-container h2 {
        font-size: 2rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .options-section {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .format-buttons {
        justify-content: center;
    }
    
    /* Masquer complètement les boutons desktop sur mobile */
    .format-buttons.desktop-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .files-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .resize-inputs {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .convert-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .upload-container h2 {
        font-size: 1.75rem;
    }
    
    .drop-zone-content .upload-icon {
        font-size: 3rem;
    }
    
    .options-container h3 {
        font-size: 1.5rem;
    }
    
    .format-option {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Masquer complètement les boutons desktop sur mobile */
    .format-buttons.desktop-only {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
