/* style.css - Identidade Visual Itweb */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Cores da Identidade Visual */
    --primary: #b7f003; /* Verde Neon/Lime */
    --primary-hover: #9ad402;
    --black: #000000;
    --dark: #121212;
    --white: #ffffff;

    /* Variações sutis para legibilidade e profundidade */
    --bg-body: #f4f5f7;
    --border: #e0e0e0;
    --text-main: #222222;
    --text-muted: #666666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

/* ==========================================================================
   Header e Navegação (Topo)
   ========================================================================== */
header {
    background-color: var(--black);
    color: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--primary);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* ==========================================================================
   Containers e Estrutura Principal
   ========================================================================== */
main, body > form, body > h2, body > p, body > a {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

/* Especial para páginas simples que não usaram tag main (login, perfil, etc) */
body > h2:first-of-type {
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
    padding-bottom: 1rem;
}
body > form {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

h2 {
    color: var(--black);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: "";
    display: block;
    width: 6px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 3px;
}

a {
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #666;
}

/* ==========================================================================
   Formulários e Inputs
   ========================================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Filtro da página index.php */
main > form:first-of-type {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    background-color: var(--bg-body);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

label {
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
    margin-bottom: -0.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--white);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(183, 240, 3, 0.4);
}

select[multiple] {
    padding: 0.5rem;
}

select[multiple] option {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 2px;
}

select[multiple] option:checked {
    background-color: var(--primary) !important;
    color: var(--black) !important;
}

/* ==========================================================================
   Botões
   ========================================================================== */
button[type="submit"] {
    background-color: var(--primary);
    color: var(--black);
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: inline-block;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(183, 240, 3, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ==========================================================================
   Tabelas (Matriz GUT)
   ========================================================================== */
table {
    width: 100% !important; /* Força ajuste */
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: var(--black);
    color: var(--white);
    text-align: left;
    padding: 1.2rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background-color: #fafafa;
}

tr:hover td {
    background-color: #f7fce5; /* Leve esverdeado ao passar o mouse */
}

/* Destaque para a Pontuação GUT */
td strong {
    background-color: var(--primary);
    color: var(--black);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    text-align: center;
    min-width: 40px;
}

/* Botão de Ação na Tabela */
td a {
    background-color: var(--black);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

td a:hover {
    background-color: var(--primary);
    color: var(--black);
}

/* Notas do Admin */
td p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    background: #f4f5f7;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--border);
}
