/* Reset básico */
html, body, div, header, footer, main, section, a, p, i, button, form {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9; /* Fundo cinza claro */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 10px; /* Margem Bottom do Footer */
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #28a745; /* Verde claro */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo */
.header .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Navegação */
.nav {
    display: flex;
    flex-wrap: nowrap;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav a:hover {
    color: #c3e6cb; /* Verde mais claro no hover */
}

/* DropMenu para dispositivos menores */
.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: white;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: #28a745; /* Verde claro */
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav a {
        margin: 0.5rem;
        font-size: 1.2rem;
        text-align: center;
        padding: 0.5rem;
        border-bottom: 1px solid #218838; /* Verde mais escuro */
    }

    .menu-icon {
        display: block;
    }
}

.nav.active {
    display: flex;
}

/* Main Container */
.container {
    flex: 1;
    padding: 2rem;
    width: 90%;
    margin: 10px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.container-small {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Formulários */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

form label {
    font-weight: bold;
    font-size: 1rem;
}

form input,
form select,
form textarea {
    padding: 1rem;
    border: 2px solid #28a745; /* Verde claro */
    border-radius: 20px;
    font-size: 1.2rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #218838; /* Verde mais escuro no foco */
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5); /* Sombra verde */
}

form textarea {
    resize: vertical;
    min-height: 200px;
}

form button {
    align-self: flex-start;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    background-color: #28a745; /* Verde claro */
    color: white;
    transition: background 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #218838; /* Verde mais escuro no hover */
    transform: translateY(-3px);
}

/* DropList */
form select {
    appearance: none;
    background: none;
    padding: 1rem;
    border: 2px solid #28a745;
    border-radius: 20px;
    font-size: 1.5rem;
    color: #333;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    cursor: pointer;
}

form select:focus {
    border-color: #218838;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    background-color: #e9f9ed;
}

/* Botões Diferentes */
.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: black;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #20c997;
    color: white;
}

.btn-info:hover {
    background-color: #17a2b8;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    margin-top: auto;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo mais escuro */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 75%;
    height: 75%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    overflow-y: auto;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Animação do Modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Botões com bordas arredondadas e ícones */
button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button i {
    font-size: 1.2rem;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    color: black;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}
/* Botões menores com ícones */
.small-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.small-btn i {
    font-size: 1rem;
}

/* Cores específicas para cada botão */
.btn-warning {
    background-color: #f0ad4e;
    color: #fff;
}

.btn-danger {
    background-color: #d9534f;
    color: #fff;
}

.btn-info {
    background-color: #5bc0de;
    color: #fff;
}

.btn-success {
    background-color: #5cb85c;
    color: #fff;
}

/* Hover effects */
.small-btn:hover {
    filter: brightness(0.9);
}

/* Estilização da tabela */
.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: 'Arial', sans-serif;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

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

.styled-table tbody td:last-child {
    text-align: center;
}