html, body {
    height: 100%;
    margin: 0;}

.chatContent {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    row-gap: 4px;    
}

.single-text {
    display: inline-flex;
    align-self: flex-start;
    flex-direction: row;
    font-size: 0.8em;    
    color: gray;
}

.single-text .time {
    font-size: 0.9em;
    color: gray;
}

.bubble_client {
    display: inline-flex;
    position: relative;
    background: #fff;
    border-radius: 0px 8px 8px 8px;
    box-shadow: 0 1px 1px rgba(43, 43, 43, 0.6);
    margin-top: 10px;
    padding: 8px 12px;
    word-break: break-word;
    white-space: normal;
    align-self: flex-start;
    max-width: 90%;
}
.bubble_client::before {
    content: "";
    position: absolute;
    left: -13px;  /* un poco más afuera */
    top: 0;
    width: 0;
    height: 0;
    border-right: 13px solid #afb1af94;
    border-bottom: 13px solid transparent;
}
.bubble_client::after {
    content: "";
    position: absolute;
    left: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-right: 12px solid #fff;
    border-bottom: 11px solid transparent;
}
.bubble_client.rounded {
    margin-top: 0;
    border-radius: 8px;
}
.bubble_client.rounded::before,
.bubble_client.rounded::after {
    content: none;
}

.bubble_agent {
    display: inline-flex;
    position: relative;
    background: #d9fdd3;
    border-radius: 8px 0px 8px 8px;
    box-shadow: 0 1px 1px rgba(43, 43, 43, 0.6);
    margin-top: 10px;
    padding: 8px 12px;
    word-break: break-word;
    white-space: normal;
    align-self: flex-end;
    max-width: 90%;
}
.bubble_agent::before {
    content: "";
    position: absolute;
    right: -13px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 13px solid #afb1af94;
    border-bottom: 13px solid transparent;
}
.bubble_agent::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-left: 12px solid #d9fdd3;
    border-bottom: 11px solid transparent;
}
.bubble_agent.rounded {
    margin-top: 0;
    border-radius: 8px;
}
.bubble_agent.rounded::before,
.bubble_agent.rounded::after {
    content: none;
}

.title {
    color: gray;
    font-size: 0.8em;
    margin: 0;
    padding: 0;
    line-height: 1;
}
.text {
    margin-right: 8px;    
    line-height: 1.4;
}
.time {
    flex-shrink: 0;
    font-size: 0.7em;
    color: gray;
    align-self: flex-end;
}


#chatContent {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.elements-container {
    display: flex;
    flex-direction: column;
    margin: 4px 0;
}
.elements-container .content button {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.elements-container .content button:hover {
    background: #0056b3;
}

.chat-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    word-break: break-all;
}

.chat-link:hover {
    color: #0056b3;
    text-decoration: none;
}

.message-with-links {
    border-left: 3px solid #007bff;
    padding-left: 8px !important;
}

.message-with-links .text {
    line-height: 1.4;
}
