:root {
  --azul: #0038A8;
  --azulnoturno: #34495e;
  --vermelho: #e74c3c;
  --verde: #27ae60;
  --laranja: #f39c12;
  --cinza: #ecf0f1;
  --cinzaclaro: #F5F6FA;
  --amarelo: #F6DB17;
  --rosa: #ffebee; /* #FCE1EA; */
  --amareloclaro: #F7F7C8;
  --verdeclaro: #DAF1CC;
  --verdeescuro: #006400;
  --azulclaro: #CCE8F3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f6fa;
  padding: 20px;
}

.main-menu {
  width: 100%;          /* Ocupa 100% da largura */
  margin: 0;            /* Remove margens */
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0038A8;  /* Cor de fundo azul */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;  /* Adicionado para espaçamento */
}

.menu-left {
  display: flex;
  gap: 20px;
}

.menu-item {
  color: white;               /* Cor do texto branco */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
}

.menu-item:hover {
  color: var(--amarelo);             /* Cor amarela no hover */
}

.menu-item.active {
  background: #0038A8;
  color: var(--amarelo); 
}

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

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f6fa;
  border-radius: 20px;
  padding: 5px 15px;
  border-color: var(--azul);
  border: 1px solid;
}

.search-bar input {
  border: none;
  background: none;
  padding: 5px 30px 5px 5px;
  width: 200px;
}

.search-bar img {
  position: absolute;
  right: 15px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.user-icon {
  background: none;           /* Remove fundo */
  width: auto;                /* Ajusta largura */
  height: auto;               /* Ajusta altura */
}

.user-icon img {
  width: 24px;
  height: 24px;
}


/* Ajuste no cabeçalho para alinhar os itens */
.header {
    /*justify-content: center;  Centraliza os itens horizontalmente (ou ajuste conforme necessário) */
    gap: 10px; /* Espaço entre os elementos do cabeçalho */
    margin-bottom: 20px; /* Adiciona um espaço abaixo do cabeçalho */
}

.header h1 {
    margin: 0; /* Remove margens padrão do h1 para melhor alinhamento */
    flex-grow: 1; /* Permite que o título ocupe o espaço disponível */
    text-align: center; /* Centraliza o texto do título */
}


.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background: var(--azul); */
  color: var(--azul); 
  padding: 20px;
 /*  border-radius: 8px 8px 0 0;   border-radius: 8px; */
  margin-bottom: 0; /*   margin-bottom: 20px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
  margin-top: -20px;
}

/* .header button {
  background: var(--amarelo); 
  color: var(--azul);  
  width: 45px; 
  height: 45px; 
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display:  flex;
  align-items: center;
  justify-content: center; 
  font-size: 2em; 
  font-weight: bold; 
  padding-bottom: 8px;
} 
*/

/* Estilos ESPECÍFICOS para os botões de navegação (< e >) dentro do .header */
.header button:first-of-type, /* Seleciona o primeiro botão no header (o '<') */
.header button:nth-of-type(2) { /* Seleciona o segundo botão no header (o '>') */
    background: var(--amarelo);
    color: var(--azul);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    padding-bottom: 8px;
    flex-shrink: 0; /* Impede que esses botões encolham */
}

/*
.header button:first-of-type:hover,
.header button:nth-of-type(2):hover {
    background: var(--amarelo-hover);  
}
*/

/* Estilo ESPECÍFICO para o novo botão "Adicionar Conta" */
.header button:nth-of-type(3) { 
    background-color: var(--verde);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em; /* Tamanho de fonte padrão para botões de texto */
    font-weight: bold; /* Geralmente normal para botões de texto */
    margin-left: 15px; /* Espaçamento à esquerda do botão > */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Impede que este botão encolha */
}

.header button:nth-of-type(3):hover {
  background: var(--verdeescuro);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--amareloclaro); /* white; */
  padding: 15px 20px;
  border-radius: 0 0 8px 8px;
  margin-bottom: 20px;
	margin-top: -20px;
  /* border: 1px solid var(--azul); */
  border-top: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
  color: var(--azul); 
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-section label {
  color: var(--azul);
  font-weight: bold;
}

.filter-select {
  padding: 8px 12px;
  border-radius: 4px;
  background: white;
  color: var(--azul);
  font-weight: bold;
  cursor: pointer;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--laranja); 
  box-shadow: 0 0 0 2px rgba(246, 219, 23, 0.2);
}

