* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7fb;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    width: 100%;
}

h1 {
    color: #007BFF;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.upload-area {
    border: 2px dashed #007BFF;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.upload-area:hover {
    background-color: #e6f0ff;
}

.upload-area i {
    color: #007BFF;
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-area p {
    color: #333;
    font-size: 1rem;
}

.preview-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preview-box {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.preview-box img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.preview-box p {
    color: #333;
    margin-top: 10px;
    font-size: 0.9rem;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.control-group label {
    color: #333;
    font-size: 0.9rem;
    min-width: 80px;
}

.control-group input[type="number"],
.control-group input[type="range"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100px;
}

.control-group input[type="checkbox"] {
    accent-color: #007BFF;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.slider-container input[type="range"] {
    width: 100%;
    max-width: 300px;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    background-color: #007BFF;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.error, .success {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.error {
    color: #d9534f;
}

.success {
    color: #28a745;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .preview-container {
        flex-direction: column;
    }

    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .control-group input[type="number"] {
        width: 100%;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}