/* ==================================================
   Admin – Coordena+ (minimal, dark-friendly)
   ================================================== */

/* Font */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;600;700&display=swap");

:root {
  --brand: #2563eb; /* azul Coordena */
  --brand-600: #1d4ed8;
  --brand-50: #eff6ff;
  --surface: #0b1020; /* fundo escuro azulado */
  --card: #0f152b;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.12);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 16px;
}

html,
body {
  height: 100%;
}
body {
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
}
body.bg-surface {
  background: radial-gradient(
      1200px 800px at -10% -20%,
      rgba(37, 99, 235, 0.12),
      transparent 60%
    ),
    radial-gradient(
      1000px 800px at 110% -10%,
      rgba(16, 185, 129, 0.08),
      transparent 55%
    ),
    var(--surface);
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.7)
  );
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  color: #fff;
  font-size: 18px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}
.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.topbar-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-600);
  --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-color: #fff;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.btn-ghost {
  color: #e5e7eb;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
}
.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

/* ---------- Tabs (pills) ---------- */
.tabs-wrapper {
  background: transparent;
  padding-top: 12px;
  top: 64px;
}
.nav-pills .nav-link {
  border-radius: 999px;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid var(--line);
}
.nav-pills .nav-link:hover {
  background: rgba(148, 163, 184, 0.08);
}
.nav-pills .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  border-color: transparent;
}

/* ---------- Cards ---------- */
.card-ghost {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}
.card-ghost .card-body {
  padding: 18px;
}

/* ---------- Inputs ---------- */
.input-icon {
  position: relative;
}
.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}
.input-icon .form-control {
  padding-left: 36px;
  background: #0b1120;
  border: 1px solid var(--line);
  color: #e5e7eb;
  border-radius: 12px;
}
.form-select,
.form-control {
  background: #0b1120;
  border: 1px solid var(--line);
  color: #e5e7eb;
  border-radius: 12px;
}
.form-select:focus,
.form-control:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

/* ---------- List/Grid area (cards das listas) ---------- */
.list-area .card {
  background: #0b1120;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #e5e7eb;
}
.list-area .card:hover {
  border-color: rgba(148, 163, 184, 0.28);
}
.badge.bg-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
}

/* ---------- Table (Ocupação) ---------- */
.soft-border {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.table thead tr {
  background: #0b1120;
  color: #cbd5e1;
}
.table td,
.table th {
  border-color: var(--line) !important;
}
.table td {
  text-transform: lowercase;
}

/* ---------- Empty states ---------- */
.empty {
  text-align: center;
  padding: 48px 12px;
  color: var(--muted);
}
.empty i {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

/* ---------- Utilities ---------- */
.section-title {
  font-weight: 700;
  margin-bottom: 14px;
}
.shadow-sm {
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.25) !important;
}

/* ---------- Paginação (aplica no Bootstrap nativo) ---------- */
.pagination .page-link {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1120;
  color: #cbd5e1;
}
.pagination .page-link:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #fff;
}
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  border-color: transparent;
  color: #fff;
}

/* ---------- Estados coloridos opcionais ---------- */
.bg-state-danger {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #fecaca !important;
}
.bg-state-success {
  background-color: rgba(16, 185, 129, 0.18) !important;
  color: #bbf7d0 !important;
}
.bg-state-warning {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #fde68a !important;
}


/* ================================================
   Background & Scroll Lock para Mobile/Desktop
   ================================================ */
