/* ===============================================
   ESTILOS DE CHAT (Independiente)
   =============================================== */

.comments-container {
    background: #e5ddd5 !important;
    /* Fondo tipo WhatsApp */
}

.comment-bubble {
    max-width: 80%;
    padding: 6px 7px 8px 9px;
    border-radius: 7.5px;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    animation: none !important;
    /* Evitar conflictos */
}

/* Burbuja de otros (Izquierda) */
.comment-bubble-other {
    align-self: flex-start;
    background: white !important;
    border-top-left-radius: 0;
    border: none !important;
}

/* Burbuja propia (Derecha) */
.comment-bubble-own {
    align-self: flex-end;
    background: #d9fdd3 !important;
    /* Verde suave */
    color: #111b21 !important;
    border-top-right-radius: 0;
    border: none !important;
}

.comment-username {
    font-size: 12.5px;
    font-weight: bold;
    color: #e542a3 !important;
    margin-bottom: 2px;
    line-height: 14px;
}

.comment-message {
    font-size: 14.2px;
    line-height: 19px;
    color: #111b21 !important;
    word-wrap: break-word;
}

.comment-timestamp {
    font-size: 11px;
    color: #667781 !important;
    align-self: flex-end;
    margin-top: 2px;
    margin-right: -4px;
    margin-bottom: -4px;
    text-align: right;
}

/* ===============================================
   CENTRO DE NOTIFICACIONES
   =============================================== */

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f5f6f6;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Estado NO LEÍDO: Fondo azul muy suave y borde lateral */
.notification-item.unread {
    background-color: #e7f3ff;
    border-left: 4px solid #0d6efd;
}

/* Estado LEÍDO: Fondo blanco y texto más suave */
.notification-item.read {
    background-color: #ffffff;
    border-left: 4px solid transparent;
}

.notification-item.read strong {
    font-weight: 500;
    color: #4b5563;
}

.notification-item.read p {
    color: #6b7280;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.notification-item.unread .notification-icon {
    background-color: #fff;
    color: #0d6efd;
}

.notification-item.read .notification-icon {
    background-color: #f3f4f6;
    color: #9ca3af;
    box-shadow: none;
}

/* Asegurar que el dropdown esté por encima de todo */
.dropdown-menu {
    z-index: 9999 !important;
}

/* CORRECCIÓN CRÍTICA: Modal de Comentarios por encima del Modal de OT */
#commentsModal {
    z-index: 10000 !important;
    /* OT Modal is at 1065, this must be higher */
}

/* Asegurar que el backdrop del segundo modal también esté por encima */
.modal-backdrop.show:nth-of-type(2) {
    z-index: 1059 !important;
}