:root {
  --primary-color: #02135e;
  --secondary-color: #0d6efd;
  --text-color: #212529;
}

/* ===== ESTILOS GERAIS ===== */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

body.fixed-navbar {
  padding-top: 0;
}

.page-wrapper {
  min-height: 100vh;
  width: 100%;
}

a {
  text-decoration: none;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LAYOUT DO DASHBOARD ===== */
.content-wrapper {
  height: auto;
  min-height: 100vh;
  background-color: #3f6fff;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  margin-left: 220px;
  transition: margin-left 0.3s ease;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .content-wrapper {
    margin-left: 60px;
  }
}

/* Ajusta o conteúdo quando o sidebar é minimizado */
body.sidebar-mini .content-wrapper {
  margin-left: 60px;
}

/* Conteúdo da página */
.page-content {
  flex: 1;
  padding: 15px;
  width: 100%;
}

/* Navbar superior */
#navbarMenu {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  margin: 0;
}

#navbarMenu .card {
  margin-bottom: 0;
  border-radius: 0;
}

/* Cards de menu */
.card-title p {
  margin: 0;
  padding: 0;
}

.card-body.text-center.p-1 img {
  height: 60px;
  transition: transform 0.2s;
}

.card-body.text-center.p-1 img:hover {
  transform: scale(1.05);
}

/* Conteúdo inicial */
#conteudo-inicial {
  width: 100%;
  text-align: center;
}

#conteudo-inicial img {
  max-height: 200px;
  margin-top: 30px;
}

/* Formulário de Funcionários */
#form-funcionarios-container {
  display: none;
  width: 100%;
  padding: 0;
  overflow-x: hidden;
}

/* Navegação em abas */
.card.rounded-2 {
  margin: 20px;
  margin-bottom: 0;
}

.card-header.bg-light {
  padding: 10px;
}

.nav-tabs .nav-item {
  margin-bottom: -1px;
}

.nav-tabs .nav-link {
  font-weight: bold;
  color: #1353bf;
  border: 1px solid transparent;
}

.nav-tabs .nav-link.active {
  font-weight: bold;
  color: black;
  background-color: rgb(238, 236, 236);
  border-color: #dee2e6 #dee2e6 #fff;
}

/* Conteúdo das abas */
.tab-pane {
  padding: 0;
}

.card.border-top-0 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Estilos da Tabela */
#myTable th,
#myTable2 th,
#myTable3 th,
#myTable4 th,
#myTable5 th,
#myTable6 th,
#myTable7 th,
#myTable8 th {
  color: black;
  background-color: #3cb9ea;
  font-weight: 700;
  text-align: start;
}

.table-responsive {
  overflow-x: auto;
  max-width: 100%;
}

.dataTables_wrapper {
  width: 100%;
}

#myTable_filter,
#myTable2_filter,
#myTable3_filter,
#myTable4_filter,
#myTable5_filter,
#myTable6_filter,
#myTable7_filter,
#myTable8_filter {
  margin-bottom: 10px;
}

/* Caixa de pesquisa */
.input-group {
  margin-bottom: 15px;
}

/* Botões de ação */
.btn-sm {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
}

/* Badge de status */
.badge.rounded-pill {
  padding: 5px 10px;
}

/* ===== LOGIN ===== */
.bodyLogin {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  max-width: 400px;
  width: 100%;
  padding: 2.5rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
  margin: 0 auto;
}

#loginForm .form-control {
  padding-left: 2rem;
}

.brand-wrapper {
  text-align: center;
  margin-bottom: 1.5rem;
}

.brand-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

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

.brand-title {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.icon-wrapper {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #6c757d;
}

.btn-login {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  border: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-login:hover,
.btn-login:focus {
  background-color: #041a75;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.forgot-password {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: #0a58ca;
  text-decoration: underline;
}

/* ===== ESQUECI SENHA ===== */
.top-bar {
  background-color: var(--primary-color);
  height: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar-title {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 20px 20px;
}

.support-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  transition: transform 0.3s ease;
  animation: slideUp 0.5s ease-out;
}

.support-option {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.support-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f0f7ff;
}

.support-icon {
  background-color: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  font-size: 1.5rem;
}

.support-details {
  flex: 1;
}

.support-label {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.support-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

.support-option a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.btn-back {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-back:hover {
  background-color: #041a75;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
}

.action-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .card-body {
    padding: 0.75rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
  }

  .tab-content {
    margin: 0 10px;
  }

  .table-responsive {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .brand-logo {
    width: 100px;
    height: 100px;
  }

  .support-card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn-sm {
    padding: 0;
    font-size: 0.75rem;
  }

  .card.rounded-2 {
    margin: 10px;
  }
}

/* ===== SIDEBAR ===== */
.page-sidebar {
  position: fixed !important;
  left: 0;
  top: 60px !important;
  height: calc(100% - 60px) !important;
  background-color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1000;
  margin-top: 0 !important; /* Corrigir o margin-top */
}

.side-menu li a {
  color: #333;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.side-menu li a.active {
  background-color: gainsboro;
  border-left: 3px solid var(--secondary-color);
  color: black;
}

.sidebar-item-icon img {
  width: 24px;
  height: auto;
}

/* ===== HEADER ===== */
.header {
  height: 60px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  padding: 0 15px;
}

.header .logo-area {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 40px;
  width: auto;
}

.app-title {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.user-area {
  color: var(--text-color);
}

/* ===== MODAL DE SUPORTE ===== */
.modal-content {
  border-radius: 12px;
  border: none;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 15px 20px;
}

.modal-body {
  padding: 20px;
}

.modal .support-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal .support-option {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #212529;
}

.modal .support-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f0f7ff;
}

.modal .support-icon {
  background-color: var(--primary-color);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.modal .support-details {
  flex: 1;
}

.modal .support-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.modal .support-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

/* ===== GRÁFICOS ===== */
/* Controle para os containers de gráficos */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
}

/* Estilo para responsividade em telas pequenas */
@media (max-width: 576px) {
  .chart-container {
    height: 250px;
  }
}
