/* fonte */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

.pacifico-regular {
    font-family: "Pacifico", serif;
    font-weight: 400;
    font-style: normal;
}


/* Estilo my mensagens - my_message.php */
.chat-item {
    border-radius: 10px;
    transition: background 0.3s;
}

.chat-item:hover {
    background: #f8f9fa;
}

.chat-avatar {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #007bff; */
    border-radius: 50%;
    color: white;
}

.chat-details h5 {
    font-size: 18px;
    font-weight: 600;
}

#notification {
    display: none;
    /* Inicialmente oculto */
    position: fixed;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    /* Para garantir que a notificação apareça acima de outros elementos */
}

/* Estilo do chat - conversation.php */
.chat-container {
    height: 100vh;
    /* 80% da tela */
    display: flex;
    flex-direction: column;
}

.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    scroll-behavior: smooth;
}

.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 5px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.message {
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

.sent {
    align-self: flex-end;
    background: rgb(170, 170, 170);
    color: white;
}

.received {
    align-self: flex-start;
    background: #f1f1f1;
    color: black;
}

.message-time {
    font-size: 12px;
    color: rgb(46, 36, 36);
    margin-top: 3px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

.chat-input textarea {
    flex-grow: 1;
    resize: none;
    border-radius: 20px;
    padding: 10px;
    border: 1px solid #ccc;
}

.chat-input button {
    margin-left: 10px;
    border-radius: 50%;
    padding: 10px 12px;
}