:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-600:#1d4ed8;
  --success-bg:#ecfdf5;
  --success-bd:#a7f3d0;
  --danger-bg:#fef2f2;
  --danger-bd:#fecaca;
  --shadow: 0 10px 20px rgba(15, 23, 42, .06);
  --radius: 14px;
}

*{
  box-sizing:border-box;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.topbar{
  display:flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight: 800;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
}

h2, h3{
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.meta b{
  color: var(--text);
  font-weight: 700;
}

.muted{
  color: var(--muted);
}

.divider{
  height:1px;
  background: var(--border);
  margin: 18px 0;
}

/* Alerts */
.alert{
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 14px;
}
.alert-danger{
  background: var(--danger-bg);
  border-color: var(--danger-bd);
}
.alert-success{
  background: var(--success-bg);
  border-color: var(--success-bd);
}

/* ===================== */
/* FORM */
/* ===================== */

label{
  display:block;
  font-weight: 700;
  font-size: 13px;
  margin-top: 18px;      /* AUMENTADO */
  margin-bottom: 8px;    /* AUMENTADO */
  color: #374151;
  letter-spacing: .02em;
}

.input,
input,
select{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: #fff;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus,
input:focus,
select:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

/* Layout helpers */
.row{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-top: 10px;
}

.row > *{
  flex: 1;
}

.shrink{
  flex: 0 0 auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor:pointer;
  font-weight: 700;
  font-size: 14px;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  text-decoration:none;
}

.btn:hover{
  background:#fafafa;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: var(--primary);
  border-color: rgba(37,99,235,.25);
  color: #fff;
}

.btn-primary:hover{
  background: var(--primary-600);
}

.btn-danger{
  background:#fff;
  border-color:#f3c7c7;
  color:#991b1b;
}

.btn-danger:hover{
  background:#fff7f7;
}

.btn-sm{
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.companions-wrap > .row{
  margin-top: 12px;
}

/* ===================== */
/* DATATABLES POLISH */
/* ===================== */

.dt-wrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table.dataTable{
  border-collapse: collapse !important;
  width: 100% !important;
}

table.dataTable thead th{
  background: #f9fafb;
  border-bottom: 1px solid var(--border) !important;
  color: #374151;
  font-size: 13px;
  padding: 12px;
}

table.dataTable tbody td{
  border-bottom: 1px solid var(--border) !important;
  font-size: 14px;
  color: var(--text);
  padding: 12px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  outline: none;
  padding: 15px;;
}

.dataTables_wrapper .dataTables_filter input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.dataTables_wrapper .dataTables_paginate .paginate_button{
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  padding: 6px 10px !important;
  margin: 0 2px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current{
  background: rgba(37,99,235,.12) !important;
  border-color: rgba(37,99,235,.25) !important;
  color: #111827 !important;
}

.dataTables_wrapper {
 padding: 15px !important; 
}
/* ===================== */
/* ADMIN FULL WIDTH */
/* ===================== */

.container-admin{
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 0 48px;
}

.container-admin .card{
  width: 100%;
}

.container-admin .dt-wrap{
  width: 100%;
}

.container-admin table.dataTable{
  width: 100% !important;
}

/* ===================== */
/* RESPONSIVO */
/* ===================== */

@media (max-width: 640px){
  .row{
    flex-direction: column;
    align-items: stretch;
  }

  .shrink{
    width: 100%;
  }

  .container{
    padding: 24px 14px 40px;
  }
}
/* Botão verde claro para "Adicionar acompanhante" */
.btn-green{
  background: #e9f7ef;
  border-color: #bfe8cf;
  color: #166534;
}
.btn-green:hover{
  background: #dff3e7;
}
/* ===================== */
/* AUTH (LOGIN) */
/* ===================== */

.auth-page{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

.auth-card{
  width: 100%;
  max-width: 420px; /* largura ideal */
}

.auth-card .card{
  padding: 28px;
}

.auth-title{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0 0 8px 0;
}

.auth-subtitle{
  margin: 0 0 18px 0;
}

/* ===================== */
/* ADMIN MENU */
/* ===================== */

.admin-menu{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

@media (max-width: 640px){
  .admin-menu{
    align-items:flex-start;
  }
  .admin-nav{
    width: 100%;
    justify-content: flex-start;
  }
  .admin-nav .btn{
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   ÍCONES - PADRÃO VISUAL
========================= */

.icon-primary   { color: var(--primary) !important; }
.icon-success   { color: #16a34a !important;  }
.icon-danger    { color: #dc2626 !important; }
.icon-warning   { color: #d97706 !important; }
.icon-muted     { color: var(--muted) !important; }
.icon-info      { color: #2563eb !important; }

/* Ícones dentro de botões herdam cor do botão */
.btn .fa-solid,
.btn .fa-regular,
.btn .fa-brands {
  color: inherit;
}

/* Ícones em badges */
.badge-success i { color: #16a34a; }
.badge-danger i  { color: #dc2626; }
.badge-muted i   { color: #6b7280; }

/* Ajuste leve de peso visual */
i.fa-solid,
i.fa-regular {
  vertical-align: middle;
}