
$primary-colour: #04385c;
$primary-hover-colour: #085c8d;
$danger-colour: #dc3545;
$danger-subtle-colour: #f8d7da;
$danger-emphasis-colour: #58151c;
$secondary-emphasis-colour:red;
$secondary-subtle-colour:red;
$border-color: #dee2e6;
$body-bg :#000;

.bg-primary {
    background-color: $primary-colour !important;
}

.btn {
    &.btn-primary {
        border-color: $primary-colour;
        background-color: $primary-colour;
        transition: background-color 0.3s, border-color 0.3s;
        &:hover {
            border-color: $primary-hover-colour;
            background-color: $primary-hover-colour;
        }
    }

    &.btn-outline-primary {
        color: $primary-colour;
        border-color: $primary-colour;
        transition: background-color 0.3s, border-color 0.3s;
        &:hover {
            color: white;
            border-color: $primary-hover-colour;
            background-color: $primary-hover-colour
        }
        .btn-check:checked + & {
            border-color: $primary-colour;
            background-color: $primary-colour;
        }
    }
}

.venue-description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%
}

.nav-pills {
    .nav-item {
        .nav-link {
            color: $primary-colour;
            &.active {
                color: white;
                background-color: $primary-colour;
                transition: background-color 0.3s;
            }
        }
    }
}

.text-hover-primary {
    transition: color 0.3s;
    &:hover { color: $primary-colour !important; }
}

.tooltip-inner { text-align: left; }

// Width Fit Content
.w-fc { width: fit-content; }
.mw-fc { min-width: fit-content; }
.mxw-fc { max-width: fit-content; }

.hover-fill-secondary {
    background-color: transparent;
    transition: color 0.3s, background-color 0.3s;
    &:hover {
        color: $secondary-emphasis-colour;
        background-color: $secondary-subtle-colour;
    }
}

.hover-fill-danger {
    background-color: transparent;
    transition: color 0.3s, background-color 0.3s;
    &:hover {
        color: $danger-emphasis-colour;
        background-color: $danger-subtle-colour;
    }
}

.hover-fill-primary {
    background-color: transparent;
    transition: color 0.3s, background-color 0.3s;
    &:hover {
        color: white;
        background-color: $primary-hover-colour;
    }
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    line-height: normal;
    &::before,&::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid $border-color;
    }
    &:not(:empty)::before {
        margin-right: .75em;
    }
    &:not(:empty)::after {
        margin-left: .75em;
    }
}

.fluid-hover-zoom {
    transition: 
        .3s transform cubic-bezier(.155,1.105,.295,1.12),
        .3s box-shadow,
        .3s -webkit-transform cubic-bezier(.155,1.105,.295,1.12);
    backface-visibility: hidden;
    &:hover {
        transform: scale(1.035);
    }
}

.dropdown-menu {
    .dropdown-item {
        &:active {
            color: black;
            background-color: #f8f9fa;
        }
    }
}

.venue-textarea {
    resize: none;
    min-height: 152px !important;
}

#newVenuePages .page {
    display: none;
    &.active {
        display: block !important;
    }
}












#webContent {
    margin-left: 80px;
    transition: margin 400ms ease-in-out;

    &.webcontent-collapsed {
        margin-left: 280px !important;
    }
}

#sidebar {

    color: white;
    background-color: #04385c;

    display: flex;
    flex-direction: column;
    flex-shrink: 0;

    position: fixed;
    height: 100%;
    z-index: 3;
    padding: 1rem 0;

    transition: width 400ms ease-in-out;
    overflow: hidden;

    .sidebar-collapse-button {

        display: inline-block;
        color: white;
        border: none;
        background: none;
        transition: transform 200ms ease-in-out;

    }

    &.sidebar-enlarged {
        width: 280px !important;

        .sidebar-collapse-button { transform: rotate(-180deg); }

        a.nav-link {
            text-align: start !important;

            i.bi {
                margin: 0 1rem 0 .5rem !important;
            }

            span.sidebar-item-text {
                display: inline !important;
            }
        }
    }

    &:not(.sidebar-enlarged) {
        width: 80px;
    }

    #sidebar-brand {

        max-width: 120px;
        align-self: center;
        display: flex;
        align-items: center;
        color: inherit;
        text-decoration: none;
        padding: 0 .5rem;

    }

    ul.sidebar-items {

        flex-direction: column;
        margin-bottom: auto;

        li.nav-item {

            a.nav-link {

                color: inherit;
                transition: all 200ms;
                text-align: center;
                white-space: nowrap;
                
                &:hover { background-color: rgba(0, 0, 0, 0.15); }
                
                i.bi {
                    // transition: all 200ms ease-in-out;
                    // margin: 0 auto;   
                }

                span.sidebar-item-text {

                    display: none;

                }

            }

        }

    }

}

.pac-container {
    z-index: 9999 !important;
}

// .card-badge-container {
//     position: relative;

//     .card-badge {
//         aspect-ratio: 1 / 1;

//         height: calc(100% + 20px);

//         position: absolute;
//         top: calc(-30% - 21px);
//         left: -26px;

//         background-color: #04385c;
//         border-bottom: 30px;
//         border-left: 30px;
//         border-right: 30px;

//         transform: rotate(45deg);
//         // -webkit-transform: rotate(45deg);
//     }
// }

// #newVenueTabBtns {

//     // border-radius: 50rem;
//     overflow: hidden;
//     width: fit-content;

//     .nav-item > .nav-link {
//         // border-radius: 1rem !important;

//         color: #04385c;

//         &.active {
//             color: white;
//             background-color: #04385c;
//         }
//     }

// }

.btn-facing-left {
    border-top-left-radius: 1.2rem !important;
    border-bottom-left-radius: 1.2rem !important;
    border-top-right-radius: 0.8rem !important;
    border-bottom-right-radius: 0.8rem !important;
}

.btn-facing-right {
    border-top-left-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
    border-top-right-radius: 1.2rem !important;
    border-bottom-right-radius: 1.2rem !important;
}

// bootstrap md breakpoint
@media (min-width: 768px) {
    #sidebarNavigation {
        height: 100%;

    }
}
@media (max-width: 768px) {
    #venueModal .modal-content > .row:first {
        height: 100%;
        flex: 1;
    }
    #sidebarNavigation {
        border-radius: 0.375rem;
        overflow-y: hidden;
        width: fit-content;
        margin: 0.75rem auto;
        .modal-sidebar .modal-sidebar-btn {
            padding: 0.5rem 1rem !important;
            width: fit-content !important;
        }
    }
        
}


#venueModal .modal-content {
    min-height: 550px;
    overflow: hidden;
    .modal-sidebar {
        display: flex;
        height: 100%;
        padding: 0;
        .modal-sidebar-btn {
            background-color: inherit;
            text-align: inherit;
            border: 0;
            text-decoration: none;
            color: inherit;
            padding: 0.75rem 1.5rem;
            display: block;
            width: 100%;
            transition: background-color 0.15s, color 0.15s;
            &:hover {
                background-color: $primary-hover-colour;
                color: white;
            }
            // &:active {
            //     background-color: $primary-colour;
            //     color: white;
            // }
            &.active {
                background-color: $primary-colour !important;
                color: white !important;
            }
        }
    }
    .tab-content > .active {
        display: flex;
    }
}

#venueModal 

.location-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darkened overlay with 70% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure the overlay is above the map */
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* Light border for the spinner */
    border-top: 4px solid #3498db; /* Blue spinner */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.venue-textarea {
    resize: none;
    min-height: 152px !important;
}

[data-bs-theme="dark"] .group-radio-btns label {
    color: white !important;
}