body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 100%;
    margin-top: 10px;
    padding: 0 15px; /* Added padding for smaller screens */
    max-height: 700px;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: auto; /* Prevent horizontal scrolling */
}
/*    scrollbar-width: none; !* Hide scrollbar in Firefox *!*/
/*}*/

/*.container::-webkit-scrollbar {*/
/*    display: none; !* Hide scrollbar in Chrome, Edge, and Safari *!*/
/*}*/


.form-section {
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px !important;
    color: dodgerblue;
}

/* Ensure elements wrap properly on smaller screens */
@media (max-width: 768px) {
    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .form-check {
        width: 100%;
    }
}


.form-label {
    font-weight: normal;
}

.form-text {
    color: dodgerblue;
}
.form-check-label{
    color: #4d8be4;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.centered-heading {
    color: #a8aaac; /* Blue color */
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

/* Responsive table container */
.responsive-table {
    overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
    margin: 0 auto;
    max-width: 100%; /* Ensure it takes full width on smaller screens */
}

/* Table styling */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    color: #7f8c8d; /* Light gray for text */
    text-align: center;
    font-weight: bold;
}

.custom-table thead th {
    font-weight: bold;
    font-size: 13px;
    color: #7f8c8d;
    padding: 12px;
    background-color: rgba(53, 122, 222, 0.17);
    border-style: none;
    text-align: left;
    position: sticky;
}

.custom-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.custom-table tbody tr:nth-child(even) {
    background-color: #f4f4f4;
}

.custom-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.custom-table tbody td {
    padding: 12px;
    font-size: 12px;
    font-weight: lighter;
    border: none;
    text-align: left;
}

/* Hover effect for rows */
.custom-table tbody tr:hover {
    background-color: #e8f1ff;
}

.content {
    font-size: 14px; /* Slightly larger font size for better readability */
    line-height: 1.6; /* Increased line height for better spacing */
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-weight: lighter;
    color: #718096;
    text-align: justify; /* Justify the text for a cleaner look */
    word-wrap: break-word; /* Ensure long words do not overflow */
    overflow-wrap: break-word; /* Alternative to word-wrap for better support */
    margin-bottom: 20px; /* Add some space below the content */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .content {
        font-size: 12px; /* Adjust font size for smaller screens */
        line-height: 1.5; /* Adjust line height for smaller screens */
    }
}

@media (max-width: 480px) {
    .content {
        font-size: 11px; /* Further adjust font size for very small screens */
        line-height: 1.4; /* Further adjust line height for very small screens */
    }
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Reduce the bottom margin */
    gap: 1rem; /* Adds minimal space between flex items */
    color: #718096;
}

.title {
    font-size: 15px;
    font-weight: normal;
    color: #718096;
}

@media (max-width: 764px) {
    .title{
        font-size: 12px !important;
    }
}

.details {
    display: flex;
    align-items: center; /* Vertically center the items */
    gap: 2rem; /* Adjust spacing between the items */
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.6;
    color: #718096;
}


.details p {
    margin: 5px 0;
}

.dropdown-menu{
    color: rgba(77, 139, 228, 0.87);
}

.status {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 400;
}

/* Status colors */
.status.active {
    background-color: #dff0d8;
    color: #3c763d;
}

.status.inactive {
    background-color: #f2dede;
    color: #a94442;
}
.access {
    font-size: 13px;
    font-weight: 400;
}

/* Status colors */
.access.active {
    background-color: #dff0d8;
    color: #3c763d;
}

.access.inactive {
    background-color: #f2dede;
    color: #a94442;
}

/* Button hover styling */
button[id^="statusChange-"]:hover .status {
    filter: brightness(1.2);
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

#scrollTopBtn, #scrollDownBtn {
    position: fixed;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(79, 155, 235, 0.84); /* Primary color */
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn {
    bottom: 135px;
}

#scrollDownBtn {
    bottom: 80px;
}

#scrollTopBtn:hover, #scrollDownBtn:hover {
    background-color: rgba(36, 129, 232, 0.85);
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #scrollTopBtn, #scrollDownBtn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    #scrollTopBtn {
        bottom: 125px;
    }

    #scrollDownBtn {
        bottom: 80px;
    }
}


.urgency {
    padding: 3px 7px;
    font-size: 10px;
    border-radius: 2px;
    font-weight: 400;
    display: inline-block; /* Ensures proper spacing */
}

