body {
  background: #f7f9fb;
  min-height: 100vh;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

.container, .container-borda, .login-container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(41, 73, 149, 0.08);
  border: 1.5px solid #e3e8f0;
  padding: 32px 16px 24px 16px;
}

.login-container {
  max-width: 400px !important;
  width: 100% !important;
  margin: 64px auto 0 auto !important;
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(41, 73, 149, 0.12);
  background: #fff;
  border: 1.5px solid #e3e8f0;
}

.container-borda {
  border: 2.5px solid #294995;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(41, 73, 149, 0.10);
  background: #fff;
}

h2, .form-label, label {
  color: #294995;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  padding: 12px 14px;
  border: 1.5px solid #e3e8f0;
  border-radius: 8px;
  background: #f7f9fb;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  color: #294995;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  border-color: #294995;
  box-shadow: 0 0 0 2px #29499522;
  background: #fff;
}

button, .btn, input[type="submit"] {
  background: #294995;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41, 73, 149, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.5;
}

button:hover, .btn:hover, input[type="submit"]:hover {
  background: #1d3266;
  box-shadow: 0 4px 16px rgba(41, 73, 149, 0.25);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

button:active, .btn:active, input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(41, 73, 149, 0.15);
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form > * {
  margin-bottom: 6px;
}

.alert {
  border-radius: 8px;
  font-size: 1rem;
  padding: 12px 18px;
  margin-bottom: 12px;
  background: #f7f9fb;
  color: #294995;
  border: 1.2px solid #e3e8f0;
}

.btn-primary {
  background-color: #294995;
  border-color: #294995;
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #1d3266;
  border-color: #1d3266;
  color: #fff;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.btn-danger:hover, .btn-danger:focus {
  background-color: #c82333;
  border-color: #bd2130;
  color: #fff;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: #294995;
  color: #294995;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: #294995;
  border-color: #294995;
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-link {
  background: transparent;
  color: #294995;
  box-shadow: none;
  padding: 0;
  border: none;
}

.btn-link:hover {
  background: transparent;
  color: #1d3266;
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}
.table-responsive {
  margin-top: 24px;
}
.table {
  background: #f4f8fd;
  border-radius: 8px;
  overflow: hidden;
}
.table th {
  background: #1976d2;
  color: #fff;
  border: none;
}
.table td {
  vertical-align: middle;
}
#toast {
  position: fixed;
  top: 24px;
  right: 24px;
  min-width: 220px;
  z-index: 9999;
  display: none;
  background: #1976d2;
  color: #fff;
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.15);
  font-weight: 500;
  font-size: 1rem;
  animation: fadeInOut 3s linear;
}
@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}
.modal-body .text-secondary {
  word-break: break-word;
  white-space: pre-line;
  max-width: 100%;
  overflow-wrap: break-word;
  display: block;
}

/* Estilos para o autocomplete */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e3e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: #f8f9fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item.selected {
  background-color: #e3f2fd;
  color: #1976d2;
}

/* Posicionamento relativo para os containers dos inputs */
.col-md-4 {
  position: relative;
} 

/* Banner Promocional */
.banner-promocional {
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 200px;
}

.banner-imagem {
  position: relative;
  width: 100%;
  height: auto;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Responsividade do Banner */
@media (max-width: 768px) {
  .banner-promocional {
    min-height: 120px;
    margin-bottom: 30px;
  }
  
  .banner-img {
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .banner-promocional {
    min-height: 80px;
    margin-bottom: 20px;
  }
  
  .banner-img {
    max-height: 150px;
  }
  
  /* Responsividade do formulário para mobile */
  .container-borda {
    margin-top: 2rem !important;
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="file"],
  input[type="date"],
  select,
  textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  /* Ajuste das colunas para mobile */
  .col-md-6,
  .col-md-12 {
    margin-bottom: 1rem;
  }
  
  /* Navbar responsiva */
  .navbar-brand span {
    font-size: 1.1rem !important;
  }
  
  .navbar-brand img {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 480px) {
  .banner-promocional {
    min-height: 60px;
    margin-bottom: 15px;
  }
  
  .banner-img {
    max-height: 120px;
  }
  
  .container-borda {
    margin-top: 1.5rem !important;
    padding: 15px 10px;
  }
  
  .form-label {
    font-size: 0.85rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="file"],
  input[type="date"],
  select,
  textarea {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  /* Ajuste do navbar para telas muito pequenas */
  .navbar-brand span {
    font-size: 1rem !important;
  }
  
  .navbar-brand img {
    width: 35px !important;
    height: 35px !important;
  }
} 

/* Espaçamento adicional do formulário */
.container-borda {
  margin-top: 3rem !important;
  padding-top: 2rem;
} 

/* Melhorias gerais para mobile */
@media (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  body {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  body {
    font-size: 0.9rem;
  }
  
  /* Melhor espaçamento para campos de arquivo */
  input[type="file"] {
    font-size: 0.8rem;
  }
  
  /* Ajuste para textareas em mobile */
  textarea {
    min-height: 80px;
  }
  
  /* Melhor espaçamento entre seções */
  .row > div {
    margin-bottom: 1.5rem;
  }
  
  /* Ajuste do botão para mobile */
  .btn-primary {
    margin-top: 1rem;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  body {
    font-size: 0.85rem;
  }
  
  /* Ajuste para telas muito pequenas */
  .container-borda {
    margin: 1rem 5px;
    border-radius: 8px;
  }
  
  /* Reduzir padding em telas muito pequenas */
  .container-borda {
    padding: 12px 8px;
  }
} 