/* =====================
   RESET BÁSICO
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   VARIÁVEIS
===================== */
:root {
  --primary: #3294b8;
  --primary-dark: #277a98;
  --background: #ffffff;
  --surface: #ffffff;
  --border: #dbe5ec;
  --text: #0f172a;
  --muted: #64748b;
}

/* =====================
   BASE
===================== */
html, body {
  font-family: 'system-ui', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* =====================
   HEADER
===================== */
.topo {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  height: 75px;
  width: auto;
}

.menu {
  display: flex;
  gap: 32px;
}

.menu a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--text);
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* =====================
   TOP NAV
===================== */
.top-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.top-nav a {
  color: var(--text);
  font-weight: 500;
}

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


/* =====================
   CONTAINER
===================== */
.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

main.container {
  margin-top: 32px;
}

/* =====================
   BOTÕES
===================== */
.btn-primary,
.btn-login,
.btn-success,
.btn-secondary {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary,
.btn-login {
  background: var(--primary);
  color: #fff;
  width: 100%;
}

.btn-primary:hover,
.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-success {
  background: #10b981;
  color: #fff;
}

.btn-success:hover {
  background: #0f9f6e;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text);
}

.btn-secondary:hover {
  background: #cbd5e1;
}

/* =====================
   LOGIN / CADASTRO
===================== */
.login-box {
  background: var(--surface);
  padding: 38px;
  margin: 70px auto;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-box label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
}

.login-box input {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50,148,184,0.15);
}

.login-links {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}

/* =====================
   FORMULÁRIOS
===================== */
.form-box {
  max-width: 720px;
  margin: 40px auto;
}

.form-box label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50,148,184,0.12);
}

.form-box textarea {
  resize: vertical;
}

/* =====================
   FIELDSET
===================== */
fieldset {
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 6px;
}

legend {
  font-weight: 600;
  padding: 0 10px;
  color: var(--primary);
}

/* =====================
   LOGOUT
===================== */
.logout-form {
  display: inline;
}

/* =====================
   BOTÃO LOGOUT ESTILIZADO
===================== */
.logout-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.logout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  color: #fff;
}

/* =====================
   MENU DROPDOWN
===================== */
.menu-dropdown {
  position: relative;
}

.menu-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 6px 0;
  z-index: 9999;
}

.menu-dropdown:hover .dropdown-menu {
  display: block;
}

.menu-dropdown .dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--text);
  font-size: 14px;
}

.menu-dropdown .dropdown-menu li a:hover {
  background: #f1f5f9;
}

/* Base do highlight */
.status-highlight {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1.4;
}

/* 🟢 Concluído */
.status-highlight.concluido {
    background-color: #72be8d;
    color: #010c09;
}

/* ⚪ Em análise */
.status-highlight.em-analise {
    background-color: #e5e7eb;
    color: #374151;
}

/* 🟡 Observação */
.status-highlight.observacao {
    background-color: #fef08a;
    color: #713f12;
}

/* 🔴 Inapto */
.status-highlight.inapto {
    background-color: #fecaca;
    color: #7f1d1d;
}

/* 🔴 Cancelado */
.status-highlight.cancelado {
    background-color: #fca5a5;
    color: #7f1d1d;
}

/* =====================
   TOP NAV DESKTOP
===================== */
.top-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.top-nav .container {
    display: flex;
    justify-content: center; /* centraliza tudo */
    align-items: center;
    gap: 18px;
    padding: 8px 0;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Esconde hambúrguer no desktop */
.menu-toggle {
    display: none;
}

/* Nome do usuário acompanha os outros */
.user-name {
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 768px) {

    .top-nav .container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        gap: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .top-nav a {
        width: 100%;
        text-align: center;
        padding: 12px;
        background: #f8f8f8;
        border-radius: 8px;
    }

    /* Dropdown vira bloco */
    .menu-dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .dropdown-menu a {
        padding-left: 20px;
        font-size: 14px;
    }
}
