@charset "UTF-8";

/* Reset e Configurações Globais */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden; /* Evita scroll na página inteira */
    background-color: rgba(0, 0, 0, 0.793);
}

/* Container Principal */
#contain {
    background-image: url('../img/alto-angulo-de-area-de-trabalho-com-espaco-para-laptop-e-copia.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: row;
}

/* Seções de Entrada e Saída */
section {
    padding: 20px;
    margin: auto;
    display: flex;
    flex-direction: column; /* Corrigido de 'columnn' */
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

#entrada {
    backdrop-filter: blur(3px);
}

#saida {
    width: 55vw;
    height: 90vh;
    background-color: rgba(74, 70, 28, 0.7);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* Scroll apenas aqui se houver muitas tarefas */
    box-shadow: 0px 0px 20px 0px rgba(255, 255, 255, 0.1);
}

#out {
    overflow-y: scroll;
    
}
/* Elementos do Formulário */
form {
    background-color: rgba(127, 255, 212, 0.5);
    padding: 15px;
    border-radius: 10px;
}

fieldset {
    width: 30vw;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2em;
    font-weight: 500;
    text-shadow: 1px 1px 2px black;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#desc {
    width: 100%;
    height: 120px;
    margin-top: 10px;
    padding: 10px;
    resize: none;
}

/* Estilo dos Itens na Saída */
.item-tarefa {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
}

.item-tarefa span {
    flex-grow: 1;
    font-size: 1em;
    word-break: break-word;
}

/* Botões */
button, input[type="submit"] {
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
}

input[type="submit"] {
    background-color: rgba(127, 255, 212, 0.7);
    color: white;
    margin-top: 15px;
    float: right;
}

.btn-excluir {
    background-color: rgba(255, 99, 71, 0.6);
    color: white;
}

.btn-mover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: bold;
}

.btn-mover:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Classes de Estado */
.concluida {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
}

.oculto { display: none; }
.visivel { display: inline-block; }

/* Scrollbar Personalizada */
#out::-webkit-scrollbar { width: 8px; }
#out::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Responsividade */
@media screen and (max-width: 768px) {

    fieldset { width: 100%; }

    #contain {
        flex-direction: column;
       
    }
    section {
        width: 95%;
        margin-bottom: 20px;
    }

    #entrada {
        order: 2;
    }

    #saida {
        order: 1;
        width: 95%;
        height: 50vh;
        margin-bottom: 20px;
    }

    input[type="submit"] { float: none; width: 100%; }
}

