/* ====== BASE ====== */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

/* ====== TÍTULOS ====== */
h1, h2, h3 {
    color: maroon;
    text-align: center;
}

/* ====== LINKS ====== */
a {
    color: maroon;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    text-decoration: underline;
}

/* ====== BOTÕES ====== */
button,
.btn-aprovar, .btn-excluir, .btn-padrao {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    margin: 2px;
}

.btn-aprovar {
    background-color: green;
}
.btn-excluir {
    background-color: red;
}
.btn-padrao {
    background-color: maroon;
}

button:hover,
.btn-aprovar:hover,
.btn-excluir:hover,
.btn-padrao:hover {
    opacity: 0.85;
}

/* ====== TABELAS ====== */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 20px;
}
th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}
th {
    background-color: #eee;
}

/* ====== STATUS DE EVENTO ====== */
.aprovado {
    color: green;
    font-weight: bold;
}
.pendente {
    color: orange;
    font-weight: bold;
}

/* ====== MENSAGENS ====== */
.alerta-sucesso {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alerta-erro {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* ====== BARRA DE FILTROS ====== */
.filtros {
    text-align: center;
    margin-bottom: 20px;
}
.filtros a {
    margin: 0 10px;
}

/* ====== VOLTAR AO PAINEL ====== */
.voltar {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ====== FORMULÁRIOS ====== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.my-element {
  width: 200px;
  height: 100px;
  padding: 10px;
  border: 2px solid black;
}
}

form {
    margin-top: 20px;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        padding: 10px;
        background: #fff;
    }

    td, th {
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    td::before, th::before {
        position: absolute;
        left: 10px;
        width: 45%;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    td:nth-of-type(1)::before { content: "ID"; }
    td:nth-of-type(2)::before { content: "Título"; }
    td:nth-of-type(3)::before { content: "Descrição"; }
    td:nth-of-type(4)::before { content: "Data"; }
    td:nth-of-type(5)::before { content: "Status"; }
    td:nth-of-type(6)::before { content: "Ação"; }
}

