﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/font/Vazirmatn.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/font/Vazirmatn-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/font/Vazirmatn-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --app-primary: #46016b;
    --app-primary-hover: #350052;
    --app-primary-rgb: 70, 1, 107;
    --app-secondary: #9464d4;
    --app-secondary-hover: #8050bf;
    --app-secondary-rgb: 148, 100, 212;
    --app-yellow: #c9a954;
    --app-yellow-hover: #b5963e;
    --app-yellow-rgb: 201, 169, 84;
    --bs-primary: var(--app-primary);
    --bs-primary-rgb: var(--app-primary-rgb);
    --bs-secondary: var(--app-secondary);
    --bs-secondary-rgb: var(--app-secondary-rgb);
}



html,
body {
    margin: 0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 10px;
}

* {
    font-family: 'Vazirmatn', sans-serif;
    box-sizing: border-box;
    outline: none;
}

.bg-gray-background {
    background: rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 1;
    display: none;

    &.show {
        display: block;
    }
}

.custom-checkbox {
    .form-check-label {
        display: block;
        margin-bottom: 8px !important;
        color: #343a40;
        font-size: 14px;
        font-weight: 600;

        .text-danger {
            font-size: 13px;
        }
    }

    .form-check-input {
        height: 20px;
        width: 20px;
        margin-left: 10px;
    }
}

.custom-input, .custom-text-area, .custom-dropdown, .persian-date-field {
    width: 100%;
    min-width: 0;

    .form-label {
        display: block;
        margin-bottom: 8px !important;
        color: #343a40;
        font-size: 14px;
        font-weight: 600;

        .text-danger {
            font-size: 13px;
        }
    }

    .form-control, .form-select {
        min-height: 48px;
        padding: 11px 14px;
        border: 1px solid rgba(var(--app-primary-rgb),0.2);
        border-radius: 10px;
        background-color: #fff;
        color: #212529;
        font-family: inherit;
        font-size: 14px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;

        &::placeholder {
            color: #adb5bd;
            opacity: 1;
        }

        &:hover {
            border-color: #c5cbd3;
        }

        &:focus {
            border-color: var(--app-primary);
            background-color: #fff;
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary) 12%, transparent);
            outline: none;
        }

        &.is-invalid {
            border-color: #dc3545;
            background-image: none;
        }

        &:-webkit-autofill,
        &:-webkit-autofill:hover,
        &:-webkit-autofill:focus,
        &:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 1000px rgba(var(--app-primary-rgb), 0.08) inset !important;
            -webkit-text-fill-color: #212529 !important;
            caret-color: #212529;
            transition: background-color 9999s ease-out 0s;
        }

        &:focus:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
        }
    }

    .text-danger.small {
        margin-top: 6px !important;
        font-size: 14px;
        line-height: 1.8;
    }
}

img {
    max-width: 100%;
}

.btn-primary {
    padding: 10px 15px;
    background: var(--app-primary);
    color: #fff;
    border: 1px solid var(--app-primary);
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all .25s ease;

    &:hover {
        color: #fff;
        background: var(--app-primary-hover);
        border-color: var(--app-primary-hover);
        box-shadow: 0 7px 18px rgba(var(--app-primary-rgb), .2);
        transform: translateY(-2px);
    }
}

.btn-yellow {
    padding: 7px 25px;
    background: var(--app-yellow);
    color: black;
    border: 1px solid var(--app-yellow);
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all .25s ease;

    &:hover {
        color: black;
        background: var(--app-yellow-hover);
        border-color: var(--app-yellow-hover);
        box-shadow: 0 7px 18px rgba(var(--app-yellow-rgb), .2);
        transform: translateY(-2px);
    }
}

.btn-outline-primary {
    padding: 10px 25px;
    border: 1px solid var(--app-primary);
    color: var(--app-primary);
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all .25s ease;

    &:hover {
        color: #fff;
        background: var(--app-primary-hover);
        border-color: var(--app-primary-hover);
        box-shadow: 0 7px 18px rgba(var(--app-primary-rgb), .2);
        transform: translateY(-2px);
    }

    &:focus, &:active, &:focus-visible {
        color: #fff;
        background: var(--app-primary-hover) !important;
        border-color: var(--app-primary-hover) !important;
    }
}

.btn-outline-secondary {
    padding: 10px 25px;
    border: 1px solid var(--app-secondary);
    color: var(--app-secondary);
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: all .25s ease;

    &:hover {
        color: #fff;
        background: var(--app-secondary-hover);
        border-color: var(--app-secondary-hover);
        box-shadow: 0 7px 18px rgba(var(--app-secondary-rgb), .2);
        transform: translateY(-2px);
    }

    &:focus, &:active, &:focus-visible {
        color: #fff;
        background: var(--app-secondary-hover) !important;
        border-color: var(--app-secondary-hover) !important;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 30px;
    background: #fff4d7;
    border: 1px solid #f9e5a9;
    color: #936400;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 23px;
}

.autoplay-progress {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary, #fff);
}

/* Circle */

.autoplay-progress-circle {
    right: 16px;
    top: 16px;
    width: 48px;
    height: 48px;
    font-size: 12px;
    font-weight: 700;
}

    .autoplay-progress-circle svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        fill: none;
        transform: rotate(-90deg);
    }

    .autoplay-progress-circle circle {
        stroke: currentColor;
        stroke-width: 4px;
        stroke-linecap: round;
        stroke-dasharray: 125.66;
        stroke-dashoffset: calc(125.66 * (1 - var(--progress, 0)));
        transition: stroke-dashoffset 0.05s linear;
    }

/* Line */

.autoplay-progress-line {
    right: 16px;
    top: 16px;
    left: 16px;
    height: 5px;
}

.autoplay-progress-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 30%);
}

.autoplay-progress-bar {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.05s linear;
}

.autoplay-progress-line span {
    margin-right: 10px;
    white-space: nowrap;
    font-size: 12px;
}

.swiper-button-prev,
.swiper-button-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    background: #fff;
    border: 1px solid rgba(var(--app-primary-rgb), 0.12);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .swiper-button-prev::after,
    .swiper-button-next::after {
        display: none;
    }

    .swiper-button-prev svg,
    .swiper-button-next svg {
        width: 12px;
        height: 20px;
    }

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        color: #fff;
        background: var(--app-primary);
        border-color: var(--app-primary);
        box-shadow: 0 6px 18px rgba(var(--app-primary-rgb), 0.25);
    }

    .swiper-button-prev:active,
    .swiper-button-next:active {
        transform: scale(0.92);
    }

.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
    outline: 2px solid var(--app-secondary);
    outline-offset: 3px;
}

.swiper-button-prev {
    left: 12px;
}

.swiper-button-next {
    right: 12px;
}

@media (min-width: 1600px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1580px;
    }
}
