:root {
    --umdarkblue: #335596;
    --umlightblue: #E5E9F1;
    --ummiddlelightblue: #c2cee5;
    --bs-border-radius: 20px;
    --bs-border-width: 2px;
    --bs-primary-rgb: 51, 85, 150;
}

main {
    margin: auto;
    display: none;
}

.text-multiline-truncated {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bgUmlightblue-p20-r20, .bg-p20-r20-active, .bg-p20-r20-notready, .bg-p20-r20-error {
    background-color: var(--umlightblue);
    border-radius: 20px;
    padding: 20px;
}

.bg-p20-r20-active {
    background-color: #AFE1AF !important;
}

.bg-p20-r20-notready {
    background-color: gold !important;
}

.bg-p20-r20-error {
    background-color: lightcoral !important;
}

.bg-secondary-linear-gradient {
    background-image: linear-gradient(#E5E9F1, #fff);
}

.bg-success-linear-gradient {
    background-image: linear-gradient(#d1e7dd, #fff);
}

.block-red-fw-600 {
    display: block;
    color: red;
    font-weight: 600;
    padding:0 20px;
    line-height:24px;
}

.lbl-input-file {
    color: black;
    display: inline-block;
    background: var(--umlightblue);
    border: 1px solid lightgrey;
    border-radius: 20px;
    padding: 12px 20px;
    outline: none;
    white-space: nowrap;
    font-weight: 600;
    font-size: 16px;
    width: -moz-fit-content;
    width: fit-content;
}

.lbl-input-file:active {
    background-color:lightgray;
}

input[type=file] {
    display:none;
}

/* The radio-container */
.radio-container {
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
    gap: 5px;
}

/* Hide the browser's default radio button */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark-container {
    position: relative;
    width: 24px;
    height: 24px;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    height: 24px;
    width: 24px;
    background-color: var(--umlightblue);
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio-container:hover input ~ .checkmark-container > .checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.radio-container input:checked ~ .checkmark-container > .checkmark {
    background-color: var(--umdarkblue);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-container input:checked ~ .checkmark-container > .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio-container .checkmark:after {
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* The container */
.check-container {
    display: flex;
    flex-direction: row;
    justify-items: center;
    align-items: center;
    gap: 10px;
    width:fit-content;
}

/* Hide the browser's default checkbox */
.check-container input {
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    display: none;
}

.checkboxmark-container {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Create a custom checkbox */
.checkboxmark {
    position: absolute;
    height: 24px;
    width: 24px;
    background-color: var(--umlightblue);
    border-radius: 8px;
}

/* On mouse-over, add a grey background color */
.check-container:hover input ~ .checkboxmark-container > .checkboxmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked ~ .checkboxmark-container > .checkboxmark {
    background-color: var(--umdarkblue);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkboxmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.check-container input:checked ~ .checkboxmark-container > .checkboxmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.check-container .checkboxmark:after {
    left: 9px;
    top: 4px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.container-sm-width {
    max-width: 578px;
}

.container-mw-640 {
    max-width: 640px;
}

.lbl-disabled {
    opacity: .5 !important;
    pointer-events: none;
}

.profile-image, .profile-image-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--umdarkblue);
    color: var(--umdarkblue);
    opacity: 0.5;
}

.thumb-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: auto;
}

.thumb-item {
    position: relative;
    flex: 0 0 auto;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.thumb-item img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: 12px;
}

.thumb-item-watermark {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 8px;
    border:1px;
    border-radius:10px;
    font-size: 18px;
    color: #FFFFFF99;
    background-color:#00000099;
}

.thumb-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px; /* gap-2 */
    z-index: 10;
}

.fade-in {
    opacity: 0; /* Start hidden */
    animation: fadeIn 1s ease-in forwards; /* 1s duration, adjust as needed */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*************************************************************
    Bootstrap extensions
**************************************************************/

.btn {
    --bs-btn-border-width: 2px !important;
    --bs-btn-border-radius: 20px !important;
    font-weight:600 !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #335596 !important;
    --bs-btn-border-color: #335596 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #335596 !important;
    --bs-btn-hover-border-color: #335596 !important;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #335596 !important;
    --bs-btn-active-border-color: #335596 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #335596 !important;
    --bs-btn-disabled-border-color: #335596 !important;
}

.btn-secondary {
    background-color: #E5E9F1 !important;
}

.btn-secondary {
    --bs-btn-color: black;
    --bs-btn-bg: #E5E9F1 !important;
    --bs-btn-border-color: #E5E9F1 !important;
    --bs-btn-hover-color: black;
    --bs-btn-hover-bg: #E5E9F1 !important;
    --bs-btn-hover-border-color: #E5E9F1 !important;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: black;
    --bs-btn-active-bg: #E5E9F1 !important;
    --bs-btn-active-border-color: #E5E9F1 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #878787 !important;
    --bs-btn-disabled-bg: #E5E9F1 !important;
    --bs-btn-disabled-border-color: #E5E9F1 !important;
}

.btn-outline-primary {
    --bs-btn-color: #335596 !important;
    --bs-btn-border-color: #335596 !important;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #335596 !important;
    --bs-btn-hover-border-color: #335596 !important;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #335596 !important;
    --bs-btn-active-border-color: #335596 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #335596 !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #335596 !important;
    --bs-gradient: none;
}

.btn-outline-secondary {
    --bs-btn-color: black;
    --bs-btn-border-color: #E5E9F1 !important;
    --bs-btn-hover-color: black;
    --bs-btn-hover-bg: #E5E9F1 !important;
    --bs-btn-hover-border-color: #E5E9F1 !important;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: black;
    --bs-btn-active-bg: #E5E9F1 !important;
    --bs-btn-active-border-color: #E5E9F1 !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #E5E9F1 !important;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #E5E9F1 !important;
    --bs-gradient: none;
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: #E5E9F1 !important;
}

.bg-secondary-subtle {
    --bs-bg-opacity: 1;
    background-color: #f2f4f8 !important;
}

.link-primary {
    text-decoration:none !important;
}

/* Custom CSS to stick modal to bottom */
.modal-bottom {
    position: fixed;
    bottom: 0;
    top: auto !important;
    transform: none !important;
    margin: 0;
    width: 100%;
    max-width: none; /* Optional: Makes modal full-width */
}

/*************************************************************
    JQUERY Autocomplete Menu
**************************************************************/

.ui-menu {
    z-index: 2000;
    border-radius: 20px;
    padding:10px;
    margin-top: 5px;
}

.ui-menu-item-wrapper {
    border-radius: 20px !important;
    padding: 5px 10px !important;
    font-weight:600;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    border: 1px solid #c2cee5 !important;
    background: #c2cee5 !important;
    font-weight: 600;
    color: black;
}

.ui-icon-background,.ui-state-active .ui-icon-background {
    border: #c2cee5 !important;
    background-color: #fff
}

/************************
    map css
************************/
#map-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mk-map-view {
    flex-grow: 1;
    min-height: 200px;
}

.annotation-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--umdarkblue);
    border-radius: 50%;
    background-image: linear-gradient(#E5E9F1, #fff);
    color: var(--umdarkblue);
    padding: 2px;
    font-size: 22px;
    width: 48px;
    height: 48px;
}

/* Quill editor */
.ql-editor,
.ql-editor p,
.ql-editor span,
.ql-editor *:focus {
    font-size: 16px !important; /* or 1rem if you prefer rem units */
    line-height: 1.5; /* optional – improves readability */
}