/* Container for comments */
.comments-container {
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Comments summary */
.comments-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Comments list */
.comments-list {
    margin-top: 15px;
}

/* Individual comment */
.comment {
    display: flex;
    flex-direction: column;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Comment header */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Comment body */
.comment-body {
    /* font-size: 14px; */
    color: #333;
    text-align: left;
}

/* Comment footer */
.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    /* font-size: 12px; */
    color: #777;
}

/* Mentioned users */
.mentioned-users {
    font-style: italic;
    color: #555;
}

/* Strong text */
.comment strong {
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 600px) {
    .comments-container {
        padding: 10px;
    }

    .comment {
        padding: 10px;
    }

    .comment-header,
    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.delete-comment {
    border: none;
    background-color: transparent;
    cursor: pointer;
}
#commentBox {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    resize: vertical; 
    font-size: 14px;
    box-sizing: border-box;
}

.allCommentsContainer {
    margin-top: 20px;
    border-top: 3pt solid;
}

.tribute-container {
    position: fixed !important;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 14px;
    max-width: 300px;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tribute-container ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tribute-container li {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tribute-container li.highlight {
    background-color: #007bff;
    color: white;
}
.no-match {
    padding: 8px 12px;
    color: gray;
    font-style: italic;
}
.tribute-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: tribute-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes tribute-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

#commentsList_show, #commentsList_hide {
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
    /* text-decoration: underline; */
    border: none;
    background: none;
}
#commentsList_show:hover, #commentsList_hide:hover {
    text-decoration: none;
}
#commentsList_hide {
    display: none;
}