* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6495ED;
    --secondary-color: #FFF1CC;
    --shadow-color: #CCC;
    --text-color: #FFF;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Karla', sans-serif;
    position: relative;
}

header {
    background-color: var(--primary-color);
    height: 70px;
    text-align: center;
    line-height: 70px;
    box-shadow: 0 1px 2px var(--shadow-color);
}

.header-title {
    color: black;
    font-size: 2rem;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
    margin: 5vh auto;
    padding: 50px;
    box-shadow: 2px 2px 10px var(--shadow-color);
    gap: 20px;
}

footer {
    width: 100%;
    text-align: center;
    font-weight: 200;
    font-style: italic;
    padding: 20px;
}

/* Estilo da tabela */
.records {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.records th,
.records td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.records th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.records tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.records tbody tr:hover {
    background-color: #f1f1f1;
}

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

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-field {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Responsividade */
@media (max-width: 480px) {
    header {
        position: fixed;
        width: 100%;
    }

    .header-title {
        font-size: 1.5rem;
    }

    main {
        padding: 0;
        margin: 20px 0 0 0;
        width: 100%;
        box-shadow: none;
    }

    /* Ajuste para a tabela em telas pequenas */
    .records th,
    .records td {
        font-size: 0.9rem;
        padding: 6px;
    }

    /* Ajuste para o modal em telas pequenas */
    .modal-content {
        width: 90%;
        padding: 15px;
    }

    .modal-field {
        font-size: 0.9rem;
        padding: 6px;
    }
}