/* Normal Status (0) */
.urgency-0 {
    background-color: #dff0d8; /* Light green background */
    color: #81c582;           /* Dark green text */
}

/* Urgent Status (1) */
.urgency-1 {
    background-color: #f2dede; /* Light red background */
    color: #ef6d6d;            /* Dark red text */
}

/* Optional: Hover Effects (if desired) */
.urgency:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease-in-out;
}



/* Button container styling */
.button-container {
    margin-bottom: 15px;
    text-align: right;
}

.create-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.create-btn:hover {
    background-color: transparent;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        max-width: 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 992px) {
    .form-section {
        padding: 15px; /* Slightly smaller padding on medium screens */
    }
    .responsive-table {
        max-width: 100%; /* Ensure table takes full width */
    }
    .custom-table tbody td {
        font-size: 12px; /* Reduce font size for smaller screens */
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 10px; /* Further reduce padding for small screens */
    }
    .footer {
        font-size: 14px; /* Slightly smaller font for footer */
    }
    .create-btn {
        width: 100%; /* Full-width button on small screens */
        text-align: center;
    }
    .button-container {
        text-align: center; /* Center button on small screens */
    }
}

@media (max-width: 576px) {
    .custom-table {
        font-size: 12px; /* Further reduce font size for very small screens */
    }
    .create-btn {
        font-size: 14px; /* Slightly smaller button text */
    }
}

/* Custom Styling for Select2 using Bootstrap */
.select2-container .select2-selection--multiple {
    height: auto; /* Adjust to content */
    border: 1px solid #ccc;
    border-radius: 0.50rem; /* Bootstrap rounded borders */
    padding: 5px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap; /* Allow chips to wrap */
    background-color: #fff; /* Bootstrap default input background */
}

.select2-selection__rendered {
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
}

.select2-container--default .select2-selection__clear {
    display: none; /* Hide the clear all button */
}

.select2-container--default .select2-selection__arrow {
    top: 50%;
    margin-top: -8px;
}

/* Adjusting search input */
.select2-container .select2-search--dropdown {
    display: block;
    width: 100%;
    padding: 5px;
}

.select2-search__field {
    border-radius: 0.25rem;
    font-size: 14px;
    caret-color: #000; /* Ensure blinking cursor is visible */
    width: 100px !important; /* Slightly wider than its container */
    border: none; /* Remove border */
    outline: none; /* Remove focus outline */
    padding: 5px;
    background-color: transparent; /* Optional for a seamless look */
}

.select2-search--inline{
    list-style: none;
}

.select2-search__field::-webkit-search-cancel-button {
    display: none; /* Hide cross button in search input field */
}

.select2-dropdown {
    position: absolute !important;
    z-index: 1050;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -25px; /* Adjust to bring dropdown higher */
}

.select2-results__options {
    max-height: 200px;
    overflow-y: auto;
    list-style: none; /* Removes the bullets */
    padding: 0; /* Ensures no extra padding */
    font-weight: normal;
    font-size: small;
}

.select2-results__option {
    padding: 10px;
    cursor: pointer;
}

.select2-results__option--highlighted {
    background-color: lightSkyBlue;
    color: #1a202c;
    font-weight: normal;
    font-size: small;
}

.select2-selection__choice {
    background-color: lightSkyBlue; /* Bootstrap primary color */
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 10px;
    border-radius: 3px;
    margin: 3px;
    padding: 3px 8px;
    list-style: none; /* Ensure no bullets */
    display: inline-block; /* Prevent list-style markers */
}

.select2-selection__choice__remove {
    color: #1a202c;
    font-size: 10px;
    padding: 0 5px;
}

/* Customization for the input field (optional) */
.select2-selection__rendered input {
    background: none;
    border: none;
    outline: none;
    padding: 0;
    width: 100%;
    font-size: 14px;
}

/* Optional: Add Bootstrap's dropdown arrow */
.select2-container--default .select2-selection__arrow {
    background: none;
    border-left: 1px solid #ccc;
    border-radius: 0 0.25rem 0.25rem 0;
    color: #6c757d;
}

/* Adjusting search input - no border */
.select2-container .select2-search--dropdown {
    display: block;
    width: 100%;
    padding: 5px;
}

.select2-search__field {
    width: 100%;
    border: none; /* Remove border */
    outline: none; /* Remove focus outline */
    padding: 5px;
    font-size: 14px;
    background-color: transparent; /* Optional for a seamless look */
    caret-color: #000; /* Ensure blinking cursor remains visible */
}