.btn-report {
  background: var(--azul);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-report:hover {
  background: #002c85;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-report:active {
  transform: translateY(0);
}

.container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch; /* Make columns stretch to match tallest */
}

.column {
  flex: 1;
  background: white; /* Changed from var(--cinza) */
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  min-height: 300px; /* Set minimum height */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--azul);
}

.total-value {
  font-size: 0.9em;
}

.card {
  /* background: white; */
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-title {
  font-weight: bold;
  margin: 0;
}

.card-type {
  font-weight: bold;
}

.card-main-info {
  margin-bottom: 10px;
  text-align: center; /* Add center alignment */
  font-weight: bold;
  font-size: 1.2em;
}

.card-details {
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

.card-details.hidden {
  display: none;
}


#atrasadas .card {
  background: var(--rosa); /* Light pink for overdue */
}

#pendentes .card {
  background: var(--amareloclaro); /* Very light yellow for pending - changed from light blue */
}

#pagas .card {
  background: var(--verdeclaro); /* Light green for paid - keeping existing */
}

.card-date {
  color: var(--laranja);
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.vencimento-pago {
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: normal;
}

.data-pagamento {
  font-weight: bold;
  color: var(--verde);
  font-size: 1.2em; /* Added this line to match column header size */
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  color: white;
  margin-bottom: 5px;
}

.status-pendente {
  background: var(--laranja);
}

.status-paga {
  background: var(--verde);
}

.status-atrasada {
  background: var(--vermelho);
}

.card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

/* Make sure buttons don't trigger card expansion */
.card-actions button {
  pointer-events: all;
}

.btn {
  padding: 5px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-edit {
  background: var(--amarelo); /* Changed from var(--laranja) */
  color: var(--azul); /* Changed from white */
  font-weight: bold;
}

.btn-details {
  background: --cinzaclaro; /* var(--azul); */
  color: black; /* white; */
  /* font-weight: bold; */
}

.btn-delete {
  background: var(--vermelho);
  color: white;
  font-weight: bold;
}

.btn-pay {
  background: var(--verde);
  color: white;
  font-weight: bold;
}

.btn-download {
  background: var(--azul);
  color: white;
  border: none;
  cursor: pointer;
  padding: 0px 20px;
  border-radius: 4px; /* Added for rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-download img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Make icon white */
}

.attachment-btn {
  background: var(--verde); /* Changed to green background */
  border: none;
  cursor: pointer;
  padding: 0px 20px;
  border-radius: 4px; /* Added for rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
}

.attachment-btn img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* Make icon white */
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  margin: 50px auto;
  padding: 15px;
  border-radius: 8px;
}


.modal_consorcio {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal_consorcio-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 1100px;
  border-radius: 8px;
}

.modal_consorcio-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.action-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.cancel-btn {
  background-color: #f44336;
}



.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  width: 100%;
}

.form-col-60 {
  flex: 0 0 60%;
}

.form-col-30 {
  flex: 0 0 30%;
}

.form-control {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

textarea.form-control {
  min-height: 60px;
  resize: vertical;
}

.form-control[type="date"] {
  height: 35px;	
}

select.form-control {
  height: 35px;
}

.modal-delete {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

.modal-delete-content {
  background: white;
  width: 90%;
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.modal-delete-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.atrasadas-header { color: var(--vermelho); }
.pendentes-header { color: var(--laranja); }
.pagas-header { color: var(--verde); }

.hidden {
  display: none;
}

.calendar-container {
  margin-top: 0;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-header {
  display: none; /* Removed calendar title */
}

.calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Forces equal column widths */
}

.calendar th, .calendar td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.calendar th {
  background: var(--azul);
  color: white;
}

.calendar td {
  height: 100px;
  vertical-align: top;
}

.calendar-date {
  font-weight: bold;
  margin-bottom: 5px;
}

.pagar-icon {
  width: 20px;
  height: 20px;
  margin-bottom: -4px;
}

.calendar-event {
    justify-content: space-between; /* Para que o ícone fique à direita */
  font-size: 0.8em;
  margin: 2px;
  padding: 2px 4px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap; /* Prevents text wrapping */
  overflow: hidden; /* Hides overflow content */
  text-overflow: ellipsis; /* Shows ... for overflow text */
  display: block; /* Makes the event take full width of container */
  width: auto; /* Allows the event to fill container width */
  box-sizing: border-box; /* Includes padding in width calculation */
}

.calendar-event.atrasada { background: var(--vermelho); color: white; }
.calendar-event.pendente { background: var(--laranja); color: white; }
.calendar-event.paga { background: var(--verde); color: white; }

.calendar-event.birthday {
	background: var(--azulclaro);
	color: var(--azul);
	padding-left: 10px; /* Espaço para o ícone */
	font-weight: bold;
	cursor: default;
}

.birthday-icon {
  margin-bottom: -2px;
  width: 20px;
  height: 20px;
}

.birthday-title {
  display: flex;
  align-items: center; /* Centraliza verticalmente a imagem e o texto */
  gap: 10px; /* Espaçamento entre a imagem e o texto */
}

.urgent-accounts-title {
  display: flex;
  align-items: center; /* Centraliza verticalmente a imagem e o texto */
  gap: 10px; /* Espaçamento entre a imagem e o texto */
}

.urgent-icon {
  width: 40px;
  height: 40px;
}

.current-day {
  background: #CDDFEA;
}

.fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:  var(--amarelo); /* var(--verde); */
  color: var(--azul); /* white; */
  border: none;
  font-size: 31px; 
  padding: 5px 10px 10px 10px;  /* Changed from padding: 10px */
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 1000;
}

.fab:hover {
  transform: translateY(-2px); /* transform: scale(1.1); */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* box-shadow: 0 3px 8px rgba(0,0,0,0.3); */
}

.fab:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .column {
    width: 100%;
    min-height: auto;
  }
  
  .header {
    padding: 15px;
  }
  
  .header h1 {
    font-size: 1.2em;
  }
  
  .filter-bar {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-section {
    width: 100%;
  }
  
  .filter-select {
    flex-grow: 1;
  }
  
  .btn-report {
    width: 100%;
    justify-content: center;
	font-weight: bold;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 10px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-col-60,
  .form-col-30 {
    flex: 0 0 100%;
  }
  
  .calendar th, 
  .calendar td {
    padding: 5px;
    font-size: 0.9em;
  }
  
  .calendar td {
    height: 80px;
  }
  
  .calendar-event {
    font-size: 0.7em;
  }
  
  .fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .modal-delete-buttons {
    flex-direction: column;
    gap: 5px;
  }

  .modal-delete-content {
    width: 95%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .header h1 {
    font-size: 1em;
  }
  
  .card {
    padding: 10px;
  }
  
  .card-actions {
    flex-wrap: wrap;
  }
  
  .btn {
    flex: 1 1 auto;
    min-width: 80px;
  }
}

.tipo-total {
  text-align: right;
  font-weight: bold;
  font-size: 0.9em;
  background: #888;
  color: white;
  padding: 8px 15px;
  margin: 10px 0;
  border-radius: 4px;
}

.dashboard {
  /* padding: 20px; */
}

.dashboard-header {
  /*display: flex;*/
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-actions {
  /*display: flex;*/
  gap: 15px;
  justify-content: flex-end; /* Adicionado para alinhar os botões à direita */
}

.btn-add-account {
  background:  var(--amarelo);
  color: var(--azul);
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-add-client {
  background:  var(--amarelo);
  color: var(--azul);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-add-account:hover {
  background:  white;
}

.btn-add-client:hover {
  background:  white;
}

.dashboard-grid {
  display: flex; 
  gap: 20px;
  margin: 20px 0;
}

.dashboard-column {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 15px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-column h2 {
  font-size: 1.2em;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--azul);
  color: var(--azul);
}

.urgent-account-item {
  background: var(--rosa);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-weight: bold;
}

.birthday-item {
  background: var(--azulclaro); 
  border-radius: 8px;
  padding: 10.5px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center; /**/
  font-weight: bold;
}

.birthday-item .whatsapp-btn {
  background: var(--verde);
  color: white;
  border: none;
  padding: 3px 16px;  
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  width: 25px;
  height: 25px;
}

.birthday-item .whatsapp-btn img {
  margin-right: 5px;
}

.birthday-item .whatsapp-off {
  background: var(--cinza);
  color: var(--azul);
  border: none;
  padding: 3px 16px;  
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
}

.clients-section, .register-client-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clients-section h2, .register-client-section h2 {
  margin-bottom: 20px;
  color: var(--azul);
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
}

.clients-table th, .clients-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.clients-table th {
  background: var(--azul);
  color: white;
}

.clients-table td {
  background: #f9f9f9;
}

.clients-table tr:hover td {
  background: var(--azulclaro); /*#f1f1f1;*/
}

.clients-table .action-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
}

.btn-cadastrar-cliente {
  background: var(--amarelo); /* Changed from var(--laranja) */
  color: var(--azul); /* Changed from white */
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
}

.clients-table .btn-edit {
  background: var(--amarelo); /* Changed from var(--laranja) */
  color: var(--azul); /* Changed from white */
  font-weight: bold;
  margin: 5px 10px 5px 10px;
}

.clients-table .btn-delete {
  background: var(--vermelho);
  font-weight: bold;
}

.clients-table .btn-detalhes {
  background: var(--verde);
  font-weight: bold;
}

#client-form .form-group {
  margin-bottom: 15px;
}

#client-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

#client-form .form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#client-form .btn-pay {
  background: var(--verde);
  color: white;
  border: none;
  margin-top: 10px;
  padding: 8px 16px;  
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
}

.btn-cancel {
  background: var(--amarelo);
  color: var(--azul);
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
  margin-top: 10px;
  padding: 8px 16px;
  font-weight: bold;  
}

label.required:after {
  content: "*";
  color: red;
  margin-left: 4px;
}

.checkbox-group ul {
  list-style-type: none; /* Remove o símbolo de ponto */
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Define 3 colunas iguais */
  gap: 10px; /* Espaçamento entre os itens */
}

.checkbox-group li {
  margin: 5px 0;
}

.checkbox-whats ul {
  list-style-type: none; /* Remove o símbolo de ponto */
  padding: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Define 3 colunas iguais */
  gap: 10px; /* Espaçamento entre os itens */
}

.checkbox-whats li {
  margin: 40px 0;
}

#client-whatsapp-checkbox {
  transform: scale(1.2); /* Aumenta o tamanho do checkbox */
  margin-right: 10px; /* Ajusta o espaçamento */
}

.radio-group, .checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-group label, .checkbox-group label {
  font-weight: normal;
}

.radio-group input, .checkbox-group input {
  margin-right: 5px;
}

.produtos-interesse {
  margin-top: 10px;
}

#add-consorcio-btn {
  margin-top: 10px;
  background: var(--azul);
  color: white;
  border: none;
  padding: 8px 16px;  
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#add-consorcio-btn.disabled {
  background-color: #d3d3d3; /* Cor de fundo cinza claro */
  cursor: not-allowed; /* Sinal de proibido */
  color: #808080; /* Cor do texto desativado */
}

.consorcio {
  border: 1px solid #ddd;
  padding: 10px;
  margin-top: 10px;
}

#clients-list td:nth-child(2),
#clients-list td:nth-child(3),
#clients-list td:nth-child(4) {
  text-align: center;
}

.btn-x {
	position: absolute;
	right: 20px;
	top: 5px;
	background: none;
	border: none;
	font-size: 30px;
	font-weight: bold;
	cursor: pointer;
}

.btn-x:hover {
  color: var(--vermelho);
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination-controls button {
  background-color: var(--azul); 
  color: white;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
}

.pagination-controls button[disabled] {
  background-color: #d1d1d1;
  cursor: not-allowed;
}

.pagination-controls .pagination-info {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6); /* Cor mais opaca para o texto da página */
  margin: 0 10px;
}

.btn-delete-consorcio {
  background: var(--vermelho);
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-edit-consorcio {
  background: var(--amarelo);
  color: var(--azul);
  font-weight: bold;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
}

.btn-group {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center; /* Centraliza horizontalmente */
  min-height: 75px; /* Ajuste para a altura desejada */
}

#consorcios-list td {
  vertical-align: middle; /* Centraliza verticalmente o conteúdo da célula */
  text-align: center; /* Centraliza horizontalmente o conteúdo da célula */
}



/* Estilos para o switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--azul);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#periodo-texto {
  margin-left: 10px;
  font-weight: bold;
  color: var(--azul);
}



#modal-edicao {
  display: none; /* Oculto por padrão */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fundo escuro translúcido */
  z-index: 1000; /* Fica acima dos outros elementos */
}

#modal-edicao .modal-content {
  background: white;
  width: 90%;
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#modal-edicao h2 {
  margin-bottom: 20px;
  color: var(--azul); /* Usando a cor azul padrão do sistema */
}

