body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #08041b;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.upload-area {
    background-color: #e0e0e0;
    border: 2px solid #211e33;
    padding: 40px;
    border-radius: 10px;
    margin: 20px 0;
    color: #333333;
}

.upload-area button {
    background: linear-gradient(to right, #ff6200, #ff0000);
    border: none;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.upload-area button:hover {
    background: linear-gradient(to right, #e65a00, #e60000);
}

.editor {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.preview {
    flex: 2;
    background-color: #211e33;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.preview img {
    max-width: 100%;
    max-height: 500px;
}

.controls {
    flex: 1;
    background-color: #211e33;
    padding: 20px;
    border-radius: 10px;
    margin-left: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background-color: #211e33;
    border: none;
    color: #ffffff;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s;
}

.tab-button.active {
    background: linear-gradient(to right, #ff6200, #ff0000);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
}

.control-group input,
.control-group select,
.control-group button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    background-color: #3a3a3a;
    color: #ffffff;
}

/* Ajustamos para que .control-group button no afecte a los botones con .function-button */
.control-group button:not(.function-button) {
    background: linear-gradient(to right, #ff6200, #ff0000);
}

.control-group button:not(.function-button):hover {
    background: linear-gradient(to right, #e65a00, #e60000);
}

/* Estilos para los botones de función (Rotar y Voltear, Píxeles y Porcentaje) */
.function-button {
    background-color: #d3d2d7; /* Un tono un poco más oscuro que #e9e8ed para mejor contraste */
    color: #08041b;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
}

.function-button:hover {
    background-color: #c0bfc4; /* Un tono más oscuro al pasar el mouse */
}

.resize-mode {
    display: flex;
    margin-bottom: 10px;
}

.mode-button {
    flex: 1;
    padding: 8px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 5px;
}

/* Aseguramos que los botones de modo usen el estilo de .function-button por defecto */
.mode-button.function-button {
    background-color: #d3d2d7;
    color: #08041b;
}

.mode-button.function-button:hover {
    background-color: #c0bfc4;
}

/* Estilo para el botón activo */
.mode-button.function-button.active {
    background: linear-gradient(to right, #ff6200, #ff0000);
    color: #ffffff;
}

.mode-button:last-child {
    margin-right: 0;
}

.warning {
    color: #ff4444;
    font-size: 0.9em;
    margin-top: 5px;
}

form button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, #ff6200, #ff0000);
    border: none;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background: linear-gradient(to right, #e65a00, #e60000);
}

form button.secondary {
    width: 100%;
    padding: 10px;
    background-color: #211e33;
    border: none;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

form button.secondary:hover {
    background-color: #ff6200;
}

.processing,
.download {
    background-color: #211e33;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.download a,
.download button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #ffffff;
}

.download a {
    background: linear-gradient(to right, #ff6200, #ff0000);
}

.download a:hover {
    background: linear-gradient(to right, #e65a00, #e60000);
}

.download button.secondary {
    background-color: #211e33;
    border: none;
    cursor: pointer;
}

.download button.secondary:hover {
    background-color: #ff6200;
}