
:root {
  --rw-bg: #f6f8fb;
  --rw-surface: #ffffff;
  --rw-border: #e6e9ef;
  --rw-text: #1c2430;
  --rw-muted: #667085;
  --rw-primary: #1e88e5;
  --rw-primary-contrast: #ffffff;
  --rw-radius: 14px;
  --rw-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  --rw-sidebar-w: 260px;
  --rw-topbar-h: 64px;
}

.theme-gestor {
  background: var(--rw-bg);
  color: var(--rw-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
}

/* Layout shell */
.theme-gestor .topbar {
  position: sticky; top: 0; height: var(--rw-topbar-h);
  display: flex; align-items: center; gap: 16px;
  background: var(--rw-surface); border-bottom: 1px solid var(--rw-border);
  padding: 0 20px; z-index: 50;
}
.theme-gestor .topbar .brand { font-weight: 700; letter-spacing: .2px; }

.theme-gestor .sidebar {
  position: fixed; left: 0; top: var(--rw-topbar-h);
  bottom: 0; width: var(--rw-sidebar-w);
  background: var(--rw-surface);
  border-right: 1px solid var(--rw-border);
  box-shadow: var(--rw-shadow);
  overflow-y: auto;
}
.theme-gestor main, .theme-gestor .rw-container {
  padding: 24px;
  margin-left: var(--rw-sidebar-w);
  margin-top: calc(var(--rw-topbar-h));
}

/* Generic cards */
.theme-gestor .card, .theme-gestor .box, .theme-gestor .panel {
  background: var(--rw-surface);
  border: 1px solid var(--rw-border);
  border-radius: var(--rw-radius);
  box-shadow: var(--rw-shadow);
  padding: 18px;
}

/* Buttons */
.theme-gestor .btn, .theme-gestor button[type="submit"], .theme-gestor input[type="submit"] {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 12px; border: 1px solid transparent;
  padding: 10px 14px; font-weight: 600; cursor: pointer;
}
.theme-gestor .btn-primary, .theme-gestor .primary {
  background: var(--rw-primary); color: var(--rw-primary-contrast);
}
.theme-gestor .btn-outline {
  background: #fff; border-color: var(--rw-border); color: var(--rw-text);
}
.theme-gestor .btn:hover { filter: brightness(0.985); }

/* Tables */
.theme-gestor table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--rw-surface);
  border: 1px solid var(--rw-border); border-radius: var(--rw-radius);
  overflow: hidden;
}
.theme-gestor thead th {
  text-align: left; font-size: 13px; color: var(--rw-muted);
  padding: 12px 14px; border-bottom: 1px solid var(--rw-border);
  background: #f9fbff;
}
.theme-gestor tbody td {
  padding: 14px; border-bottom: 1px solid var(--rw-border);
}
.theme-gestor tbody tr:hover { background: #f9fbff; }

/* Forms */
.theme-gestor input[type="text"], .theme-gestor input[type="date"],
.theme-gestor input[type="email"], .theme-gestor input[type="number"],
.theme-gestor input[type="password"], .theme-gestor select, .theme-gestor textarea {
  width: 100%; background: #fff; border: 1px solid var(--rw-border);
  border-radius: 12px; padding: 10px 12px;
}
.theme-gestor label { font-size: 13px; color: var(--rw-muted); margin-bottom: 6px; display: block; }

/* Badges */
.theme-gestor .badge { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; display: inline-block; }
.theme-gestor .badge--entrevista { background: #e6f0ff; color: #1e5bd6; }
.theme-gestor .badge--teste { background: #fff6e7; color: #a65a00; }
.theme-gestor .badge--docs { background: #e9f8f1; color: #0f8f55; }
.theme-gestor .badge--reprovado { background: #ffe9ea; color: #b3272f; }
.theme-gestor .badge--contratado { background: #eafaf5; color: #127a5b; }

/* Footer */
.theme-gestor .rw-footer.footer {
  margin-left: var(--rw-sidebar-w);
  background: var(--rw-surface);
  border-top: 1px solid var(--rw-border);
  padding: 14px 20px; position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--rw-muted);
}

@media (max-width: 1024px) {
  .theme-gestor .sidebar { width: 220px; }
  .theme-gestor main, .theme-gestor .rw-container, .theme-gestor .rw-footer.footer { margin-left: 220px; }
}
@media (max-width: 768px) {
  .theme-gestor .sidebar { position: fixed; left: -260px; transition: left .25s ease; }
  .theme-gestor .sidebar.open { left: 0; }
  .theme-gestor main, .theme-gestor .rw-container, .theme-gestor .rw-footer.footer { margin-left: 0; }
}