body {
  background-image: url("assets/img/background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Lato", sans-serif;
  color: var(--text, #3b4861);
  background: var(--bg, #f7fafc);
  overflow-x: hidden;
}

.dark body {
  background-image: url("assets/img/backgrounddark.png");
}

@media (max-width: 768px) {
  html,
  body {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto; /* Mantemos overflow-y para rolagem vertical */
    background-image: url("assets/img/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Lato", sans-serif;
  }
}

@media (min-width: 769px) {
  body {
    overflow-y: auto;
  }
}

/* ================================================
   IMPORTS DE FONTES
   ================================================ */
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Monoton&display=swap");

/* ================================================
   RESET GLOBAL
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================================
   VARIÁVEIS DE TEMA COORDENA+
   ================================================ */
:root {
  --primary-color: #4e73df; /* Azul principal */
  --secondary-color: #2e59d9; /* Azul escuro */
  --accent-color: #1cc88a; /* Verde claro */
  --danger-color: #e74a3b; /* Vermelho */
  --warning-color: #f6c23e; /* Amarelo */
  --background: #f7fafc; /* Cinza suave */
  --card-bg: #ffffff; /* Branco puro para cards */
  --text-color: #2c3e50; /* Azul escuro para textos */
  --text-light: #7f8c8d; /* Cinza médio */
  --border-color: #e0e6ed; /* Bordas sutis */
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-strong: rgba(0, 0, 0, 0.1);
  --radius: 0.75rem;
}

/* ================================================
   BODY CONFIG
   ================================================ */
body {
  font-family: "Lato", sans-serif;
  background: var(--bg, #f7fafc);
  color: var(--text-color, #3b4861);
  overflow-x: hidden;
}

/* ================================================
   CORREÇÕES DE DARK MODE PARA FULLCALENDAR (fc)
   ================================================ */
.dark .fc .fc-col-header {
  background-color: #1f2937; /* gray-800 */
}

.dark .fc .fc-col-header th,
.dark .fc .fc-list-heading td {
  border-color: #374151; /* gray-700 */
  color: #d1d5db; /* gray-300 */
}

.dark .fc .fc-col-header-cell-cushion {
  color: #d1d5db;
}

.dark .fc .fc-list-head {
  background-color: #1f2937;
}

/* ================================================
   Botão de Notificações / Toggle do Menu
   ================================================ */
.notification-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(229, 231, 235);
  background: currentColor;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.notification-btn:hover,
.notification-btn:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.dark .notification-btn {
  border-color: rgba(55, 65, 81);
}

/* ================================================
   Menu Toggle (2 barras que viram X, sem fundo)
   ================================================ */
#menu-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

#menu-toggle span {
  display: block;
  width: 1.75rem;
  height: 0.25rem;
  background: #fff;
  margin: 0.3rem 0;
  transition: transform 0.3s;
}

/* animação de X */
#side-menu.show ~ #menu-toggle span:first-child {
  transform: rotate(45deg) translate(0.2rem, 0.2rem);
}

#side-menu.show ~ #menu-toggle span:last-child {
  transform: rotate(-45deg) translate(0.2rem, -0.2rem);
}

/* ================================================
   OFFCANVAS MENU
   ================================================ */
.offcanvas-menu {
  position: relative;
}

.offcanvas-menu input[type="checkbox"] {
  display: none;
}

.offcanvas-menu label {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offcanvas-menu label::before,
.offcanvas-menu label::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 0.25rem;
  background: #5c7cfa;
  border-radius: 2px;
  transition: transform 0.3s, top 0.3s;
}

.offcanvas-menu label::before {
  top: calc(50% - 0.6rem);
}

.offcanvas-menu label::after {
  top: calc(50% + 0.6rem);
}

.offcanvas-menu input[type="checkbox"]:checked ~ label::before {
  top: 50%;
  transform: rotate(45deg);
}

.offcanvas-menu input[type="checkbox"]:checked ~ label::after {
  top: 50%;
  transform: rotate(-45deg);
}

/* Container do nav (menu) */
.offcanvas-menu nav {
  position: fixed;
  top: 0;
  left: -22rem;
  width: 22rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  background: #0f172a;
  color: #cbd5e1;
  transition: left 0.3s ease;
  z-index: 10000; /* fica acima de todo conteúdo */
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);

  /* Esconde rolamento horizontal */
  overflow-x: hidden;
  /* Permite rolagem vertical apenas */
  overflow-y: auto;
}

.offcanvas-menu input[type="checkbox"]:checked ~ nav {
  left: 0;
}

.offcanvas-menu input[type="checkbox"]:checked ~ label.toggle-open {
  opacity: 0;
  pointer-events: none;
}

/* bloco de usuário */
.offcanvas-menu .menu-user-info {
  text-align: left;
  color: #cbd5e1;
  margin: 3rem 0 1.5rem;
  margin-left: -0.5rem; /* empurra um pouco para a esquerda */
}

.offcanvas-menu .menu-user-info #menu-user-name {
  font-size: 1.8rem;
  font-weight: 600;
}

.offcanvas-menu .menu-user-info #menu-user-email {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* marca */
.offcanvas-menu .brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.offcanvas-menu .brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2.4rem;
  color: #5c7cfa;
}

.offcanvas-menu .brand .brand-logo {
  width: 2.5rem;
  height: 2.5rem;
}

/* lista de links */
.offcanvas-menu .menu-list {
  flex: 1;
  margin-top: 2rem;
  list-style: none;
  counter-reset: nav-link;

  /* Permite somente scroll vertical dentro da lista */
  overflow-y: auto;
  overflow-x: hidden;
}

.offcanvas-menu .menu-list li {
  transform: translateX(-2rem);
  opacity: 0;
  padding: 0.75rem 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  counter-increment: nav-link;
}

