/* =====================
   RESET BÁSICO
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   TÍTULOS E SEÇÕES DO FORMULÁRIO
===================== */
.form-title-h4 {
  color: #203b8f;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-title-h5 {
  color: #203b8f;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-description {
  color: #555555;
  font-size: 1rem;
  font-weight: 500;
  margin: 1.5rem 0;
}

.form-section-title {
  color: #203b8f;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
  border-left: 4px solid #203b8f;
  padding-left: 0.5rem;
}

.form-section-title-2 {
  color: #203b8f;
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
}

form label:not(.form-check-label) {
  font-size: 0.9rem;
}

/* =====================
   BOTÕES
===================== */
button.btn-primary {
  background-color: #203b8f;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(32, 59, 143, 0.2);
}

button.btn-primary:hover {
  background-color: #1a2e74;
  box-shadow: 0 6px 12px rgba(32, 59, 143, 0.3);
}

/* =====================
   UPLOAD DE ARQUIVOS
===================== */
.custom-file-upload {
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-file-upload:hover {
  background-color: #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.file-info span {
  font-size: 1rem;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#file-name {
  margin-left: 1rem;
}

/* =====================
   HEADER
===================== */
#header {
  background-color: #203b8f;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  gap: 1rem;
}

.navbar-nav .nav-item span {
  font-size: 1rem;
}

/* =====================
   FOOTER
===================== */
#footer {
  background-color: #203b8f;
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.7rem;
}

/* =====================
   FORMULÁRIO - MULTI-SELECT
===================== */
.multi-select-container {
  position: relative;
  margin-bottom: 1rem;
}

.multi-select-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
  padding: 0.75rem;
}

.multi-select-menu.show {
  display: block;
}

.multi-select-item {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  transition: background 0.2s;
}

.multi-select-item:hover {
  background-color: #f0f4ff;
}

.multi-select-item input {
  margin-right: 0.5rem;
  cursor: pointer;
}

.multi-select-submenu {
  margin-left: 1rem;
  border-left: 1px dashed #ccc;
  padding-left: 0.5rem;
}

.submenu-label span {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
}
