:root {
  --vw-blue: #003366;
  --light-gray: #f5f7fa;
  --medium-gray: #e1e4ea;
  --text-dark: #333;
  --text-light: #fff;
  --radius: 6px;
}

/* Reset e fontes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--light-gray);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* HEADER */
.site-header {
  background: var(--vw-blue);
  color: var(--text-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo { height: 32px; }
.title { font-size: 1.25rem; font-weight: 500; }

/* CONTAINER */
.container {
  max-width: 1700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ABAS */
.tabs {
  display: flex;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tab-button {
  flex: 1;
  padding: 0.75rem;
  background: #fff;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-button.active {
  background: var(--vw-blue);
  color: var(--text-light);
}
.tab-button:not(.active):hover {
  background: var(--medium-gray);
}

/* BUSCA */
.search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}
.search-wrapper input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrapper input:focus {
  outline: none;
  border-color: var(--vw-blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}
.icon-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  background: url('icon-search.svg') no-repeat center/contain;
  pointer-events: none;
}

/* CARD + TABELA */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  margin-bottom: 2rem;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

table {
  width: 100%;
  border-collapse: collapse;
}
thead {
  background: var(--vw-blue);
}
thead th {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
tbody tr {
  transition: background 0.2s;
}
tbody tr:nth-child(even) {
  background: var(--medium-gray);
}
tbody tr:hover {
  background: rgba(0, 51, 102, 0.05);
}
tbody td {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* EMOJI RAIN */
.emoji-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.emoji {
  position: absolute;
  top: -3rem;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .title { font-size: 1rem; }
  thead th, tbody td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* SVG Logo branco */
.site-header .logo svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* RODAPÉ */
.site-footer {
  background: var(--vw-blue);
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Sticky apenas para cabeçalho da tabela */
.tab-content table thead th {
  position: sticky;
  top: 0;
  background: var(--vw-blue);
  z-index: 10;
}