#modal-edicao p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #555;
}

#modal-edicao .modal-delete-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

#modal-edicao .btn-edit {
  background: var(--amarelo);
  color: var(--azul);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#modal-edicao .btn-edit:hover {
  background: #f5c518;
}

#modal-edicao .btn-delete {
  background: var(--vermelho);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

#modal-edicao .btn-delete:hover {
  background: #c0392b;
}

.calendar-icon {
  cursor: pointer;
  font-size: 24px;
  margin-right: 10px;
  vertical-align: middle;
  transition: transform 0.2s ease-in-out;
}
.calendar-icon:hover {
  transform: scale(1.2);
}

/* Estilização do Modal */
.calendarModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  width: 100%;
  /*max-width: 1200px; /* Limite máximo de largura */
  height: auto;
  /*max-height: 90vh; /* Evita que o modal ultrapasse a altura da tela */
  transform: translate(-50%, -50%);
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  /*overflow-y: auto; /* Adiciona rolagem se necessário */
}

/* Fundo escurecido atrás do modal com transparência */
.calendarModal::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Transparência no fundo */
  backdrop-filter: blur(3px); /* Efeito de desfoque opcional */
  z-index: -1;
}

/* Contêiner do calendário */
.calendar-container {
  max-height: 100vh; /* Impede que ultrapasse a tela */
  overflow-y: auto; /* Adiciona rolagem caso necessário */
}

