body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #f4f7f9;
    margin: 0;
}

.container {
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

input[type="file"] {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 1.5rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.98);
}

.preview {
    margin-top: 1.5rem;
}

.preview h3 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.preview img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.output {
    text-align: center;
}

.downloadLink {
    display: none;
    margin-top: 1rem;
    text-decoration: none;
    background-color: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: 600;
}

.downloadLink:hover {
    background-color: #218838;
}

.qualityLabel {
    font-size: 0.9rem;
    color: #555;
}
