.rounded-span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
}

.link-disabled {
    color: grey;
    cursor: not-allowed;
}

.grid-row {
    cursor: pointer;
}

.loading {
    position: fixed;
    display: none;
    z-index: 1031;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */
.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 1500ms infinite linear;
    -moz-animation: spinner 1500ms infinite linear;
    -ms-animation: spinner 1500ms infinite linear;
    -o-animation: spinner 1500ms infinite linear;
    animation: spinner 1500ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: var(--bs-body-color) 1.5em 0 0 0, var(--bs-body-color) 1.1em 1.1em 0 0,  var(--bs-body-color) 0 1.5em 0 0,  var(--bs-body-color) -1.1em 1.1em 0 0,  var(--bs-body-color) -1.5em 0 0 0,  var(--bs-body-color) -1.1em -1.1em 0 0,  var(--bs-body-color) 0 -1.5em 0 0,  var(--bs-body-color) 1.1em -1.1em 0 0;
    box-shadow: var(--bs-body-color) 1.5em 0 0 0, var(--bs-body-color) 1.1em 1.1em 0 0,  var(--bs-body-color) 0 1.5em 0 0,  var(--bs-body-color) -1.1em 1.1em 0 0,  var(--bs-body-color) -1.5em 0 0 0,  var(--bs-body-color) -1.1em -1.1em 0 0,  var(--bs-body-color) 0 -1.5em 0 0,  var(--bs-body-color) 1.1em -1.1em 0 0;
}

/* Animation */
@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.scroll-container{
    display: flex;
    column-gap: 20px;
}
.scrollbar{
    height: 35rem;
    overflow: auto;
    padding: 0 10px;
}

#scrollbar::-webkit-scrollbar-track{
    border-radius: 8px;
    background-color: #e7e7e7;
    border: 1px solid #cacaca;
    box-shadow: inset 0 0 6px rgba(0,0,0,.3);
}
#scrollbar::-webkit-scrollbar-thumb{
    border-radius: 8px;
    background-color: #363636;
}
.icon-align{
    text-align: center;
}
.grid-extsort-column{
    background-color: var(--bs-body-bg);
}
.grid-group-row{
    background-color: var(--bs-body-bg);
}

.custom-dropdown {
    display: inline-block;
    width: 100%;
}

.custom-dropdown .btn {
    width: 100%;
    text-align: left;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
}

.custom-dropdown .dropdown-menu {
    width: 100%;
}
.custom-dropdown .dropdown-menu li a.selected {
    background-color: #007bff;
    color: #fff;
}

.tabulator .tabulator-header .tabulator-col{
    background-color: transparent !important;
}
.tabulator .tabulator-footer{
    background-color: transparent !important;
    overflow: scroll;
}
#pinned-location-info{
    background-color:transparent !important;
    border: 1px solid #333;
    border-radius: 10px;
}
.tabulator-table{
    background-color: transparent !important;
}
.tabulator-row{
    background-color:transparent !important;
}
.tabulator-row .tabulator-row-even{
    background-color:transparent !important;
}
/*Theme the header*/
#pinned-location-info .tabulator-header {
    background-color:transparent !important;
    color:var(--bs-body-color);
}

.tabulator{
    background-color: transparent !important;
}

.tabulator-row{
    color: var(--bs-body-color);
    background-color: transparent !important;
}

/*Allow column header names to wrap lines*/
#pinned-location-info .tabulator-header .tabulator-col,
#pinned-location-info .tabulator-header .tabulator-col-row-handle {
    white-space: normal;
}

/*Color the table rows*/
#pinned-location-info .tabulator-tableHolder .tabulator-table .tabulator-row{
    color:#fff;
    background-color: transparent !important;
}

/*Color even rows*/
#pinned-location-info .tabulator-tableHolder .tabulator-table .tabulator-row:nth-child(even) {
    background-color: transparent !important;
}
.tabulator .tabulator-footer .tabulator-page.active{
    border-color: var(--bs-theme) !important;
    background-color: var(--bs-theme) !important;
}
.tabulator .tabulator-footer .tabulator-page{
    margin-right: 0.4rem !important;
}