.offcanvas-menu .menu-list li a {
  font-size: 2rem;
  line-height: 1.5;
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.offcanvas-menu .menu-list li:hover {
  animation: hover 0.5s;
}

.offcanvas-menu .menu-list li a:hover {
  color: #5c7cfa;
}

/* Remove contador automático de número após cada <a> */
.offcanvas-menu .menu-list li a::after {
  content: none !important;
}

.offcanvas-menu .menu-footer-btns {
  margin-top: auto;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.offcanvas-menu .footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.1s,
    box-shadow 0.2s;
  cursor: pointer;
}

.offcanvas-menu .footer-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.offcanvas-menu .footer-btn .icon {
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
}

/* Botão Tema (retângulo amarelo) */
#menu-theme-btn {
  border-color: rgba(250, 204, 21, 0.6);
  color: #facc15; /* ícone amarelo */
}
#menu-theme-btn:hover {
  border-color: rgba(250, 204, 21, 1);
  background: rgba(250, 204, 21, 0.1);
}

/* Logout (retângulo vermelho) */
.offcanvas-menu .footer-btn.logout {
  border-color: rgba(220, 38, 38, 0.8);
  color: #dc2626; /* ícone vermelho */
}
.offcanvas-menu .footer-btn.logout:hover {
  border-color: rgba(239, 68, 68, 1);
  background: rgba(239, 68, 68, 0.1);
}

.offcanvas-menu input[type="checkbox"]:checked ~ nav .menu-list li {
  transform: translateX(0);
  opacity: 1;
}

.offcanvas-menu
  input[type="checkbox"]:checked
  ~ nav
  .menu-list
  li:nth-child(1) {
  transition-delay: 0.1s;
}
.offcanvas-menu
  input[type="checkbox"]:checked
  ~ nav
  .menu-list
  li:nth-child(2) {
  transition-delay: 0.2s;
}
.offcanvas-menu
  input[type="checkbox"]:checked
  ~ nav
  .menu-list
  li:nth-child(3) {
  transition-delay: 0.3s;
}
.offcanvas-menu
  input[type="checkbox"]:checked
  ~ nav
  .menu-list
  li:nth-child(4) {
  transition-delay: 0.4s;
}
.offcanvas-menu
  input[type="checkbox"]:checked
  ~ nav
  .menu-list
  li:nth-child(5) {
  transition-delay: 0.5s;
}
.offcanvas-menu
  input[type="checkbox"]:checked
  ~ nav
  .menu-list
  li:nth-child(6) {
  transition-delay: 0.6s;
}

/* hover link animação */
@keyframes hover {
  50% {
    transform: translateX(1rem);
  }
}

/* ================================================
   NAVBAR SUPERIOR (coordenaplus)
   ================================================ */
.navbar-coordena {
  background: var(--primary-color);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 12px var(--shadow-light);
  z-index: 1400;
}
.navbar-coordena .navbar-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.navbar-coordena .navbar-brand i {
  margin-right: 0.5rem;
}
.navbar-coordena .nav-link,
.navbar-coordena .btn {
  color: #fff;
  transition: color 0.2s;
}
.navbar-coordena .btn:hover,
.navbar-coordena .nav-link:hover {
  color: var(--background);
}

/* ================================================
   CONTEÚDO PRINCIPAL – TABS E CARTÕES (Usuários + Reservas)
   ================================================ */
/* Container principal do painel */
.container-admin {
  max-width: 1140px;
  margin: 2.5rem auto 4rem;
  position: relative;
  z-index: 1000;
}

/* Cabeçalho do painel – gradiente suave e bordas arredondadas */
.admin-header {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  color: #fff;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 {
  font-size: 1.875rem;
  margin: 0;
  letter-spacing: 0.5px;
}
.admin-header p {
  margin: 0;
  color: #e5e7eb;
  font-size: 1rem;
}
.admin-header .btn-update {
  background-color: #fff;
  color: var(--secondary-color);
  font-weight: 600;
  border-radius: var(--radius);
  height: 2.75rem;
  padding: 0 1.25rem;
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.admin-header .btn-update:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-strong);
}

/* Abas (tabs) – estilo minimalista */
.tab-coordena .nav-link {
  color: var(--text-light);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.5rem;
  margin-right: 0.5rem;
  transition: color 0.2s, border-bottom-color 0.2s, background 0.2s;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--card-bg);
  box-shadow: 0 2px 8px var(--shadow-light);
}
.tab-coordena .nav-link.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
  background: #fff;
  box-shadow: 0 4px 12px var(--shadow-light);
}
.tab-coordena .nav-link:hover {
  color: var(--secondary-color);
  background: #fff;
}
.tab-coordena .nav-item:first-child .nav-link {
  margin-left: 0;
}

