﻿@font-face {
    font-family: "iransans";
    src: url("../fonts/IRANSansWeb_Light.woff2") format("woff2");
    src: url("../fonts/IRANSansWeb_Light.woff") format("woff");
}

.captcha-image {
    border-radius: 10px;
}

.align-left-text {
    direction: ltr;
    text-align: left !important
}

.validation-summary-errors ul {
    list-style: none;
}

.loader-wrapper {
    height: 100%;
    width: 100%;
    display: block;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: fixed;
    background-color: #fff;
    z-index: 9999;
    top: 0;
}

    .loader-wrapper .loader {
        position: absolute;
        top: 50%;
        left: 0;
        text-align: center;
        right: 0;
        margin: 0 auto
    }

.text-justify {
    text-align: justify;
}

.label-required:after {
    content: " *";
    color: red;
}

.sidebar .sidebar-header .sidebar-brand {
    font-size: 15px !important;
}

.swal2-toast .swal2-title {
    color: #ffffff !important;
}

.main-wrapper .page-wrapper {
    background: none !important;
}

.slidecaption {
    -webkit-animation-name: spinner;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 2s;
    animation-name: spinner;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 2s;
    -webkit-transform-style: flat;
    -moz-transform-style: flat;
    -ms-transform-style: flat;
    transform-style: flat;
    transform-origin: center center;
}

@-webkit-keyframes spinner {
    from {
        -webkit-transform: rotateY(0deg);
    }

    to {
        -webkit-transform: rotateY(-360deg);
    }
}

@keyframes spinner {
    from {
        -moz-transform: rotateY(0deg);
        -ms-transform: rotateY(0deg);
        transform: rotateY(0deg);
    }

    to {
        -moz-transform: rotateY(-360deg);
        -ms-transform: rotateY(-360deg);
        transform: rotateY(-360deg);
    }
}

.transparent-bg {
    background: linear-gradient( 155deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.50) 100% ) !important;
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255,255,255,0.30);
    border-radius: 16px;
}

.transparent-bg input.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    color: #111827;
    font-weight: 500;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.transparent-bg input.form-control:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.refresh-captcha {
    color: #ffffff;
}

    .refresh-captcha:hover {
        color: #1da1f2;
    }

.auth-page .auth-side-wrapper {
    opacity: 0.8;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 10px !important;
}

.switch-toggle {
    background: #242729;
}

    .switch-toggle input {
        position: absolute;
        opacity: 0;
    }

        .switch-toggle input + label {
            padding: 7px;
            color: #fff;
            cursor: pointer;
        }

        .switch-toggle input[value="na"]:checked + label {
            background: grey;
        }

        .switch-toggle input[value="off"]:checked + label {
            background: red;
        }

        .switch-toggle input[value="on"]:checked + label {
            background-color: green;
        }

.flatpickr-calendar.hasTime .flatpickr-time {
    direction: ltr
}

.flatpickr-calendar {
    direction: rtl !important
}

.bdi {
    text-align: right;
    direction: ltr;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    margin-left: 20px
}

.flatpickr-current-month input.cur-year {
    padding: 0 20px 0 0 !important
}

.flatpickr-current-month .numInputWrapper {
    width: 7ch !important
}

/*Mentor*/
.morabi-effect {
    font-family: 'Vazirmatn', sans-serif; /* فونت فارسی دلخواه */
    background: linear-gradient(270deg, #007bff, #6610f2, #e83e8c);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: morabiGradient 6s ease infinite, morabiGlow 2s ease-in-out infinite alternate;
    position: relative;
}

@keyframes morabiGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes morabiGlow {
    from {
        text-shadow: 0 0 5px rgba(0,123,255,0.6), 0 0 10px rgba(0,123,255,0.4);
    }

    to {
        text-shadow: 0 0 20px rgba(102,16,242,0.8), 0 0 40px rgba(232,62,140,0.6);
    }
}

.shiny-effect {
    font-weight: bold;
    color: #007bff;
    position: relative;
    overflow: hidden;
}

    .shiny-effect::before {
        content: "";
        position: absolute;
        top: 0;
        right: -25%; /* ✅ شروع از سمت راست */
        width: 50%;
        height: 100%;
        background: linear-gradient(-120deg, transparent, rgba(255,255,255,0.7), transparent); /* ✅ برعکس شدن زاویه */
        animation: shine-rtl 2.5s infinite;
    }

@keyframes shine-rtl {
    0% {
        right: -25%; /* شروع بیرون سمت راست */
    }

    100% {
        right: 125%; /* حرکت تا بیرون سمت چپ */
    }
}
