/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fundo da página */
body {
    font-family: Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* importante */
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgba(0, 0, 0, 0.222), #415660);
    margin: 20px 0;
}

/* Logo da faculdade */
.logo-fatec {
    width: 220px;
    margin-bottom: 24px;
}

/* TOPO CORRETO */
.topo {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
}

/* AACC centralizado REAL */
.topo h1 {
    width: fit-content;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.2);
    color: white;

    padding: 10px 40px;
    border-radius: 20px;
}

/* Ícone na direita */
.icone {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);

    font-size: 22px;
    cursor: pointer;
}

/* FORM */
form {
    width: 90%;
    max-width: 350px;

    display: flex;
    flex-direction: column;
}

/* Título AACC */
h1 {
    background: rgba(255, 255, 255, 0.2);
    color: white;

    padding: 10px 40px;
    border-radius: 20px;

    text-align: center;
}

/* Label */
label {
    color: white;
    margin-bottom: 5px;
    align-self: flex-start;
}

/* Input */
input[type="number"],
input[type="date"],
input[type="text"] {
    width: 100%;
    padding: 12px;

    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

/* Botão */
input[type="submit"],
input[type="button"] {
    padding: 12px 30px;
    border-radius: 10px;
    border: none;

    background: #ddd;
    cursor: pointer;

    transition: 0.2s;
}

/* Efeito hover */
input[type="submit"]:hover {
    background: #ccc;
}

.botoes {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.botoes input {
    flex: 1;
    /* mesmo tamanho */
    padding: 12px;
    border-radius: 12px;
    border: none;

    background: #ddd;
    cursor: pointer;
    font-size: 16px;
}

.lista {
    width: 90%;
    /* max-width: 400px; */
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    color: white;
    margin: 20px 0;
}

/* Título */
.card b {
    font-size: 16px;
}

/* Linha separadora */
.card hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Botão voltar */
button {
    /* margin-top: 20px; */
    margin-top: 0;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #ddd;
    cursor: pointer;
    font-weight: 600;
}

/* Texto Acesso Adm */
.acessoAdm {
    margin-top: 15px;
}

.acessoAdm a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
}

/* Mensagem de erro de login */
#msg {
    /* color: rgba(255, 255, 255, 0.8); */
    /* color: #ffe082; */
    color: #fca5a5;
    margin-top: 14px;
    /* margin-top: 4px; */
    font-size: 14px;
    min-height: 18px;
}

/* Select de atividades na tela form.html */
#atividade {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Preview form.html */
#preview-wrap {
    display: none;
    margin-bottom: 16px;
}

#preview-img {
    max-width: 100%;
    border-radius: 8px;
    display: none;
}

#preview-pdf {
    color: white;
    font-size: 13px;
}

/* lista.html */
.card-obs {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-style: italic;
}

/* Na lista.html */
#ra-label {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

#lista p {
    color: rgba(255, 255, 255, 0.6);
}

#vazio {
    display: none;
    color: rgba(255, 255, 255, 0.6);
    margin: 20px 0;
}

#modal-img {
    display: none;
}

#modal-pdf {
    display: none;
}

/* adm_login.html */
.lock {
    font-size: 40px;
    margin-bottom: 10px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
}

input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 8px;
    font-size: 15px;
}

#formAdm {
    width: 90%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

/* Na tela adm.html */
.filtros {
    width: 90%;
    max-width: 700px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filtros select,
.filtros input[type="text"] {
    flex: 1;
    min-width: 130px;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.filtros button {
    background: #10b981;
    /* verde */
    color: white;
    height: 40px;
    box-sizing: border-box;
}

.filtros select option {
    background: #415660;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge.pendente {
    background: #f59e0b33;
    color: #fde68a;
    border: 1px solid #f59e0b55;
}

.badge.aprovado {
    background: #10b98133;
    color: #6ee7b7;
    border: 1px solid #10b98155;
}

.badge.reprovado {
    background: #ef444433;
    color: #fca5a5;
    border: 1px solid #ef444455;
}

.card-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
}

.acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.acoes button {
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
}

.btn-aprovar {
    background: #10b981;
    color: white;
}

.btn-reprovar {
    background: #ef4444;
    color: white;
}

.btn-ver {
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    font-size: 13px;
}

.btn-aprovar:hover {
    background: #059669;
}

.btn-reprovar:hover {
    background: #dc2626;
}

.btn-ver:hover {
    background: rgba(255, 255, 255, 0.25);
}

textarea.obs {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 13px;
    resize: vertical;
    min-height: 55px;
}

textarea.obs::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filtros input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Relatório */
#rel-section {
    width: 90%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

#rel-section h2 {
    color: white;
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

td {
    color: white;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

tr:last-child td {
    border-bottom: none;
}

.total-row td {
    font-weight: 700;
    color: #6ee7b7;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

#btn-exportar {
    margin-top: 14px;
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

#btn-exportar:hover {
    background: #059669;
}

/* Modal */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#modal.open {
    display: flex;
}

#modal-inner {
    background: #415660;
    border-radius: 16px;
    padding: 20px;
    max-width: 90vw;
    max-height: 85vh;
    overflow: auto;
    text-align: center;
}

#modal-inner img {
    max-width: 100%;
    border-radius: 8px;
}

#modal-inner iframe {
    width: 70vw;
    height: 80vh;
    border: none;
    border-radius: 8px;
}

#modal-close {
    display: block;
    margin: 14px auto 0;
    padding: 8px 24px;
    border-radius: 8px;
    border: none;
    background: #ddd;
    cursor: pointer;
}

.importarAlunos {
    margin-bottom: 16px;
}

.importarAlunos a {
    display: inline-block;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}