/* Busca e ordenação genéricos */
.search-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.search-container .search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-container .search-box input {
  padding-left: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  height: 3rem;
  font-size: 1rem;
  color: var(--text-color);
  background: #fff;
  box-shadow: 0 2px 8px var(--shadow-light);
  width: 100%;
}
.search-container .search-box i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.125rem;
}
.search-container .form-select {
  max-width: 220px;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 2px 8px var(--shadow-light);
  font-size: 1rem;
  color: var(--text-color);
}

/* Cards genéricos – aparência "flutuante" */
.card-coordena {
  background-color: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid var(--primary-color);
}
.card-coordena:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--shadow-strong);
}
.card-coordena .card-body {
  padding: 1.75rem;
}
.card-coordena .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.card-coordena .card-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.card-coordena .badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-pendente {
  background-color: var(--warning-color);
  color: #fff;
}
.badge-aprovado {
  background-color: var(--accent-color);
  color: #fff;
}
.badge-rejeitado {
  background-color: var(--danger-color);
  color: #fff;
}
.card-coordena .info-line {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.card-coordena .info-line i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  width: 1.25rem;
  text-align: center;
}
.card-coordena .card-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}
.card-coordena .btn-approve,
.card-coordena .btn-reject {
  flex: 1;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow-light);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.card-coordena .btn-approve {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}
.card-coordena .btn-approve:hover {
  background-color: #17a673;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--shadow-strong);
}
.card-coordena .btn-reject {
  background-color: var(--danger-color);
  color: #fff;
  border: none;
}
.card-coordena .btn-reject:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--shadow-strong);
}

/* Paginação estilizada – maior espaçamento */
.pagination-coordena .page-link {
  color: var(--secondary-color);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin: 0 0.25rem;
  min-width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}
.pagination-coordena .page-item.active .page-link {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}
.pagination-coordena .page-link:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .search-container .form-select {
    width: 100%;
  }
  .card-coordena .info-line {
    font-size: 0.9rem;
  }
  .card-coordena .card-actions {
    flex-direction: column;
  }
  .card-coordena .btn-approve,
  .card-coordena .btn-reject {
    width: 100%;
  }
}

/* Estilos específicos para abas do admin com Tailwind */
.admin-tab-content {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

.admin-card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #2563eb;
  overflow: hidden;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.admin-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.badge-pending {
  background-color: #f59e0b;
  color: #fff;
}

.badge-approved {
  background-color: #10b981;
  color: #fff;
}

.badge-rejected {
  background-color: #ef4444;
  color: #fff;
}

.admin-btn-approve {
  background-color: #10b981;
  color: #fff;
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  width: 100%;
}

.admin-btn-approve:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.admin-btn-reject {
  background-color: #ef4444;
  color: #fff;
  border: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  width: 100%;
}

.admin-btn-reject:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.admin-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.admin-search-box input {
  padding-left: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  height: 3rem;
  font-size: 1rem;
  color: #374151;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.admin-search-box i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 1.125rem;
}

.admin-form-select {
  max-width: 220px;
  height: 3rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  color: #374151;
}

/* Estilos para a tabela de histórico de usuários */
.admin-table {
  border-collapse: collapse;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.admin-table tbody tr:hover {
  background-color: #f3f4f6;
}

.admin-table .status-approved {
  background-color: #dcfce7;
  color: #166534;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.admin-table .status-rejected {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* ================================================
   Grade de Ocupação Estilo “Mini-Calendário”
   ================================================ */
#occupancy-section .overflow-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#occupancy-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: max-content; /* permite scroll horizontal */
  min-width: 100%;
  font-size: 0.875rem;
}

#occupancy-table th,
#occupancy-table td {
  width: 80px;
  height: 50px;
  padding: 0.25rem;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #374151; /* gray-700 */
}

/* cabeçalho sempre visível */
#occupancy-table thead th {
  position: sticky;
  top: 0;
  background: #1f2937; /* gray-800 */
  color: #f9fafb; /* gray-50 */
  z-index: 2;
}

/* primeira coluna fixa */
#occupancy-table thead th:first-child,
#occupancy-table tbody td:first-child {
  position: sticky;
  left: 0;
  background: #111827; /* gray-900 */
  color: #f9fafb; /* gray-50 */
  z-index: 3;
}

/* estados */
#occupancy-table td.bg-red-600 {
  background-color: #dc2626 !important;
  color: #fff;
}

#occupancy-table td.bg-green-600 {
  background-color: #16a34a !important;
  color: #fff;
}
