﻿@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

.overlay-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1050;
}

.alert-header {
    background-color: var(--background-primary);
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
}

.alert-header h5 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 0;
}

.alert-body {
    padding: 12px 16px;
}

    .alert-body .message {
        color: #444;
        text-align: center;
    }

    .alert-footer {
        padding: 12px 16px;
        display: flex;
        justify-content: center;
    }

.alert-footer .btn-alert {
    border: 0;
    background-color: var(--background-primary);
    color: #fff;
    border-radius: 12px;
    width: 120px;
    height: 42px;
    transition: background-color 0.3s ease-in-out;
}

    .alert-footer .btn-alert:hover {
        background-color: #91186a;
    }

textarea {
    resize: none;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

    textarea:focus-visible {
        outline: unset;
    }

.dropdown-item.active, .dropdown-item:active {
    background-color: inherit;
}

/*--------------------------------------------------------------
# Checkbox
--------------------------------------------------------------*/
.check-container {
    /*display: flex;*/
    /*    align-items: center;
    gap: 35px;*/
    margin-bottom: 24px;
}

.checkbox-wrapper-46 input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

.checkbox-wrapper-46 .cbx-guest {
    margin: auto;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    top: 0;
    width: auto;
    height: auto;
    border: none;
}

    .checkbox-wrapper-46 .cbx-guest .true-box {
        display: inline-block;
        vertical-align: middle;
        transform: translate3d(0, 0, 0);
    }

        .checkbox-wrapper-46 .cbx-guest .true-box:first-child {
            position: relative;
            width: 16px;
            height: 16px;
            border-radius: 3px;
            transform: scale(1);
            vertical-align: middle;
            border: 1px solid #CCC;
            transition: all 0.2s ease;
        }

            .checkbox-wrapper-46 .cbx-guest .true-box:first-child svg {
                position: absolute;
                top: 3px;
                left: 2px;
                fill: none;
                stroke: var(--background-light);
                stroke-width: 2;
                stroke-linecap: round;
                stroke-linejoin: round;
                stroke-dasharray: 16px;
                stroke-dashoffset: 16px;
                transition: all 0.3s ease;
                transition-delay: 0.1s;
                transform: translate3d(0, 0, 0);
            }

            .checkbox-wrapper-46 .cbx-guest .true-box:first-child:before {
                content: "";
                width: 100%;
                height: 100%;
                background: var(--background-primary);
                display: block;
                transform: scale(0);
                opacity: 1;
                border-radius: 50%;
            }

    .checkbox-wrapper-46 .cbx-guest .check-label:last-child {
        padding-left: 8px;
        color: #777;
        font-size: 14px;
    }

.checkbox-wrapper-46 .inp-cbx:checked + .cbx-guest .true-box:first-child {
    background: var(--background-primary);
    border-color: var(--background-primary);
    animation: wave-46 0.4s ease;
}

    .checkbox-wrapper-46 .inp-cbx:checked + .cbx-guest .true-box:first-child svg {
        stroke-dashoffset: 0;
    }

    .checkbox-wrapper-46 .inp-cbx:checked + .cbx-guest .true-box:first-child:before {
        transform: scale(3.5);
        opacity: 0;
        transition: all 0.6s ease;
    }

/*--------------------------------------------------------------
# Others
--------------------------------------------------------------*/
.btn-error {
    margin-top: 2rem;
    display: inline-block;
    padding: 0.75rem;
    background-color: var(--background-primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.btn-error:hover {
    background-color: #91186a;
}

.pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.pagination {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

    .pagination li {
        margin: 0 4px;
    }

    .pagination a {
        display: inline-block;
        padding: 6px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        text-decoration: none;
        color: #444;
        font-size: 0.875rem;
    }

    .pagination .active a {
        background-color: var(--background-primary);
        color: #fff;
        border-color: var(--background-primary);
        pointer-events: none;
    }

    .pagination .disabled a {
        color: #aaa;
        background-color: #f1f1f1;
        border-color: #ddd;
        pointer-events: none;
    }

    .pagination a:hover {
        background-color: #91186a;
        color: #fff;
    }

.pagination-info {
    margin-bottom: 10px;
    font-size: 14px;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/

.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white overlay */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Make sure it's on top of other elements */
}

.preloader {
    --uib-size: 60px;
    --uib-color: var(--background-primary);
    --uib-speed: 1.3s;
    --uib-dot-size: 25%;
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin var(--uib-speed) infinite linear;
}

    .preloader .dot {
        position: absolute;
        left: calc(50% - var(--uib-dot-size) / 2);
        height: 100%;
        width: var(--uib-dot-size);
    }

        .preloader .dot:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            height: 0%;
            width: 100%;
            padding-bottom: 100%;
            background-color: var(--uib-color);
            border-radius: 50%;
            transition: background-color 0.3s ease;
        }

        .preloader .dot:nth-child(1) {
            transform: rotate(120deg);
        }

            .preloader .dot:nth-child(1)::after {
                animation: wobble var(--uib-speed) infinite ease-in-out;
            }

        .preloader .dot:nth-child(2) {
            transform: rotate(-120deg);
        }

            .preloader .dot:nth-child(2)::after {
                animation: wobble var(--uib-speed) infinite ease-in-out;
            }

        .preloader .dot:nth-child(3)::after {
            animation: wobble var(--uib-speed) infinite ease-in-out;
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes wobble {
    0%, 100% {
        transform: translateY(0%);
    }

    50% {
        transform: translateY(65%);
    }
}
