/* style.css */

/* --- Cores principais --- */
:root {
  --primary-color: #1b60b4;     /* azul principal */
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --background-color: #1b60b4;  /* cinza muito claro */
  --text-color: #1e293b;
  --card-bg: #1b60b4;
  --border-color: #e2e8f0;
  --hover-color: #2563eb;
  --font-family: 'Inter', 'Poppins', sans-serif;
}

/* --- Reset e base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Cabeçalho --- */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* --- Botões --- */
button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 400;
  transition: background 0.3s ease;
}

button:hover {
  background-color: var(--hover-color);
}

/* --- Cartões / Containers --- */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* --- Links --- */
a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 400;
}

a:hover {
  text-decoration: underline;
}

/* --- Inputs e formulários --- */
input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-light);
  outline: none;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}


table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

/* --- Cabeçalho da tabela --- */
table thead {
    background-color: #3b82f6;
    color: #ffffff;
}

table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
}

/* --- Linhas da tabela --- */
table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

table tbody tr:last-child {
    border-bottom: none;
}

/* --- Hover das linhas --- */
table tbody tr:hover {
    background-color: #eff6ff;
}

/* --- Células --- */
table td {
    padding: 0.75rem 1rem;
    color: #1e293b;
}

/* --- Alternar cores de linhas (opcional) --- */
table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* --- Bordas arredondadas extras para tabelas pequenas --- */
table.small-table {
    width: auto;
    min-width: 300px;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    table thead {
        display: none;
    }

    table tbody tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #e2e8f0;
    }

    table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border: none;
        border-bottom: 1px solid #e2e8f0;
    }

    table tbody td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #3b82f6;
    }
}