@media (max-width: 768px) {
    #pinned-location-info .tabulator-pagination{
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 1100px) {
    .col-md-7,
    .col-md-5{
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.fs-08rem{
    font-size: 0.8rem;
}

.grid-description{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.disabled{
    color: gray; 
    pointer-events: none; 
    text-decoration: none; 
    cursor: not-allowed;
}

.select2-container--open .select2-dropdown--below,
.select2-container--open .select2-dropdown--above{
    background: var(--bs-body-color);
    color: var(--bs-body-bg);
}

.image-container {
    position: relative;
    display: inline-block;
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
}

.image-container:hover .overlay {
    display: flex;
}

.file-btn {
    padding: 10px;
    margin: 5px;
    color: #fff;
    background-color: #3498db;
    border: none;
    cursor: pointer;
}

.file-btn:hover{
    background-color: #2980b9;
}

.iti__country{
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}
.iti__hignlight{
    background-color: var(--bs-body-bg);
}

.iti__country.iti__highlight{
    background-color: #9a9898 !important;
}

.iti {
    --iti-path-flags-1x: url('/lib/intl-tel-input/build/img/flags.png');
    --iti-path-flags-2x: url('/lib/intl-tel-input/build/img/flags@2x.png');
}

.btn-container{
    position: absolute;
    bottom: 60px;
    right: 10px;
}

.custom-tooltip{
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-radius: 5px;
    border:1px solid
}
.contacts{
    flex: 1;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    padding: 10px;
    max-height: 92vh;
}
.contact-link{
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    margin-bottom: 10px;
}
.contact{
    padding: 1rem;
    background-color: var(--bs-body-bg);
    border-radius: 10px;
    border: 1px solid var(--bs-gray-100);
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}
.contact:hover{
    background-color: #f1f1f1;    
}
.chat-container{
    overflow-y: auto;
    border-radius: 10px;
    height: 100%;
    max-height: 81vh;
}
.menu-img{
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-img .rounded-span{
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    text-align: center;
    font-size: 1.2rem;
}
.contact-name{
    display: flex;
    align-items: center;
}

.date-header{
    width: fit-content;
    margin: 10px auto;
    padding: 5px 10px;
    background-color: #e1e1e1;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}

.widget-chat-message-status{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 5px;
}
.widget-chat-message-status .fa{
    font-size: 16px;
    margin-right: 5px;
}
.widget-chat-message-status .fa-check.sending-check {
    color: gray; 
}

.widget-chat-item.received .widget-chat-message-status .fa-check-double {
    color: grey;
}

.widget-chat-item.seen .widget-chat-message-status .fa-check-double {
    color: blue;
}

.widget-chat-item.sending .widget-chat-message-status .fa-check {
    color: gray;
}

@media (max-width: 768px) {
    .contacts{
        padding: 5px;
    }
    
    .contact{
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
    }
    
    .contact-name{
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contacts{
        max-height: 30rem;
    }
    
    .chat-container{
        max-height: 25rem !important;
    }
    
    .contact{
        padding: 0.5rem;
    }
    
    .contact-name{
        font-size: 0.8rem;
    }
}

.argo-color-compliant{
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg) !important;
}
.w-inherit{
    width: inherit !important;
}
.h-30{
    height: 30vh;
}
.mr-3{
    margin-right: 2vw;
}
.ml-3{
    margin-left: 2vw;
}

.mobile-view {
    display: none;
}

@media only screen and (max-width: 767px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }
}

@media print {
    body {
        font-family: 'Times New Roman', serif;
        color: black;
    }
    header, footer, nav, .no-print {
        display: none;
    }
    .print-container {
        width: 100%;
        margin: 0 auto;
    }
}

.plus-menu {
    position: fixed;
    bottom: 20px;
    right: 30px;
}

.plus-btn {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
    background-color: #007bff;
    color: white;
    cursor: pointer; /* Ensures the cursor is a pointer (hand) */
    position: relative;
    z-index: 2; /* Ensures it's above the menu items */
}

.menu-items {
    position: absolute;
    bottom: 70px; /* Adjusts the position of the menu relative to the button */
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none; /* Prevents clicking when hidden */
    z-index: 1; /* Keeps it behind the plus button */
}

.plus-btn.active + .menu-items {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto; /* Re-enables clicking when visible */
}

.plus-btn.active {
    transform: rotate(45deg);
}
.tag-button {
    position: relative;
    display: inline-block;
}

.delete-bubble {
    cursor: pointer;
    font-size: 0.7rem;
    background-color: rgb(255,0,0);
    position: absolute;
    top: -5px;
    right: -20px; 
    transition: right 0.3s ease-in-out;
    z-index: 1; 
    opacity: 0;
}

.tag-button:hover .delete-bubble {
    right: -9px;
    opacity: 1; 
}

@media (max-width: 768px) {
    hr.d-none{
        display: block !important;
    }
}

#dt-length-0{
    color: var(--bs-body-color) !important;
    background-color: var(--bs-body-bg) !important;
}


.social-media-list {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
}

.social-media-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.social-media-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-color: white;
    border-radius: 5px;
}

.card-footer{
    z-index: 1 !important;
}

.general-alert-container, .gsoc-alert-container{
    display: none;
}

.card.daily-update:hover{
    background-color: rgba(0,0,0,0.5);
    transform: scale(1.02);
}
.card.daily-update{
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 30vh;
    position: relative;
    overflow: hidden;
}

.card.daily-update:hover .card-overlay{
    transform: translateY(-50%);
    opacity: 1;
}

.card-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 20px;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.description{
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.creation-date{
    font-size: 1rem;
}

.card.daily-update:hover .plus-button {
    display: block;
    opacity: 1;
}

.plus-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background-color: #ffffff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.card.daily-update:hover .edit-update-button {
    display: block;
    opacity: 1;
}

.edit-update-button {
    position: absolute;
    top: 2em;
    right: 0.5em;
    transform: translate(-50%, -50%);
    display: none;
    background-color: #798e98;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.image-contained {
    object-fit: contain; 
    width: 100%;  
    max-height: 25vh;
    height: auto;    
}

.partly-deleted {
    opacity: 0.5;
    position: relative;
}

.partly-deleted:hover {
    opacity: 0.7; 
}

.dimmed {
    filter: blur(2px); 
}

.dimmed:hover {
    filter: blur(0); 
}

.partly-deleted .delete-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    display: none; 
}

.partly-deleted:hover .delete-button {
    display: block; 
}
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
}

.fullscreen-overlay-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.fullscreen-control-button {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}
.fullscreen-control-button:hover {
    color: rgba(var(--bs-theme-rgb), 0.75);
}

.fullscreen-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    color: #fff;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.clickable-image:hover {
    transform: scale(1.05); 
}

.profile-pic img{

    border-radius: 50%;
    box-shadow: 0px 0px 5px 0px #c1c1c1;
    cursor: pointer;
    width: 100px;
    height: 100px;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-container:hover .edit-overlay {
    opacity: 1;
}

#edit-button {
    background-color: white;
    color: black;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.modal.modal-static {
    pointer-events: none;
}

.offcanvas.show{
    z-index: 1056;
}
.offcanvas.offcanvas-end {
    width: 600px; 
    max-width: 80%; 
}
.misspelled{
    border-bottom: 2px solid red;
}

.suggestions{
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    z-index: 999;
    padding: 5px;
    width: auto;
    max-width: 200px;
}

.suggestions ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.suggestions li{
    padding: 5px;
    cursor: pointer;
}

.suggestions li:hover{
    background-color: #f0f0f0;
}

#uppy-upload .uppy-Dashboard-files {
    max-height: 400px;
}