@import url('https://fonts.googleapis.com/css?family=Work+Sans:400,600');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #e8e6e6;
    font-family: 'Work Sans', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 800;
}

.container {
    width: 80%;
    margin: 0 auto;
}

header {
    background: #8783A3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra inicial */
    transition: box-shadow 0.3s ease-in-out;
    /* Transição da sombra */
    max-height: 80px;
    position: relative;
    /* Necessário para o z-index funcionar */
    z-index: 1000;
    /* Valor alto para garantir que fique acima de tudo */
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Sombra intensificada ao passar o mouse */
}

header::after {
    content: '';
    display: table;
    clear: both;
}

.logo {
    padding: 10px 0;
    width: 50px;
    align-self: center;
    transition: opacity 0.3s ease;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    /* Aumentei o espaçamento para 30px */
}

nav.d-flex {
    display: flex;
    align-items: center;
}

nav.d-flex a {
    margin-right: 15px;
    /* Ajuste conforme necessário */
}

nav.d-flex a:last-child {
    margin-right: 0;
}

/* Estilo base para todos os links no menu */
nav a, .logado_menu a {
    position: relative;
    padding-top: 0;
    font-size: 1rem;
    display: flex;
    line-height: 80px; /* Certifique-se de que a altura seja consistente */
    align-items: center; /* Centraliza verticalmente */
    gap: 8px; /* Espaçamento entre o texto e o ícone (se houver) */
    transition: color 0.3s ease, transform 0.3s ease; /* Transição suave */
    color: white;
    text-decoration: none;
}

/* Estilo para a linha ::before */
nav a::before, .logado_menu a::before {
    content: '';
    position: absolute;
    top: 0; /* Garante que a linha toque o topo */
    left: 0;
    height: 5px; /* Altura da linha */
    width: 0;
    background-color: #444; /* Cor da linha */
    transition: width 250ms ease-in-out;
    z-index: -1; /* Garante que a linha fique atrás do texto */
}

/* Efeito de hover para a linha */
nav a:hover::before, .logado_menu a:hover::before {
    width: 100%;
}

/* Efeito de hover para o texto */
nav a:hover, .logado_menu a:hover {
    color: #ccc; /* Cor mais clara ao passar o mouse */
    transform: scale(1.05); /* Leve aumento ao passar o mouse */
}
.no-hover-effect:hover::before {
    content: none;
}

.carousel {
    position: relative;
    z-index: 1;
    /* Valor menor que o do header */
    width: 100vw;
    height: 50vh;
    margin-left: calc(-50vw + 50%);
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* === Indicadores Customizados === */
.carousel-indicators {
    position: absolute;
    right: 20px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    justify-content: center;
    /* Centralização vertical corrigida */
    align-items: center;
    /* Garante alinhamento horizontal */
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff !important;
    transform: scale(1.3);
}

.carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centraliza verticalmente */
    align-items: center;
    /* centraliza horizontalmente */
    background: rgba(0, 0, 0, 0.5);
    /* fundo preto semi-transparente */
    padding: 12rem;
    /* ajuste se necessário */
}

h5 {
    font-size: 2rem;
    font-weight: 700;
}

p {
    font-size: 1.2rem;
    font-weight: 400;
}

footer {
    background-color: #21202E;
    /* Cor igual à navbar */
    width: 100%;
    padding: 20px 0 10px;
    /* Reduzi o padding */
    position: relative;
    margin-top: 50px;
    /* Espaço antes do footer */
    box-shadow: inset 0 8px 12px -6px rgba(0, 0, 0, 0.2);
    /* Nova sombra interna */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Borda sutil para definição */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Espaçamento menor entre elementos */
}

.decorative-line {
    height: 1px;
    /* Linha mais fina */
    width: 60%;
    background: linear-gradient(90deg,
            transparent,
            rgba(112, 105, 159, 0.4) 50%,
            transparent);
    margin-bottom: 10px;
}

.icon {
    width: 35px;
    /* Ícones menores */
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.1);
    /* Fundo translúcido */
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.icon i {
    font-size: 1rem;
    /* Ícones mais compactos */
}

#facebook {
    color: rgba(255, 255, 255, 0.9);
}

#youtube {
    color: rgba(255, 255, 255, 0.9);
}


.icon:hover {
    transform: translateY(-2px);
    /* Animação mais sutil */
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}


.icon:hover#facebook {
    background-color: #1877f2;
    color: white;
}

.icon:hover#youtube {
    background-color: #ff0000;
    color: white;
}


footer p {
    font-size: 0.8rem;
    /* Texto menor */
    color: white;
    /* Cor contrastante */
    text-align: center;
    margin: 10px 0 0;
    line-height: 1.4;
    max-width: 80%;
    font-weight: 500;
}

/* EFEITO DE NEON OPCIONAL */
.icon {
    position: relative;
}

.icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon:hover::after {
    opacity: 0.6;
}

.contact-info {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.1rem;
    color: #4a4563;
}

