/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #e7e7e7;
    padding-top: 100px;
}

/* CONTAINER */
.container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

/* CABEÇALHO */
header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

header img {
    height: 36px;
    margin-right: 16px;
}

header h1 {
    font-size: 40px;
    font-weight: bold;
}

i {
    font-size: 30px;
    padding-right: 30px;
    cursor: pointer;
    color: #fdd128;
    user-select: none;
}

i:hover {
    color: #bb9a16;
}

/* FORMULÁRIO */
form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    max-width: 640px;
    width: 100%;
    margin-bottom: 44px;
}

form input {
    flex: 1;
    font-size: 24px;
    background-color: #fff;
    border: none;
    border-bottom: 2px solid #000;
    padding: 8px;
    height: 48px;
}

#input-discipline {
    font-weight: bolder;
    color: #000;
}

form button {
    background-color: #009432;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    height: 48px;
    padding: 0 16px;
    line-height: 48px;
    white-space: nowrap;
}

form button:hover {
    background-color: #3ab463;
}

/* TABELA */
table {
    width: 100%;
    user-select: none;
}

table th {
    border-bottom: 2px solid #000;
    padding: 26px;
    font-size: 24px;
    font-weight: bold;
}

table td {
    text-align: center;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

tfoot td {
    font-size: 20px;
    font-weight: bold;
    padding-top: 12px;
    border-bottom: none;
}

table button {
    background-color: #fdd128;
    color: #000;
    border: none;
    font-size: 20px;
    font-weight: bold;
    padding: 4px 16px;
    cursor: pointer;
    border-radius: 10px;
}

table button:hover {
    background-color: #fddf66;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #000;
}

/* ACESSIBILIDADE */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input:focus,
button:focus {
    outline: 2px solid #009432;
    outline-offset: 2px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    body {
        padding: 20px;
        padding-top: 40px;
    }

    .container {
        max-width: 400px;
        width: 100%;
        margin: 0 10px;
    }

    header h1 {
        font-size: 30px;
    }

    form {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    form input {
        width: 100%;
        font-size: 1rem;
        margin-bottom: 8px;
    }

    form button {
        width: 100%;
        font-size: 1rem;
    }

    table {
        width: 100%;
        display: block;
        overflow-x: auto;
    }

    table td,
    table th {
        white-space: nowrap;
        padding: 12px;
        font-size: 16px;
    }

    tfoot td a button {
        width: 100%;
    }

    tfoot tr {
        display: flex;
        flex-direction: column;
        align-items: center;

    }


    tfoot td:last-child {
        display: flex;
        justify-content: center;
        padding-top: 1px;
    }

    tfoot td:last-child a button {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
        padding: 12px;
        margin-top: 12px;
    }
}
