.image-pdf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.file-input-zone {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background-color: #f8fafc;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.file-input-zone.dragover {
    border-color: #2ecc71;
    background-color: #e8f5e9;
}

.file-input-zone i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.file-input-zone h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.select-button {
    background-color: #3498db;
    color: white;
}

.select-button:hover {
    background-color: #2980b9;
}

.convert-button {
    background-color: #2ecc71;
    color: white;
}

.convert-button:hover {
    background-color: #27ae60;
}

.convert-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.clear-button {
    background-color: #e74c3c;
    color: white;
}

.clear-button:hover {
    background-color: #c0392b;
}

.file-list {
    margin: 20px 0;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8fafc;
    border-bottom: 1px solid #ecf0f1;
}

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

.file-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.file-size {
    font-size: 0.85em;
    color: #7f8c8d;
    margin: 0;
}

.remove-file {
    padding: 6px;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2em;
}

.progress-bar {
    height: 6px;
    background-color: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
}

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0;
    transition: width 0.3s ease;
}

.image-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 500;
    color: #2c3e50;
}

.option-group select {
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background-color: white;
}

.converted-result {
    text-align: center;
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 8px;
    margin-top: 20px;
}

.converted-result h3 {
    color: #27ae60;
    margin-bottom: 15px;
}

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

.filename-input {
    width: 100%;
    max-width: 400px;
}

.filename-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    margin-bottom: 5px;
}

.filename-hint {
    font-size: 0.85em;
    color: #7f8c8d;
    margin: 0;
}

.download-button {
    background-color: #3498db;
    color: white;
}

.download-button:hover {
    background-color: #2980b9;
}

.file-order-controls {
    text-align: center;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin: 20px 0;
}

.file-order-controls h4 {
    margin: 0;
    color: #2c3e50;
    margin-bottom: 5px;
}

.file-order-controls p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .image-pdf-container {
        padding: 10px;
    }

    .file-input-zone {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .image-options {
        grid-template-columns: 1fr;
    }
}
