/* Modal Background Overlay */
.like-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */
}

/* Modal Container */
.like-modal-container {
    background: #fff;
    width: 30%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;

}

/* Modal Body */
.like-modal-body {

    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}


/* Modal Header */
.like-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px;
    color: #333;
}


/* User List */
.like-modal-content {
    list-style: none;
    border: solid 1px #eee;
    padding: 10px;
    border-radius: 5px;
}

/* Prevent content overflow issues */
.like-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Links */
.like-modal-content a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.like-modal-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* Modal Background Overlay */
.current-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */
}

/* Modal Container */
.current-modal-container {
    background: #fff;
    width: 30%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;

}

/* Modal Body */
.current-modal-body {

    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}

/* Prevent content overflow issues */
.current-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 4px;
    right: 18px;
    font-size: 18pt;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    /* Ensure background is visible */
    line-height: 35px;
    /* Adjust this to match height */
    text-align: center;
}

/* Hover Effect */
.close-btn:hover {
    color: #d33;
    background: #ccc;
    border: solid 1px #bbb;
}



/* Modal Header */
.current-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px;
    color: #333;
}


/* User List */
.current-modal-content {
    list-style: none;
    border: solid 1px #eee;
    padding: 10px;
    border-radius: 5px;
}

/* Links */
.current-modal-content a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.current-modal-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Modal Overlay (Dark Background) */
.modify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */
}

/* Modal Container */
.modify-modal-container {
    background: #fff;
    width: 33%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;
}

/* Modal Body (Scrollable Content) */
.modify-modal-body {
    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}

/* Prevent content overflow issues */
.modify-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}



/* Close Button */
.modify-close-btn {
    position: absolute;
    top: 4px;
    right: 18px;
    font-size: 18pt;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    /* Ensure background is visible */
    line-height: 35px;
    /* Adjust this to match height */
    text-align: center;
}

/* Hover Effect */
.modify-close-btn:hover {
    color: #d33;
    background: #ccc;
    border: solid 1px #bbb;
}


/* Modal Header */
.modify-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px;
    color: #333;
}



/* User List */
.modify-modal-content {
    list-style: none;
    border: solid 1px #eee;
    padding: 10px;
    border-radius: 5px;
}

/* Links */
.modify-modal-content a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.modify-modal-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* No Current Members */
.no-current {
    font-size: 16px;
    font-weight: bold;
    color: #777;
    margin-top: 15px;
}




/* Modal Overlay (Dark Background) */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */
}

/* Modal Container */
.project-modal-container {
    background: #fff;
    width: 30%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;
}

/* Modal Body (Scrollable Content) */
.project-modal-body {
    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}

/* Prevent content overflow issues */
.project-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}



/* Modal Header */
.project-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px;
    color: #333;
}



/* User List */
.project-modal-content {
    list-style: none;
    border: solid 1px #eee;
    padding: 10px;
    border-radius: 5px;
}

/* Links */
.project-modal-content a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.project-modal-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}





/* Prevent scrolling on the main page when modal is open */
.collabration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */
}

/* Ensure the modal itself allows scrolling */
.collab-modal-container {
    background: #fff;
    width: 33%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;
}

/* Modal Body */
.collab-modal-body {
    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}

/* Prevent content overflow issues */
.collab-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}


/* Close Button */
.collab-close-btn {
    position: absolute;
    top: 4px;
    right: 18px;
    font-size: 18pt;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    /* Ensure background is visible */
    line-height: 35px;
    /* Adjust this to match height */
    text-align: center;
}

.collab-close-btn:hover {
    color: #d33;
    background: #ccc;
    border: solid 1px #bbb;
}

/* Modal Header */
.collab-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    padding: 15px;
    color: #333;
}

/* User List */
.collab-modal-content {
    list-style: none;
    border-top: solid 1px #ccc;
    /* padding: 10px; */
    text-align: left;
}

/* Links */
.collab-modal-content a {
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    transition: color 0.3s;
}

.collab-modal-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}


.people-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.people-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.people-details {
    flex-grow: 1;
    text-align: left;
}


.people-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    text-align: left;
    display: block;
}

.people-meta {
    font-size: 14px;
    color: #555;
    margin: 4px 0 0;
}

