
/* --- Reset básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* --- Container de registro --- */
.students-register-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    margin: 30px auto;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.students-register-container input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.students-register-container button {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.students-register-container button:hover:not(.disable) {
    background-color: #007BFF;
    color: white;
}

.students-register-container .disable {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Container de resultados --- */
.students-result-container {
    width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Div de aluno --- */
.div-stud-generator {
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start; /* alinhar à esquerda */
    align-items: center; /* centraliza verticalmente */
    gap: 20px; /* espaço entre nome, score e id */
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    min-height: 40px; /* mantém altura consistente */
}
/* Se quiser centralizar a nota e o ID em colunas fixas */
.div-stud-generator h3 {
    flex: 2; /* ocupa mais espaço */
    text-align: left;
}

.div-stud-generator p:nth-of-type(1) {
    flex: 1;
    text-align: center; /* nota centralizada */
}

.div-stud-generator p:nth-of-type(2) {
    flex: 2;
    text-align: center; /* id centralizado */
}
/* --- Notas >= 7 --- */
.div-correct {
    background-color: #d4edda;
    color: #155724;
}

/* --- Notas < 7 --- */
.div-lost {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- Seleção de div --- */
.div-stud-generator.active {
    border-color: #007BFF;
    background-color: #cce5ff;
}

/* --- Textos internos --- */
h3, p {
    margin: 0 5px;
}

/* --- Classes específicas de score e ID (opcional) --- */
.name-correct, .score-correct, .id-correct {
    font-weight: bold;
}

.name-lost, .score-lost, .id-lost {
    font-style: italic;
}
/* --- Container de resultados --- */
.students-result-container {
    width: 90%; /* ocupa quase toda a tela no celular */
    max-width: 500px; /* não fica muito grande em telas maiores */
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Div de aluno --- */
.div-stud-generator {
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap; /* permite quebrar linha se necessário */
    align-items: center; /* centraliza verticalmente */
    gap: 10px; /* espaço entre nome, nota e id */
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    min-height: 50px;
}

/* Colunas flexíveis */
.div-stud-generator h3 {
    flex: 2 1 100px; /* cresce, encolhe e tamanho base mínimo */
    text-align: left;
}

.div-stud-generator p:nth-of-type(1) {
    flex: 1 1 50px; /* nota */
    text-align: center;
}

.div-stud-generator p:nth-of-type(2) {
    flex: 2 1 100px; /* id */
    text-align: center;
}

/* --- Notas >= 7 --- */
.div-correct {
    background-color: #d4edda;
    color: #155724;
}

/* --- Notas < 7 --- */
.div-lost {
    background-color: #f8d7da;
    color: #721c24;
}

/* --- Seleção --- */
.div-stud-generator.active {
    border-color: #007BFF;
    background-color: #cce5ff;
}

/* --- Texto interno --- */
h3, p {
    margin: 0;
    word-wrap: break-word; /* evita overflow no celular */
}

/* --- Inputs e botões --- */
.students-register-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.students-register-container input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.students-register-container button {
    padding: 8px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.students-register-container button:hover:not(.disable) {
    background-color: #007BFF;
    color: white;
}

.students-register-container .disable {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Media Queries (telas muito pequenas) --- */
@media (max-width: 400px) {
    .div-stud-generator {
        flex-direction: column; /* empilha nome, nota e id */
        align-items: flex-start;
    }
    .div-stud-generator h3, 
    .div-stud-generator p {
        text-align: left;
        width: 100%;
    }
}