.contact-item:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.contact-item:hover i {
    color: #5f5a85;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    footer {
        padding: 15px 0 5px;
    }

    .footer-content {
        gap: 10px;
    }

    footer p {
        font-size: 0.7rem;
        max-width: 90%;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .decorative-line {
        width: 70%;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contact-item {
        font-size: 0.8rem;
    }

    .contact-item i {
        font-size: 1rem;
    }
}

/* Estilização dos ícones */
#beneficios-container i {
    font-size: 2.5rem;
    color: #8783A3;
    transition: transform 0.3s;
}

/* Animação de entrada para os itens */
.animate-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

/* Definindo delays individuais para cada item */
#beneficio-economia {
    animation-delay: 0.2s;
}

#beneficio-agilidade {
    animation-delay: 0.4s;
}

#beneficio-seguranca {
    animation-delay: 0.6s;
}

/* Keyframes para o efeito de fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de hover nos ícones */
#beneficios-container i:hover {
    transform: scale(1.2);
}

/* Efeito de hover para o item completo */
.animate-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

#container-direito {
    background-color: #8783A3;
}

nav.d-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.logado_menu {
    display: none;
    align-items: center;
    gap: 20px;
    position: relative;
  }
  
  /* Exibe o menu "Profile" e "Logout" quando o JavaScript altera o estilo */
  .logado_menu.show {
    display: flex;
  }
  
  .logado_menu a i {
    font-size: 1.5rem; /* Tamanho do ícone */
    transition: transform 0.3s ease; /* Transição suave para o ícone */
  }
  
  .logado_menu a:hover i {
    transform: rotate(10deg); /* Leve rotação ao passar o mouse */
  }
  
  /* Estilo específico para o ícone de Logout */
  .logado_menu a#logoutButton i {
    font-size: 1.8rem; /* Ícone de Logout maior */
  }

/* Chat Bot */
/* Chat Bot - Versão Corrigida */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #8783A3;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 10000;
    /* Z-index muito alto para garantir sobreposição */
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: #5a576d;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}
.mobileUserMenu{
    color: white;
}
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.chat-container.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 15px;
    background: #8783A3;
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
}

.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #e9ecef;
    margin-right: auto;
}

.chat-input {
    display: flex;
    padding: 15px;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

#sendButton {
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1s infinite;
}

/* Versão Desktop - Esconder sidebar */
.mobile-sidebar {
    display: none;
    transition: left 0.3s ease-in-out;
    height: 100vh;
}

.menu-icon {
    display: none;
}

/* Versão Mobile */
@media (max-width: 768px) {
    nav {
        visibility: hidden;
    }

    .menu-icon {
        display: block;
        visibility: visible;
        font-size: 24px;
        cursor: pointer;
        right: 0 auto;
        transition: transform 0.3s ease, color 0.3s ease;
        
    }

    .mobile-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        max-width: 300px;
        width: 15%;
        max-height: 0;
        background-color: #8783A3;
        /* Cor de fundo */
        z-index: 1000;
        transition: max-height 0.3s ease;
        border-radius: 5px 0 0 5px;
        overflow: hidden;
    }

    

    /* Ajuste no menu-icon para controlar a sidebar */
    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
        position: relative;
        z-index: 10001;
        /* Fica acima da sidebar para que o usuário possa interagir */
        
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        z-index: 999;
        /* menor que a sidebar */
        transition: opacity 0.3s ease;
        
    }

    .no-scroll {
        overflow: hidden;
    }

    .mobile-sidebar.active+.sidebar-overlay {
        display: block;
        
    }
    /* Ajustes na sidebar */
    .mobile-sidebar .nav-pills {
        padding-top: 60px;
        /* Espaço para o header */
        --bs-nav-pills-border-radius: 0;
        
    }

    .mobile-sidebar .nav-link {
        padding: 15px 0; /* Ajusta o espaçamento interno */
        color: black; /* Cor do texto */
        text-align: center;
        text-decoration: none;
        font-size: 1.2rem; /* Tamanho da fonte */
        border: none; /* Remove as bordas */
        opacity: 1;
        transition: opacity 0.1s ease;
    }

    .mobile-sidebar .nav-link + .nav-link {
        border-top: 1px solid rgba(255, 255, 255, 0.2); /* Linha separadora entre os itens */
    }

    .mobile-sidebar .nav-link i {
        font-size: 1.5rem; /* Tamanho dos ícones */
        color: black; /* Cor dos ícones */
        transition: color 0.3s ease;
    }

    .mobile-sidebar.closing .nav-link,
    .mobile-sidebar.closing .dropdown-menu {
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    

    .mobile-sidebar .dropdown-menu {
        position: absolute;
        left: 100%;
        bottom: auto;
        margin-left: 0;
    }

    .menu-icon.open {
        transform: rotate(45deg);
        color: #ff0000;
        /* Exemplo: altera a cor quando aberto */
    }

    .menu-icon.rotating {
        animation: rotate360 0.5s forwards;
    }    
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}
