* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(5, 24, 1);
    color: rgb(185, 185, 185);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin: 30px 0;
    font-size: 2.2rem;
    color: #7fdbda;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.controls {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

select,
button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select {
    background-color: rgb(12, 5, 78);
    color: rgb(185, 185, 185);
    border: 1px solid #3a7ca5;
    min-width: 150px;
}

select:hover {
    background-color: rgb(20, 10, 100);
}

button {
    background: linear-gradient(45deg, rgb(143, 48, 10), rgb(173, 68, 20));
    color: white;
    font-weight: bold;
    min-width: 150px;
}

button:hover:not(:disabled) {
    background: linear-gradient(45deg, rgb(163, 68, 30), rgb(193, 88, 40));
    transform: translateY(-2px);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

#drop-area {
    border: 3px dashed #3a7ca5;
    border-radius: 12px;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 500px;
    background: rgba(30, 58, 95, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

#drop-area:hover {
    border-color: #7fdbda;
    background: rgba(30, 58, 95, 0.5);
}

.upload-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #7fdbda;
}

.upload-icon {
    font-size: 50px;
    margin: 10px 0;
}

.custom-file-upload {
    cursor: pointer;
    display: inline-block;
}

#uploader {
    display: none;
}

#image-preview {
    margin: 20px 0;
    padding: 10px;
}

#image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #3a7ca5;
}

#file-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(30, 58, 95, 0.5);
    border-radius: 8px;
    text-align: left;
}

#file-info p {
    margin: 5px 0;
}

#status {
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    max-width: 500px;
    display: none;
    font-weight: bold;
}

.status-success {
    background-color: rgba(46, 125, 50, 0.3);
    color: #a5d6a7;
    border: 1px solid #4caf50;
}

.status-error {
    background-color: rgba(198, 40, 40, 0.3);
    color: #ffabab;
    border: 1px solid #f44336;
}

.status-loading {
    background-color: rgba(33, 150, 243, 0.3);
    color: #90caf9;
    border: 1px solid #2196f3;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: center;
    }

    select,
    button {
        width: 100%;
        max-width: 250px;
    }

    h1 {
        font-size: 1.8rem;
    }

    #drop-area {
        padding: 20px 15px;
    }
}

/* Estilos para drag and drop */
#drop-area.dragover {
    border-color: #7fdbda !important;
    background-color: rgba(127, 219, 218, 0.2) !important;
}

/* Garantir que apenas o ícone seja clicável */
.custom-file-upload {
    cursor: pointer;
}

#drop-area {
    cursor: default;
}

/* Remover qualquer pointer-events problemático */
#drop-area * {
    pointer-events: auto;
}
