/* task/projects page */

.comment-form-container {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1050; /* Ensure it's above other elements */
}
.comment-form-container.active {
    display: block; /* Show when active */
}

.attachment-gallery {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 1px; /* Space between items */
    justify-content: center; /* Adjust this based on your preference */
}

.attachment-item img,
.attachment-item video {
    height: 100px;
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
    object-fit: cover; /* Maintain aspect ratio, cover the given height */
    width: auto;
}

.attachment-item {
    position: relative; /* Ensure the parent has a relative position */
}

.attachment-item .timestamp {
    white-space: nowrap;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.large-icon {
    font-size: 100px; /* Set the size of the icon */
    width: 100px;     /* Ensure the width is set to 100px */
    height: auto;     /* Maintain aspect ratio */
    display: block;   /* Display as a block element */
    margin: 0 auto;   /* Center the icon */
    text-align: center; /* Center the icon if it's inline with text */
}

.reply-comment-box {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px;
    background-color: #212529;
    border-top: 1px solid #ccc;
    z-index: 1050; /* Ensure it's above other elements */
}

.reply-comment-box textarea {
    resize: none;
    overflow: hidden;
    max-height: 400px;
    font-size: 1.25rem;
}

#fileUploadButton {
}

.content {
   flex: 1;
   overflow: auto;
   padding-bottom: 400px; /* Ensure content does not overlap with the comment box */
}

/* tasks/projects page end */

/* styling for pm comments start */

pre {
    background-color: #000000; /* Black background */
    color: #00FF00; /* Bright green text */
    font-family: "Courier New", Courier, monospace; /* Old-school screen font */
    padding: 10px;
    border-radius: 5px;
    overflow: auto;

    white-space: pre-wrap; /* Ensures the text wraps within the pre element */
    word-wrap: break-word; /* Allows long words to break and wrap within the element */
    word-break: break-all; /* Breaks long words to fit within the container */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width */
    border: 1px solid #dee2e6; /* Grey border */
    overflow-wrap: break-word; /* Ensures the text wraps within the pre element */
}

blockquote {
    padding: 0;
    padding-left: 0.5rem;
    margin: 0 0;
    border-left: 0.25rem solid #ccc;
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.2); /* Adjust the opacity as needed */
}

/* styling for pm comments end */

/* styling for chat start */

.card {
    border: 1px solid #ccc;
    border-radius: 20px;
}

.card-body {
    margin: 5px;
    padding: 5px;
    padding-bottom: 0px;
    padding-top: 0px;
}

.card-text {
    margin: 0px;
    padding: 0px;
}

.chat-container {
    margin: 0 auto;
}
.my-comment {
    color: white;
    background-color: #0d6efd;
}
.other-comment {
    color: white;
    background-color: #6c757d;
}
.profile-icon {
    margin-top: 10px;
    margin-left: 10px;
}
.timestamp {
    font-size: 0.8em;
    color: white;
    text-align: right;
}
.timestamp a {
    color: white;
}
.attachment-container .timestamp {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
}
img, video {
    border-radius: 20px;
    width: 100%; /* Ensure media take full width within the container */
    max-width: 100%;
}
.date-separator {
    margin: 10px 0;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
}

/* styling for chat end */


/* fs video thumbnail play-button start */

.video-thumbnail {
    position: relative;
    display: inline-block;
}

.video-thumbnail img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* fs video thumbnail play-button end */
