/* ========================================
   FORMULÁRIOS
   ======================================== */

.form-campo {
  color: #000;
  border-color: #6c757d;
  box-shadow: none;
}

.form-campo:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

label.form-label {
  font-weight: 600;
  color: #000;
}

/* ========================================
   LAYOUT GERAL
   ======================================== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1; /* Faz o conteúdo expandir e empurrar o rodapé para baixo */
  display: flex;
  flex-direction: column;
}

.page-wrapper > .footer {
  margin-top: auto; /* Fixa o rodapé no final do conteúdo */
  background: #fff;
  border-top: 1px solid #e9ecef;
  padding: 10px 0;
  font-size: 0.85rem;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ========================================
   TOPBAR / NAVBAR
   ======================================== */

.topbar {
  background-color: #2b2c34 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Imagem do logo maior */
.navbar-brand img {
  transition: transform 0.3s ease;
  height: 55px;
  max-width: 100%;  /* Não ultrapassa o container */
  width: auto;
  object-fit: contain;
}


.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Info Badges (Condomínio e Usuário) */
.info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.info-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.info-badge i {
  font-size: 1.1rem;
  color: #0d6efd;
}

/* Botão de Configurações */
.config-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.config-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #0d6efd;
  transform: translateY(-2px) rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.config-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
  background: #fff;
  border: none;
  border-radius: 12px;
  margin-top: 8px;
  padding: 8px;
  min-width: 220px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu .dropdown-item {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d6efd;
}

.dropdown-menu .dropdown-item.text-danger {
  color: #dc3545;
  font-weight: 600;
}

.dropdown-menu .dropdown-item.text-danger:hover {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c82333;
}

.dropdown-menu .dropdown-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid #dee2e6;
}

/* ========================================
   SIDEBAR / MENU LATERAL
   ======================================== */

/* Scroll suave no sidebar */
.scroll-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.scroll-sidebar::-webkit-scrollbar {
  width: 6px;
}

.scroll-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.scroll-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Primeiro item do menu */
.sidebar-nav .sidebar-item:first-child {
  margin-top: 2rem;
}

/* Itens do sidebar */
.sidebar-nav .sidebar-item {
  margin: 0;
}

/* Links principais do menu */
.sidebar-nav > ul > li > a {
  font-size: 1rem;
  font-weight: 600;
  color: #343a40;
  padding: 14px 20px;
  border-radius: 0;
  margin: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  position: relative;
}

.sidebar-nav > ul > li > a i {
  width: 24px;
  margin-right: 12px;
  font-size: 18px;
}

/* Hover no item principal */
.sidebar-nav > ul > li > a:hover {
  background-color: #c8e4ff !important;
  color: #0d6efd !important;
}

/* Item ativo */
.sidebar-item.active .sidebar-link {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  font-weight: 600;
}

/* Seta para itens com submenu */
.sidebar-link[data-bs-toggle="collapse"] {
  position: relative;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.sidebar-link[data-bs-toggle="collapse"]:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* Submenu - SEM animações */
.sidebar-nav .collapse,
.sidebar-nav .collapse.show,
.sidebar-nav .collapse.collapsing,
.sidebar-nav .collapsing {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  height: auto !important;
  overflow: visible !important;
  display: block !important;
}

.sidebar-nav .collapse:not(.show) {
  display: none !important;
}

.sidebar-nav .collapse li,
.sidebar-nav .collapse li a,
.sidebar-nav ul ul {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.sidebar-nav .collapse li {
  margin: 0;
}

.sidebar-nav .collapse li a {
  font-size: 0.875rem;
  font-weight: 400;
  padding: 12px 20px 12px 56px !important;
  color: #495057;
  border-radius: 0;
  margin: 0;
  transition: background-color 0.2s ease, color 0.2s ease !important;
  display: flex;
  align-items: center;
  position: relative;
}

/* Bullet do submenu */
.sidebar-nav .collapse li a::before {
  content: "\25B8";
  color: #495057;
  font-size: 1rem;
  position: absolute;
  left: 35px;
}

/* Hover no submenu */
.sidebar-nav .collapse li a:hover {
  background-color: #c8e4ff !important;
  color: #0d6efd !important;
}

.sidebar-nav .collapse li a:hover::before {
  color: #0d6efd;
}

/* Divisor visual no menu */
.menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 10px 0;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
  .info-badge span {
    display: none;
  }
  
  .info-badge {
    padding: 8px 12px;
  }
}

/* Logo com área maior */
.navbar-brand {
  background-color: #fff !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1rem !important;  /* Padding menor */
  margin: 0 !important;
  border: none !important;
  width: 240px;  /* Largura fixa */
  overflow: hidden;  /* Corta o que ultrapassar */
}

/* Sidebar sem espaço no topo */
.left-sidebar {
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  padding-top: 0 !important;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  margin-top: 72px;  /* Mesma altura do header */
}

/* Topbar mais alta */
.topbar .navbar {
  height: 72px;  /* Aumentado de 64px */
  padding: 0 !important;
}

.topbar .container-fluid {
  height: 100%;
  align-items: stretch !important;
  padding: 0 !important;
}
/* Dropdown Menu - Corrigido */
.dropdown {
  position: relative;
  z-index: 1050;
}

.dropdown-menu {
  background: #fff;
  border: none;
  border-radius: 12px;
  margin-top: 8px;
  padding: 8px;
  min-width: 220px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1060;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu .dropdown-item {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.dropdown-menu .dropdown-item:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d6efd;
}

.dropdown-menu .dropdown-item.text-danger {
  color: #dc3545;
  font-weight: 600;
}

.dropdown-menu .dropdown-item.text-danger:hover {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c82333;
}

.dropdown-menu .dropdown-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid #dee2e6;
}

/* Topbar */
.topbar {
  background-color: #2b2c34 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1000;
}

/* Cabeçalho fixo para tabelas com .table-responsive */
.table-responsive {
  position: relative;
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.tabela-wrapper {
  position: relative;
}

.tabela-wrapper thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

