/* Estilos gerais */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  background: linear-gradient(135deg, #0399fd, #443737);
  overflow-x: hidden;
}

/* Login Container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Formulário de Login */
.login-form {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  width: 300px;
}

.login-form h2 {
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

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

.login-form button {
  width: 100%;
  padding: 10px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-form button:hover {
  background-color: #2980b9;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background-color: #2c3e50;
  color: white;
  padding-top: 20px;
  position: fixed;
  height: 100%;
}

.sidebar-logo img {
  max-width: 150px;
  margin: 0 auto;
  display: block;
}

.sidebar a {
  display: block;
  color: white;
  padding: 16px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.sidebar a:hover {
  background-color: #34495e;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  padding: 20px;
  margin-left: 240px;
  background-color: transparent;
  box-shadow: none;
  overflow-y: auto;
  border-radius: 8px;
}

h1, h2 {
  margin-left: 10px;
  color: #333;
}

.dashboard-cards {
  display: flex;
  justify-content: space-between;
  max-width: 80%;
  margin: 0 auto;
  gap: 20px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1;
  text-align: center;
}

/* Lembretes - Cards ajustados */
.lembretes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.lembrete {
  background-color: #f9f9c0; /* cor de fundo semelhante a um bloco de notas */
  padding: 15px;
  border-radius: 8px;
  width: 180px; /* Largura fixa para lembrar bloco de notas */
  height: 180px; /* Altura fixa para lembrar bloco de notas */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* Centralizar conteúdo */
  text-align: center; /* Alinhar o texto ao centro */
}

.lembrete h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.lembrete p {
  font-size: 0.9rem;
  margin: 0;
}

.dot {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
}

/* Efeito de balanço para os lembretes */
@keyframes balanco {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.lembrete:hover {
  animation: balanco 0.5s ease-in-out;
}

/* Estilos para formulários */
.form-container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 20px auto;
}

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

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

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Alinhamento CEP, Endereço e Número na mesma linha */
.form-row {
  display: flex;
  justify-content: space-between;
}

.form-row .form-group {
  flex: 1;
  margin-right: 10px;
}

.form-row .form-group:last-child {
  margin-right: 0;
}

button {
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #2980b9;
}

/* Estilos para tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f2f2f2;
  font-weight: bold;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Estilos para botões */
.btn {
  background-color: #3498db;
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #2980b9;
}

/* Ajustes específicos para os campos do formulário de atendimento */
.form-row .cep-container {
  flex: 1;
  max-width: 150px;
}

.form-row .endereco-container {
  flex: 2;
}

.form-row .numero-container {
  flex: 1;
  max-width: 100px;
}

#cep {
  width: 100%;
}

#endereco {
  width: 100%;
}

#numero {
  width: 100%;
}

/* Checkbox styling */
.checkbox-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.checkbox-container label {
  margin-right: 20px;
}

/* Sugestões de pesquisa */
.sugestoes-container {
  border: 1px solid #ccc;
  background-color: #fff;
  position: absolute;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

/* Classe para tornar a sugestão visível dinamicamente */
.sugestoes-container.active {
  display: block;
}

.sugestoes-container:empty {
  display: none;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

/* Estilização moderna dos botões */
button, input[type="submit"], input[type="button"] {
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

button:active, input[type="submit"]:active, input[type="button"]:active {
  background-color: #004080;
  transform: scale(0.98);
}

button.cancel, input.cancel {
  background-color: #6c757d;
}

button.cancel:hover, input.cancel:hover {
  background-color: #5a6268;
}

/* Ajuste no tamanho dos botões */
button, input[type="submit"], input[type="button"] {
  width: auto;
  padding: 8px 16px;
}

/* Alinhar as checkboxes e os labels */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-container label {
  margin-left: 10px;
  font-weight: normal;
}

.input-pequeno {
  width: 50%; /* Defina o tamanho desejado para o campo Código */
}

.checkbox-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Estilo para os botões na tabela de ações */
.table-actions {
  display: flex;
  gap: 10px; /* Espaçamento horizontal entre os botões */
}

.table-actions .btn {
  margin: 0; /* Remove margem extra */
  padding: 8px 12px; /* Ajuste no padding para uniformizar */
  border-radius: 4px; /* Bordas arredondadas */
}