﻿a {
    cursor: pointer;
}


.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: none;
}

    .loader:before {
        content: "";
        position: absolute;
        top: calc(50% - 30px);
        left: calc(50% - 30px);
        border: 6px solid #ffffff;
        border-color: var(--bs-primary) transparent var(--bs-primary) transparent;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: animate-preloader 1.5s linear infinite;
    }

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.navbar {
    position:fixed;
    width:100%;
    z-index: 999;
    background-color: #4AC4F3;
}

@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active {
        color: black;
    }

    .navbar .navbar-nav .nav-item:hover .dropdown-menu {
        margin-top: -1rem;
    }
}

.navbar-brand {
    border: none;
}

.navbar-collapse.show, .navbar-collapse.collapsing {
    position: absolute;
    background: white;
    top: 4rem;
    left: 2rem;
    right: 2rem;
    z-index: 99;
    padding: 1rem;
    border-radius: 15px;
    border: solid 1px #ccc;
}

.navbar .navbar-nav .nav-item:hover .dropdown-menu {
    border: solid 1px #ccc;
}

.advanced-feature-item:hover {
    margin-top: -1rem;
}

.counter {
    font-size: 2.3rem;
    font-weight: 700;
    color: black;
    line-height: 2.5rem;
}

.footer .copyright {
    font-size: .8rem;
}

.footer .btn-social.social-name {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: .5rem;
}

    .footer .btn-social.social-name i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 15px;
        height: 15px;
        font-size: 15px; /* make FA icons same visual scale */
        line-height: 1; /* prevent extra vertical spacing */
        margin-right: 1.5rem;
        flex-shrink: 0; /* prevent squish */
    }

    .footer .btn-social.social-name span {
        color: #858585;
        text-wrap: nowrap;
        transition: .3s;
    }

        .footer .btn-social.social-name span:hover {
            color: white;
            letter-spacing: 1px;
        }

        .footer .btn-social.social-name i img {
            width: 20px;
        }

.btn-action {
    min-width: 80px;
}

.page-container {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 1rem;
}

.page-title {
    font-size: 1.8rem;
}

.form-label {
    font-weight: bold;
}

.form-label.required-field:after {
    content: ' *';
    color: red;
}

.form-control.active:read-only {
    background:none;
}

.form-control-height {
    height: calc(2.25rem + 2px);
    display: flex;
    align-items: center;
}

.field-validation-error {
    color: red;
    margin-left: 1rem;
}

.validation-summary-errors {
    color: red;
    border: solid 1px #f33;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 1rem;
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

.accordion-item {
    background-color: transparent;
}

.accordion-button {
    font-size: 1.2rem;
    font-weight: bold;
}



/*#region DataTable*/
.dt-container {
    position: relative;
    width: 100%;
}

    .dt-container .table.table-hover.dataTable {
        border: solid 1px #cccccc;
        width: 100%;
        cursor: pointer;
        border-collapse: collapse;
    }

    .dt-container .table.table-hover.dataTable thead th {
        font-size: .9rem;
        background-color: var(--bs-primary);
        color: white;
        border-left: solid 1px white;
        vertical-align: middle;
    }

    .dt-container .table.table-hover.dataTable tbody td {
        padding: .7rem;
    }

    .dt-container div.dt-processing {
        background: rgba(230, 230, 230, .3);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: unset;
        margin: 0;
    }

        .dt-container div.dt-processing > div:last-child {
            display: none !important;
        }

        .dt-container div.dt-processing .custom-loader {
            position: relative;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border: 4px solid #aaaaaa;
            border-top: 4px solid #e12664;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1.5s linear infinite;
        }

    .dt-container .dt-info {
        font-size: .8rem;
        margin-top: 1.5rem;
        text-align: left !important;
    }

    .dt-container .dt-paging {
        margin-top: -1.5rem !important;
        display: flex;
        justify-content: flex-end;
    }

.pagination .page-item .page-link {
    border-radius: 50%;
    background: none;
    color: #569fb7;
    border: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 0 !important;
    cursor: pointer;
    font-size: .8rem;
}

    .pagination .page-item .page-link:hover {
        color: white;
        background-color: var(--bs-secondary);
        border: 1px solid var(--bs-secondary);
    }

.pagination .page-item.active .page-link {
    color: white;
    background: var(--bs-secondary);
    border: none !important;
    padding: 5px 12px;
    margin: 0;
}


.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 50%;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #0056b3;
    }

ul.dtr-details {
    width: 100%;
}
/*#endregion dataTable*/

/*#region Upload Box*/

.upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: #999;
    transition: background-color 0.3s;
    position: relative;
    box-sizing: border-box;
}

    .upload-box:hover {
        border-color: var(--bs-secondary);
    }

    .upload-box .instruction {
        padding: 1rem;
    }

    .upload-box .preview {
        display: none;
        position: relative;
        width: 100%;
        height: auto;
    }

    .upload-box .sample {
        display: none;
        position: absolute;
        width: 200px;
        cursor: move;
    }

.upload-box.dragover {
    background-color: #f0f0ff;
}

/*#endregion Upload Box*/


.line-input {
    position: relative;
    display: block;
}

    .line-input .form-control, .line-input .form-select {
        border: none;
        border-bottom: 1px solid #ced4da;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        resize: none;
    }

        .line-input .form-control:focus, .line-input .form-select:focus {
            outline: none;
            border-bottom-color: transparent; /* hide base border when active */
        }

    /* Animated underline on the wrapper */
    .line-input::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--bs-primary);
        transition: width 0.3s ease;
    }

    .line-input:focus-within::after {
        width: 100%;
    }

    .line-input .form-select {
        appearance: auto;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        background-image: var(--bs-form-select-bg-img);
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
        padding: .375rem .375rem;
    }

    .line-input .btn-group {
        width: 100%;
    }

    .line-input .custom-select {
        white-space: normal !important;
        text-align: left !important;
        padding-left: .8rem;
    }




/*#region status*/

.status-scheduled {
    color: #BBBBBB;
}

.status-registration {
    color: #3399FF;
}

.status-registration.ongoing {
    color: #55BBFF;
}

.status-notopen {
    color: #BBBBBB;
}

.status-open {
    color: #00CC00;
}

.status-closed {
    color: #FF00FF;
}

.status-ongoing {
    color: #FF88DD;
}

.status-completed {
    color: #00CC00;
}

.status-registered {
    color: #0000FF;
}

.status-confirmed {
    color: #00CC00;
}

.status-cancelled {
    color: red;
}

.status-noshow {
    color: red;
}

.status-show {
    color: #00CC00;
}

/*#endregion status*/

/*region date picker*/
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background-color: var(--bs-primary);
}
/*endregion date picker*/

.multiselect-native-select .btn-group {
    width: 100%;
}

    .multiselect-native-select .btn-group button {
        text-align: left !important;
    }
