.messages-app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    z-index: 6;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.messages-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.messages-header {
    padding: 15px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.messages-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.message-input-container {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-text-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d1d6;
    border-radius: 20px;
    font-size: 16px;
}

.message-send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007aff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.messages-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    clear: both;
}

.message.sent {
    align-self: flex-end;
    background-color: #007aff;
    color: white;
    margin-left: auto;
}

.message.received {
    align-self: flex-start;
    background-color: #e5e5ea;
    color: black;
    margin-right: auto;
}