/* Ícone "X" para fechar o modal */
.close-button {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease-in-out;
}

.close-button:hover {
  color: red;
}

/* Responsividade */
@media (max-width: 768px) {
  .calendarModal {
    width: 95%;
    max-width: 95%;
  }
}

button.sair {
    background: none;
    border: none;
    box-shadow: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
}

button.sair:hover {
    text-decoration: underline;
}

/* Esconde o sistema por padrão */
#system-section {
    display: none;
    padding: 0px;
}

/* Sessão de login */
#login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: white;
    padding: 25px;
    width: 350px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.login-container h2 {
  color: #0963AE; /* Aplica a cor azul */
  text-align: center; /* Centraliza o texto */
  font-weight: bold; /* Deixa em negrito (opcional) */
}

input.login {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button.login {
    width: 100%;
    padding: 10px;
    background: #0963AE;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button.login:hover {
    background: #001f5b;
}

.remember-me {
            display: flex;
            align-items: center;
            justify-content: left;
            margin: 10px 0;
        }

        .remember-me input {
            width: auto;
            margin-right: 8px;
        }

        .error-message {
            color: red;
            font-size: 14px;
            display: none;
            margin-bottom: 10px;
        }

        .loading {
            display: none;
            margin-top: 10px;
        }
		
.login-logo {
  display: block;
  margin: 0 auto; /* Centraliza a imagem */
  max-width: 200px; /* Ajusta o tamanho máximo */
  height: auto;
}

.logo {
  margin-top: 5px;
  max-height: 35px; /* Ajusta o tamanho máximo */
}

/* Centralização absoluta para todos os modais */
.modal-delete {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*width: 90%;
   max-width: 500px; */
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