/* Attachments Gallery */
.attachment-gallery {
    display: block; /* Use block display for list behavior */
    list-style: none; /* Remove default list styles */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.attachment-gallery .attachment-item {
    margin-bottom: 10px; /* Set vertical spacing between list items */
}
.attachment-item {
    text-align: left;
}

.attachment-thumbnail {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.attachment-thumbnail:hover {
    transform: scale(1.05);
}

.attachment-link {
    display: block;
    text-decoration: none;
    color: #007bff;
    word-wrap: break-word;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Noto Sans', sans-serif !important;
}

.attachment-link:hover {
    text-decoration: underline;
}

/* Modal Styling */

#caption {
    margin: auto;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 18px;
}
.reply-card-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.user-reply {
    flex-direction: row-reverse;  /* Avatar on the left, reply on the right */
    justify-content: end;  /* user's messages start from the left */
}

.other-reply {
    flex-direction: row;  /* Avatar on the right, reply on the left */
    justify-content: start;  /* Other users' messages align to the right */
}

.reply-card {
    max-width: 600px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff9f0;
    padding: 15px;
    border: 1px solid #f0e0d6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.avatar {
    flex-shrink: 0;
}

.avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.reply-card p {
    margin: 5px 0;
    color: #333;
}



.reply-card a.attachment-link {
    display: inline-block; /* Change to block only for smaller screens */
    text-decoration: none;
    color: #007bff;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Noto Sans', sans-serif !important;
    max-width: 100%;
    white-space: normal; /* Ensures text wraps */
}

/* On smaller screens, make sure the link breaks properly */
@media (max-width: 600px) {
    .reply-card a.attachment-link {
        display: block;  /* Ensures wrapping */
        white-space: normal; /* Allows breaking */
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

.reply-card a.attachment-link:hover {
    text-decoration: underline;
}

#floatingButton {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 20px;  /* Distance from the right */
    z-index: 1030; /* Ensure it stays above other elements */
    width: 50px; /* Width of the button */
    height: 47px; /* Height of the button */
    border-radius: 50%; /* Make it perfectly round */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); /* Optional shadow */
    color: rgb(235, 236, 237); /* Text/icon color */
    background-color: rgba(225, 42, 42, 0.6); /* Darker blue on hover */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    font-size: 24px; /* Icon size */
    border: none; /* Remove border */
    cursor: pointer; /* Change cursor to pointer */
}

#floatingButton:hover {
    background-color: rgba(110, 117, 122, 0.37); /* Background color */
}

.custom-delete-btn {
    background: transparent;
    border: none; /* Remove border */
    color: #09df2e; /* Danger red color */
    transition: all 0.3s ease; /* Smooth hover transition */
}
.custom-delete-btn:hover {
    color: #6e757a; /* White text on hover */
}
.custom-delete-btn i {
    pointer-events: none; /* Ensure only the button is clickable, not the icon */
}
.custom-close-btn {
    background: transparent;
    border: none; /* Remove border */
    color: #df1616; /* Danger red color */
    transition: all 0.3s ease; /* Smooth hover transition */
}
.custom-close-btn:hover {
    color: #494c4e; /* White text on hover */
}
.custom-close-btn i {
    pointer-events: none; /* Ensure only the button is clickable, not the icon */
}

.user-card {
    background: rgba(255, 254, 254, 0.85);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}
.user-card:hover {
    transform: translateY(-5px);
}
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.user-info {
    flex-grow: 1;
}
.user-name {
    font-weight: 300;
    font-size: 17px;
    color: #414040;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.verified-badge {
    width: 20px;
    height: 20px;
}
.user-email {
    color: gray;
    margin-bottom: 5px;
    font-size: 12px;
    word-break: break-all; /* or use overflow-wrap: break-word; */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    .user-name {
        font-size: 15px;
    }
    .user-email {
        font-size: 11px;
        word-break: break-all; /* or use overflow-wrap: break-word; */
    }
}

@media (max-width: 480px) {
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    .user-name {
        font-size: 14px;
    }
    .user-email {
        font-size: 10px;
        word-break: break-all; /* or use overflow-wrap: break-word; */
    }
}

@media (max-width: 764px) {
    .input-group {
        display: flex;
        flex-wrap: nowrap;
    }

    .form-control {
        flex: 1;
    }

    .btn {
        white-space: nowrap;
    }
}







