/* Font and basic styles */
body {
  font-family: "TwilioSansText", "Inter var experimental", "Inter var",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}

/* Topbar */
.custom-topbar {
  height: 80px;
  background-color: #fff;
  left: 288px;
}

/* Topbar Links */
.custom-topbar a {
  color: #03162F !important; /* blue 1 */
  transition: color 0.3s ease !important;
}

.custom-topbar a:hover {
  color: #065ABF !important; /* blue 4 */
  text-decoration: underline !important;
}

/* Search Field with Icon */
.relative input {
  padding-left: 2.5rem;
}

/* Focus Effect on Search Field */
.relative input:focus {
  outline: none !important;
  border-color: #065ABF !important; /* blue 4 */
  box-shadow: 0 0 5px rgba(6, 90, 191, 0.5) !important; /* blue 4 em rgba */
}

/* Main Content Background */
.custom-main {
  background-color: #FFFFFF;
}

/* Sidebar */
.custom-sidebar {
  background-color: #052D60 !important; /* novo tom de blue */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  overflow-y: auto !important;
  max-height: 100vh !important;
  padding-right: 10px !important;
}

/* Sidebar Menu Links */
.custom-sidebar ul {
  padding-left: 0;
  list-style: none;
}

.custom-sidebar ul a {
  color: white;
  transition: background-color 0.3s ease;
  padding: 0.8rem 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.custom-sidebar ul a:hover {
  background-color: #04458F !important; /* blue 1 */
  text-decoration-color: white !important;
}

/* Active Item Style */
.custom-sidebar ul a.bg-primary-active {
  background-color: #04458F !important; /* novo tom de blue */
}

/* Remove hover on logo */
.logo-link {
  text-decoration: none;
}

/* Arrow for Submenus */
.custom-sidebar button i {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.75rem;
  color: white;
  transition: transform 0.2s ease;
}

/* Submenu */
.submenu {
  padding-left: 1.5rem;
}

.submenu a:hover {
  background-color:#04458F !important; /* blue 4 */
}

.submenu a.active {
  background-color: #04458F !important; /* novo tom de blue */
}

/* Sidebar Button */
.custom-sidebar button {
  background-color: transparent;
  color: white;
  border: none;
  width: 100%;
  text-align: left;
}

.custom-sidebar button:hover {
  background-color: #04458F !important; /* novo tom de blue */
}

.custom-sidebar i {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: transform 0.2s ease;
}

/* Footer Heading */
footer h2.help-heading {
  font-size: 2rem;
  line-height: 2.5rem;
}

/* Search Results */
#searchResults {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#searchResults li {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#searchResults li:hover {
  background-color: #f9f9f9;
  transform: translateY(-1px);
}

#searchResults li strong {
  font-size: 1rem;
  font-weight: 600;
  color: #03162F !important; /* blue 1 */
}

#searchResults li p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

#searchResults li + li {
  border-top: 1px solid #eaeaea;
}

#searchResults li:focus {
  outline: 2px solid #065ABF !important; /* blue 4 */
  outline-offset: 2px;
}

/* Custom Background Colors for Buttons and Elements */
.bg-primary {
  --tw-bg-opacity: 1;
  background-color: rgba(4, 69, 143, var(--tw-bg-opacity)) !important; /* novo tom de blue */
}

.bg-primary-hover {
  --tw-bg-opacity: 1;
  background-color: rgba(6, 90, 191, var(--tw-bg-opacity)) !important; /* blue 4 */
}

.hover\:bg-primary-hover:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(6, 90, 191, var(--tw-bg-opacity)) !important; /* blue 4 */
}

/* Custom Text Colors */
.text-primary {
  color: #FFFFFF !important;
}

/* Button Styles */
button.bg-primary, .button-primary-large {
  background-color: #04458F !important; 
  color: #FFFFFF !important;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

button.bg-primary:hover, .button-primary-large:hover {
  background-color: #065ABF !important; 
}

/* Modal Header Close Button */
.agency-modal-header .btn-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #03162F;
  font-weight: bold;
}

/* Alert Message Styles */
.hs-error-msg {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Code Block Styles */
.bg-custom-blue {
  background-color: #03162F !important;
}

.bg-custom-dark {
  background-color: #052D60 !important;
}

.text-custom-yellow {
  color: #fbbf24 !important;
}

.text-custom-purple {
  color: #8b5cf6 !important;
}

/* Modal Request Acess */
.modalRequestAcess {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  width: 100%;
  max-width: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #333;
}

/* Error message styling */
.hs-error-msg.hs-main-font-element {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
  }

/* Modal close button positioning */
.btn-close {
  position: absolute !important;
  right: 20px !important;
  cursor: pointer !important;
  color: #333 !important;
  font-weight: bold !important;
}

.modal-body {
  padding: 1rem 0;
}

.hs-form input,
.hs-form select,
.hs-form textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #C8D3DC !important;
  border-radius: 8px !important;
  padding: 15px 20px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  transition: 0.3s !important;
}

/* Hover and focus styles for form fields */
.hs-form input:hover,
.hs-form select:hover,
.hs-form textarea:hover,
.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
  border-color: #04458F !important;
}

/* Submit button styles */
input[type="submit"].hs-button.primary.large {
  margin-top: 20px;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  font-size: 16px !important;
  padding: 12px 0 !important;
  background-color: #04458F !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  text-align: center !important;
  cursor: pointer !important;
}

.button-header-request-access {
  font-size: 15px;
  width: auto;
  background-color: #065ABF;
  border: none;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button-header-request-access:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}