.people-options {
    font-size: 18px;
    color: #888;
    cursor: pointer;
}







/* Prevent scrolling on the main page when modal is open */
.datasetReport-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */
}

/* Ensure the modal itself allows scrolling */
.datasetReport-modal-container {
    background: #fff;
    width: 33%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: left;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;

}

/* Modal Body */
.datasetReport-modal-body {
    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}

/* Prevent content overflow issues */
.datasetReport-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}


/* Modal Header */
.datasetReport-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px;
    color: #333;
    text-align: center !important;
}


#datasetReportModal #reason {
    width: 100%;
    height: 250px;
    padding: 12px;
    font-size: 16px;
    font-family: "Arial", sans-serif;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease-in-out;
    resize: vertical;
    background: #f9f9f9;
    color: #333;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    /* margin-left: 10px; */
    margin-top: 10px;
}

/* Focus Effect */
#datasetReportModal #reason:focus {
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(76, 175, 80, 0.3);
}

/* Placeholder Styling */
#datasetReportModal #reason::placeholder {
    color: #999;
    font-style: italic;
}


/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 400px) {
    .current-modal-container {
        width: 90%;
    }
}






/* Modal Background Overlay */
.searchProject-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    display: flex;
    /* Flex makes centering easier */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    /* Prevents scrolling outside the modal */

}

/* Modal Container */
.searchProject-modal-container {
    background: #fff;
    width: 33%;
    max-width: 90%;
    min-width: 280px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    max-height: 80vh;
    /* Ensure modal doesn't take full height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensures border-radius applies properly */
    box-sizing: border-box;
    color: #000 !important;
    /* Allows scrolling inside modal */

}

/* Modal Header */
.searchProject-modal-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px;
    color: #333;
    text-align: center;

}

/* Modal Body */

.searchProject-modal-body {

    flex-grow: 1;
    /* Allows the body to expand */
    overflow-y: auto;
    /* Enables scrolling inside modal */
    padding: 10px;
    max-height: 60vh;
    /* Adjust this value as needed */
}

/* Prevent content overflow issues */
.searchProject-modal-container * {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 5px;
    right: 18px;
    font-size: 18pt;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    /* Ensure background is visible */
    line-height: 35px;
    /* Adjust this to match height */
    text-align: center;
}


/* Remove the ::before pseudo-element */

/* Hover Effect */
.close-btn:hover {
    color: #d33;
    background: #ccc;
    border: solid 1px #bbb;
}

.searchProject-modal-container .content {
    border: solid 1px #ccc;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #fff;
    height: 150px;
    overflow-y: auto;

}

.searchProject-modal-body {
    color: #333;
    padding: 20px;
    background-color: #f9f9f9 !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: solid 1px #ccc;
}

.searchProject-modal-body .inner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.searchProject-modal-body .inner-header span {
    font-size: 11pt;
}

.searchProject-modal-body .inner-header span:first-child {
    font-weight: bold;
    color: #555;
}

.searchProject-modal-body .project-date {
    color: #888;
    font-style: italic;
    font-size: 10pt;
}

.searchProject-modal-container .inner-header a {
    color: #000;
    font-size: 11pt;

}

.searchProject-modal-container .inner-header a:hover {
    color: blue !important;
    font-weight: bold !important;
    ;
    cursor: pointer !important;
    ;
    font-size: 11pt !important;
    text-decoration: underline;



}

.searchProject-modal-body p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 11pt;
    text-align: left !important;

}

.searchProject-modal-body span {
    font-size: 11pt;
    font-weight: bold;
    color: #555;
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 4px;
    text-align: left !important;

}

.searchProject-modal-body p:last-child {
    margin-bottom: 0;
}


.searchProject-modal-body .content .member {
    all: initial;
    font-size: 11pt !important;
    font-family: sans-serif;
    display: block;
    padding: 5px 0;

}

.searchProject-modal-body .content .member:hover {
    font-size: 11pt;
    cursor: pointer;
    color: blue;
    text-decoration: underline;

}

.content img,
.profile-image img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
}



.user-link {
    display: inline-block;
    text-decoration: none;
}

.user-link .profile-image,
.user-link .user-name {
    display: inline-block;
    vertical-align: middle;
}



body.modal-open {
    overflow: hidden;
}