.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 1% auto;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.close-btn {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 480px;
    margin-top: auto;
}

.chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
}

.recipient-info {
    display: flex;
    align-items: center;
    margin-top: 0px !important;
}

.recipient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.recipient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipient-details {
    flex-grow: 1;
}

.recipient-name {
    font-size: 20px;
    font-weight: bold;
}

.recipient-title {
    font-size: 14px;
    opacity: 0.8;
}

.recipient-extra {
    font-size: 12px;
    margin-top: 5px;
}

.online-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: inline-block;
    margin-right: 5px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-image: url('/public/img/perfil/fondoChat.png');
}

.message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.received .message-content {
    background-color: #fff;
    margin-left: 10px;
    border-top-left-radius: 0;
}

.sent .message-content {
    background-color: #dcf8c6;
    margin-right: 10px;
    border-top-right-radius: 0;
}

.sent {
    flex-direction: row-reverse;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.message-sender {
    font-weight: bold;
    font-size: 0.9em;
}

.message-date {
    font-size: 0.7em;
    color: #999;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: #f0f0f0;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    margin-right: 10px;
}

.chat-input button {
    background-color: #075e54;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #128c7e;
}