body {
    margin: 0;
    font-family: Verdana, sans-serif;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #e7e7e7;
    border: 2px dashed;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 1);
}

h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
}

.main-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

.controls {
    background-color: #f3f3f3;
    padding: 20px;
}

.control-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #000000;
}

input[type="file"] {
    width: 100%;
    color: #000000;
}

select, input[type="range"] {
    width: 100%;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #1f1f1f;
    border: none;
    color: #efefef;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #484848;
}

button:active {
    transform: scale(0.98);
}

.preview {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d8d8d8;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border: 2px dashed #444;
}

#resultImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

#placeholder, #loading {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
}

.hidden {
    display: none;
}

.preset-desc {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

#loading {
    color: #353535;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
