/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Bangers&display=swap');

/* --- Estilos Gerais --- */
:root {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --primary-color: #007bff;
    --card-bg: #282828;
    --btn-color: #f1f1f1;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}

h1, h2, h3 {
    font-family: 'Bangers', cursive;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Cabeçalho e Navegação --- */
.header {
    background-color: #121212;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 40px;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    line-height: 1;
    flex-shrink: 0;
}

.header nav {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.header nav li {
    margin-left: 15px;
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 0.9em;
    line-height: 1;
    padding: 8px 0;
}

.header nav a:hover {
    color: var(--primary-color);
}

/* --- Estilo da Barra de Busca (Configuração Específica) --- */
#search-form {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

#search-input {
    background-color: #333;
    border: 1px solid #555;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 0.8em;
    height: 30px;
    box-sizing: border-box;
    line-height: 1;
}

.btn-search {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--btn-color);
    padding: 6px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8em;
    border: none;
    cursor: pointer;
    height: 30px;
    box-sizing: border-box;
    line-height: 1;
}

.btn-search:hover {
    background-color: #6aabff;
}

/* --- Estilo Geral para Botões --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--btn-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size: 1em;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #6aabff;
}

/* --- Seções Principais --- */
.main-content {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
    padding: 20px;
}

/* --- Estilo dos Cards --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    font-family: 'Roboto', sans-serif;
    text-transform: capitalize;
    letter-spacing: normal;
}

/* --- Rodapé --- */
.footer {
    background-color: #121212;
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Estilo para a tabela de gerenciamento */
.tabela-gerenciar {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabela-gerenciar th, .tabela-gerenciar td {
    border: 1px solid #444;
    padding: 12px;
    text-align: left;
}

.tabela-gerenciar th {
    background-color: #333;
    color: var(--primary-color);
    font-family: 'Bangers', cursive;
    text-transform: uppercase;
}

.tabela-gerenciar tr:nth-child(even) {
    background-color: #2a2a2a;
}

.btn-deletar {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-deletar:hover {
    background-color: #c0392b;
}

/* Estilo para formulários */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin-top: 20px;
}

.contact-form label,
.contact-form input {
    font-weight: bold;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form input[type="file"],
.contact-form select,
.contact-form input[type="password"] {
    background-color: #333;
    border: 1px solid #555;
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
}

/* --- Estilização Específica para a Página de Busca --- */

.container h2 {
    margin-bottom: 15px;
}

.no-results-message {
    font-size: 1.2em;
    color: #bdbdbd;
    text-align: center;
    padding: 40px 0;
}