li.conversation-active i {
    color: #6861ce !important;
}

.conversation a p {
    white-space: break-spaces !important;
}


.conversation-active {
    background-color: #27244e;
}

#deleteModal {
    z-index: 1003;
}

/* cada item de conversación como fila flex */
.conversation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; /* texto a la izq, acciones a la der */
    padding: 0 8px;
}

/* el enlace ocupa solo lo necesario */
.conversation a {
    display: flex;
    align-items: center;
    flex: 1; /* ocupa el resto */
    min-width: 0; /* para que ellipsis funcione */
    overflow: hidden;
    text-decoration: none;
}

/* texto recortado */
.conversation p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* número de líneas visibles */
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 50px; /* altura máxima aproximada */
    margin: 0;
    white-space: normal; /* importante: permite varias líneas */
}

/* --- Menú --- */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: #343a40;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
}

.menu-item a {
    color: #495057;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    overflow: hidden;
}

.menu-item i {
    flex-shrink: 0;
    color: #495057;
}

.menu-item .delete-btn i {
    margin: 0;
}

.menu-item span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px; /* ajusta según el ancho que quieras mostrar */
    display: inline-block;
}

.menu-item.active span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    display: inline;
}

.menu-item:hover {
    background: #e9ecef;
    transform: translateX(3px); /* pequeño efecto al hover */
}

.menu-item.active {
    background: #dee2e6;
    font-weight: 600;
}

.menu-item.new {
    color: #0d6efd;
    font-weight: 500;
}

.menu-item.new i {
    color: #0d6efd;
}

/* --- Botón eliminar --- */
.delete-btn {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    display: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.menu-item:hover .delete-btn {
    display: inline;
}

.menu-item span {
    font-size: 90%;;
}

.delete-btn:hover {
    color: #dc3545;
    transform: scale(1.2);
}

/* boton grabar */
/*#record-wave.active .plasma-bg { background: radial-gradient(circle, #ff4444, #cc0000); }
#record-wave.active .wave-ring { animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

#record-wave.playing .mic-icon path { d: path("M5 9v6a7 7 0 0 0 14 0V9M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3z"); }
#record-wave.playing .plasma-bg { background: radial-gradient(circle, #44ff44, #00cc00); }*/