/* Add padding to the body to account for the fixed navbar */
body {
    padding-top: 56px; /* Adjust this value to the height of your navbar */
    background-color: #f8f9fa;
}

.sidebar-nav {
    width: 250px;
}

/* Styles for the sidebar on large screens */
@media (min-width: 992px) {
    .sidebar-nav {
        transform: none;
        visibility: visible !important;
        height: calc(100vh - 56px); /* Full height minus navbar */
        top: 56px; /* Position it below the navbar */
    }
}

.sidebar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.sidebar-nav .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar-nav .nav-link .fa-solid, .fa-brands {
    margin-right: 10px;
}

body {
    padding-top: 56px; /* Navbar height */
    background-color: #f8f9fa;
}

.body-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

.sidebar-nav {
    width: 250px;
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    background-color: #fff; /* Give sidebar a solid background */
    border-right: 1px solid #dee2e6;
}

.main-content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    transition: margin-left 0.3s;
}

@media (max-width: 991.98px) {
    .body-wrapper {
        display: block;
    }
    .main-content {
        padding: 1rem;
    }
}

.sidebar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}

.sidebar-nav .nav-link:hover {
    background-color: #e9ecef;
}

/* Chat window styles */
.chat-window {
  background-color: #f0f2f5;
  border-radius: 8px;
  height: calc(80vh - 130px);
  overflow-y: auto;
}

.chat-message {
  display: flex;
  margin-bottom: 10px;
}

.chat-message.me {
  justify-content: flex-end;
}

.chat-message.contact,
.chat-message.bot {
  justify-content: flex-start;
}

.chat-message .bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-message.contact .bubble {
  background-color: #e9ecef;
  color: #000;
}

.chat-message.bot .bubble {
  background-color: #d1e7dd;
  color: #0f5132;
}

.chat-message.me .bubble {
  background-color: #d1e7ff;
  color: #0d6efd;
}

.help-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #ffffff;
    color: #333;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 99999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

/* seta do balão */
.help-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
}