/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('style.css');
@import url('menu.css');


.chat-container {
    flex: 1;
    height: 35vh;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    display: flex;
    align-items: flex-start;
    max-width: 85%;
}

.message.bot {
    flex-direction: row;
    align-self: flex-start;
}

.message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.avatar.bot {
    background-color: #10a37f;
    color: #fff;
}

.avatar.user {
    background-color: #3b82f6;
    color: #fff;
}

.bubble {
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    padding: 10px 15px;
    background-color: var(--chat-bubble);
    font-size: 0.95rem;
    max-width: 50%;
    margin: 10px;
    line-height: 1.4;
    white-space: pre-wrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    color: var(--chat-text-color);
}
  
  /* Triângulo apontando para a esquerda (remetente) */
.bubble::after {
    content: "";
    position: absolute;
    left: -17px; /* Ajuste conforme necessário */
    transform: rotate(12deg);
    top: 0px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right-color: var(--chat-bubble);
}  

.message.user .bubble {
    background-color: var(--chat-user-bubble);
    color: var(--chat-text-color);
    align-self: flex-end;
    max-width: 50%;
}
.message.user .bubble::after {
    content: "";
    position: absolute;
    left: auto; /* Ajuste conforme necessário */
    right: -17px;
    transform: rotate(-12deg);
    top: 0px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: var(--chat-user-bubble);
}

.input-container {
    display: flex;
    padding: 1rem;
    background-color:transparent;
    border-top: 1px solid #ddd;
    margin-bottom: 20px;
}

.input-container input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 20px;
    background-color: var(--input-chat);
    border: 1px solid #ccc;
    outline: none;
}
#userInput::placeholder {
    color: var(--text-color);
}

.input-container button {
    position: relative;
    margin-left: -60px;
    padding: 10px;
    width: auto;
    font-size: 1.8rem;
    background-color:transparent;
    color: var(--tittle-color);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10000;
}

.input-container .isend:hover {
    color:#10a37f;
}

.home{
    position: absolute;
    top: 0;
    top: 0;
    left: 250px;
    height: 100vh;
    width: calc(100% - 250px);
    background-color: var(--body-color);
    transition: var(--tran-05);
    padding: 25px;
    color: var(--tittle-color);
}
.home .text p{
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color);
    padding: 15px 15px;
}

.sidebar.close ~ .home{
    left: 78px;
    height: 100vh;
    width: calc(100% - 78px);
}
body.dark .home .text{
    color: var(--text-color);
}

.section:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(247, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.section {
    background-color: #fff;
    border-radius: 20px; 
    border-color: rgba(255, 255, 255, 0.231);      
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 25px;
    text-align: center;
    width: auto;
    height: 20vh;
}

#saudacao{
    margin-top: -.5px;
    font-size: 15px;
    color: var(--tittle-color);
}
#dataHora {
    font-size: 12px;
    color: var(--tittle-color);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: transparent;
    color: var(--text-color); 
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
}

@media screen and (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--sidebar-color);
        transition: height 0.3s ease;
        overflow: hidden;
        flex-direction: column;
        padding: 0;
        padding: 10px;
    }

    .sidebar.close {
        height: 60px; /* altura do header recolhido */
        width: 100%;
    }

    .sidebar header {
        height: 38px;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar .menu-bar {
        flex-direction: column;
        overflow: hidden;
    }

    .sidebar.close .menu-bar {
        display: none;
    }

    .sidebar .menu {
        flex-direction: column;
        width: 100%;
    }

    .sidebar .menu-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sidebar li {
        width: 100%;
        justify-content: flex-start;
    }

    .sidebar li a{
        width: 100%;
        border-radius: 6px;
    }

    .sidebar header .toggle {
        transform: rotate(-90deg);
        transition: transform 0.3s ease;
    }
    .sidebar header .toggle {
        top: 35%;
        right: 2%;
        position: absolute;
    }

    .sidebar.close .toggle {
        transform: rotate(90deg);
    }

    .home {
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
    }

    #logoavi{
        display: none;
    }


    footer {
        text-align: center;
        padding: 5px;
        background-color: transparent;
        color: var(--text-color); 
        position: fixed;
        bottom: 0;
        width: 100%;
        font-size: 11px;
        margin-left: 10px;
        font-weight: 400;
    }
}
