:root {
    --primary-color: #edf2f7;
    --secondary-color: #fafbfc;
    --background-color: #ffff;
    --surface-color: #ffffff;
    --text-secondary: #5e6675;
    --black-color: #23262b;
    --hover: #edefff;
    --white-color: #ffff;
    --bg-default: #ffff;
    --bg-back: #f3f4f6;
    --blue-color: #347fc5;
    --social-icon: #606674;
    --footer-color: #1d6ed1;
    --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    --bg-items: #f8f9fc;
    --border-color: #e0e0e0;
    --warning: #f0ad4e1a;
    --bg-hover-samancoin: #eff6ff;
    --bg-items-tireTar: #e9e8ff;
}

@media (max-width: 1200px) {
    :root {
        --primary-color: #edf2f7;
        --secondary-color: #9ccfec;
        --background-color: #ffff;
        --bg-default: #ffff;
        --footer-color: #1d6ed1;
        --bg-back: #f3f4f6;
        --surface-color: #ffffff;
        --blue-color: #347fc5;
        --text-secondary: #5e6675;
        --social-icon: #606674;
        --black-color: #23262b;
        --hover: #edefff;
        --shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
        --white-color: #ffff;
        --bg-items: #f8f9fc;
        --border-color: #e0e0e0;
        --warning: #f0ad4e1a;
        --bg-hover-samancoin: #eff6ff;
        --bg-items-tireTar: #e9e8ff;
    }
}
/* #3C3C3C */
[data-theme="dark"] {
    --social-icon: #f0f0f0;
    --primary-color: #edf2f7;
    --hover: #30313a;
    --blue-color: #8dc7fd;
    --secondary-color: #2b2b33;
    --bg-default: #212128;
    --background-color: #202425;
    --footer-color: #60a5fa;
    --surface-color: #212128;
    --text-secondary: #ebebeb;
    --bg-back: #2b2b33;
    --black-color: #ffff;
    --shadow: #3f3f3f 0px 0px 6px 0px;
    --white-color: #202425;
    --bg-items: #27282f;
    --border-color: #636363;
    --bg-hover-samancoin: #192ff52d;
    --bg-items-tireTar: #414141;
}

@media (max-width: 1200px) {
    [data-theme="dark"] {
        --social-icon: #f0f0f0;
        --blue-color: #8dc7fd;
        --primary-color: #edf2f7;
        --footer-color: #60a5fa;
        --hover: #30313a;
        --secondary-color: #2b2b33;
        --bg-back: #2b2b33;
        --background-color: #202425;
        --surface-color: #212128;
        --bg-default: #212128;
        --text-secondary: #ebebeb;
        --black-color: #ffff;
        --shadow: #3f3f3f 0px 0px 6px 0px;
        --white-color: #ffff;
        --bg-items: #27282f;
        --border-color: #636363;
        --warning: #ff950015;
        --bg-hover-samancoin: #192ff52d;
        --bg-items-tireTar: #414141;
    }
}

:root {
    --footer-height: 84px;
}

@media (max-width: 780px) {
    :root {
        --footer-height: 107px;
    }
}

@media (max-width: 415px) {
    :root {
        --footer-height: 129px;
    }
}

.pswp__button--download {
    color: white;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}


#notification-info {
    display: none;
    align-items: center;
    justify-content: center;
    gap:5px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 450px;
    z-index: 999;
}

@media (max-width:430px){
    #notification-info {
        left: 0;
        bottom: 0;
        max-width: none;
        text-align: center;
        width:100%;
        border-radius: 10px 10px 0 0;
    }
}
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fa-bullhorn {
    transform: scaleX(-1);
    font-size: 22px;
}

body {
    background: radial-gradient( 60.88% 140.94% at 4.48% 0.84%, rgba(9, 13, 250, 0.267) 0, rgba(0, 143, 255, 0) 53.26% );
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.translate100 {
    transform: translateX(0%) !important;
}

.overflowToggle {
    overflow: hidden !important;
}

/* shadow */
.shadow {
    box-shadow: var(--shadow);
}
/* back ground */
.title {
    margin-top: 5px;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--black-color);
}

.bg-back {
    background-color: var(--bg-back);
}

.bg-default {
    width: 100%;
    background-color: var(--bg-default);
    border-radius: 12px;
    padding: 30px;
}
/* notif */
.scroll-notif {
    overflow-y: scroll;
    max-height: calc(100% - 67px);
}

    .scroll-notif::-webkit-scrollbar {
        height: 6px;
        width: 4px;
    }

    .scroll-notif::-webkit-scrollbar-track {
        border-radius: 5px;
        background-color: var(--bg-default);
    }

    .scroll-notif::-webkit-scrollbar-thumb {
        background-color: var(--border-color);
    }
/*  */
.notification {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999 !important;
    transition: all 0.3s linear;
    left: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background-color: #13131373;
}

    .notification .items {
        height: 100%;
        /* overflow-y: scroll; */
        position: absolute;
        transition: all 0.3s ease;
        left: 0;
        top: 0;
        width: 40%;
        transform: translateX(-100%);
        top: 0;
        left: 0;
        background-color: var(--surface-color);
    }

        .notification .items .header {
            display: flex;
            padding: 20px;
            width: 100%;
            align-items: center;
            justify-content: space-between;
        }

    .notification.show {
        display: block;
        z-index: 999;
        visibility: visible;
        opacity: 1;
        pointer-events: all;
    }

.notif {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    font-size: 14px;
    gap: 10px;
    position: relative;
    color: var(--black-color);
    border-bottom: 1px solid var(--bg-items);
}

    .notif:hover {
        background-color: var(--bg-items);
    }

    .notif:last-child {
        border: none;
    }
/* notif option */
.notif-option {
    position: absolute;
    top: 15px;
    right: -150px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-40px, 10px);
    visibility: hidden;
    font-size: 15px;
    transition: 300ms;
    z-index: 99;
}

    .notif-option.show {
        opacity: 1;
        border-radius: 6px;
        transform: translate(-40px, 0);
        visibility: visible;
    }

    /* notif-option links */

    .notif-option ul {
        position: relative;
        display: flex;
        flex-direction: column;
        z-index: 10;
    }

        .notif-option ul li {
            border-bottom: 1px solid rgb(231, 231, 231);
            list-style: none;
        }

            .notif-option ul li:last-child {
                border: none;
            }

            .notif-option ul li button:hover {
                color: #ff0000;
            }

            .notif-option ul li button {
                text-decoration: none;
                color: #000;
                display: flex;
                color: var(--black-color);
                align-items: center;
                transition: all 0.1s linear;
                padding: 8px 17px;
                gap: 6px;
            }

                .notif-option ul li button svg {
                    margin-bottom: 2px;
                }

footer {
    padding: 30px 320px calc(30px + env(safe-area-inset-bottom)) 20px;
    text-align: center;
    border-top: 1px solid var(--bg-back);
    background-color: var(--bg-default);
    font-size: 15px;
    color: var(--black-color);
}

    footer span {
        color: var(--footer-color);
    }
/* saman coin  */
.saman-coin h3 {
    color: var(--black-color);
}

.saman-coin span {
    color: var(--black-color);
}

.saman-coin svg {
    color: var(--text-secondary);
}
/* drop down ul */
.select-club-services ul {
    z-index: 100 !important;
}
/* social */

/*  */
.notif-number {
    background-color: #f53a3a;
    color: white;
    position: absolute;
    bottom: -7px;
    right: -7px;
    width: 25px;
    height: 25px;
    border-radius: 400px;
    display: flex;
    align-items: center;
    padding-top: 2px;
    padding-right: 1px;
    justify-content: center;
    font-size: 14px;
}

.notif-animation {
    animation: notif-number 1.5s;
}

.notif-read {
    filter: grayscale(100%) opacity(60%);
}

.notif-unread::before {
    content: "جدید";
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 13px;
    padding: 1px 7px;
    border-radius: 1000px;
    color: #fff;
    font-weight: 600;
    background-color: #fa3434;
}

@keyframes notif-number {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.3) rotate(10deg);
    }

    70% {
        transform: scale(1.3) rotate(-10deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.notification-icon {
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.068);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.4s;
    color: #ffff;
}

.support {
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.068);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    font-size: 26px;
    color: #ffff;
}

.openbtn {
    background: rgba(0, 0, 0, 0.068);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    display: none;
}

    .openbtn .openbtn-area {
        transition: all 0.4s;
        width: 50px;
        height: 50px;
    }

    .openbtn span {
        position: absolute;
        background: #fff;
        display: inline-block;
        border-radius: 3px;
        left: 10px;
        height: 3px;
        transition: all 0.4s;
        width: 60%;
    }

        .openbtn span:nth-of-type(1) {
            top: 16px;
        }

        .openbtn span:nth-of-type(2) {
            top: 24px;
        }

        .openbtn span:nth-of-type(3) {
            top: 32px;
        }

    .openbtn.active .openbtn-area {
        transform: rotate(360deg);
    }

    .openbtn.active span:nth-of-type(1) {
        width: 45%;
        top: 18px;
        left: 14px;
        transform: translateY(6px) rotate(-45deg);
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.active span:nth-of-type(3) {
        width: 45%;
        top: 30px;
        left: 14px;
        transform: translateY(-6px) rotate(45deg);
    }

.close-bg {
    background-color: #000000a9;
    width: 80%;
    height: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 998;
}

.nav-link {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: var(--black-color);
}

    .nav-link span {
        margin-top: 4px;
    }

/* sidebar */
.sidebar {
    height: 100%;
    overflow-y: scroll;
    position: fixed;
    width: 300px;
    background-color: var(--surface-color);
    padding: 20px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

    .sidebar::-webkit-scrollbar {
        height: 6px;
        width: 4px;
    }

    .sidebar::-webkit-scrollbar-track {
        border-radius: 5px;
        background-color: var(--background-color);
    }

    .sidebar::-webkit-scrollbar-thumb {
        background-color: #d3d3d3;
    }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.logo {
    width: 50px;
}

.main-content {
    padding: 10px 320px 20px 20px;
    min-height: calc(100vh - var(--footer-height, 84px) - env(safe-area-inset-bottom));
}

/* تنظیم ارتفاع فوتر برای حالت‌های مختلف */
@media (max-width: 780px) {
    .main-content {
        min-height: calc(100vh - var(--footer-height, 107px) - env(safe-area-inset-bottom));
    }
}
@media (max-width: 415px) {
    .main-content {
        min-height: calc(100vh - var(--footer-height, 129px) - env(safe-area-inset-bottom));
    }
}

/* hedear */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px;
    transition: all 0.4s;
    color: var(--black-color);
    border-radius: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    position: relative;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover; 
    image-rendering: crisp-edges; 
    image-rendering: pixelated;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* data time */
.datepicker-plot-area {
    font-family: IRANSansX !important;
}
/* menu (the right one) */

.menu {
    position: absolute;
    top: calc(100% + 24px);
    right: 16px;
    width: 220px;
    /*  min-height: 100px;*/
    background: var(--surface-color);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translate(-40px, 10px);
    visibility: hidden;
    transition: 300ms;
    z-index: 99;
}

    .menu::before {
        content: "";
        position: absolute;
        top: -10px;
        right: 14px;
        width: 20px;
        height: 20px;
        background: var(--background-color);
        transform: rotate(45deg);
        z-index: -1;
    }

    .menu.show {
        opacity: 1;
        border-radius: 6px;
        transform: translate(-40px, 0);
        visibility: visible;
    }

    /* menu links */

    .menu ul {
        position: relative;
        display: flex;
        flex-direction: column;
        z-index: 10;
        padding: 3px 12px;
    }

        .menu ul li {
            transition: all 0.2s linear;
            list-style: none;
        }


            .menu ul li a {
                text-decoration: none;
                color: #000;
                display: flex;
                color: var(--black-color);
                align-items: center;
                padding: 15px 17px;
                gap: 6px;
            }
                .menu ul li a:hover {
                    color: #3A59D1;
                }
            .menu ul li a:last-child {
                color: red !important;
            }
            .menu ul li a i {
                font-size: 1.2em;
            }

/* sub menu */
/*  */
/*  */
/*  */
/*  */
/*  */
/*  */
/*  */
/* sub menu */
.accordion {
    display: flex;
    overflow-y: scroll;
    flex-direction: column;
    margin: 20px 0;
    max-height: calc(100% - 190px);
    gap: 10px;
    padding-left: 10px;
}

    .accordion::-webkit-scrollbar {
        height: 6px;
        width: 4px;
    }

    .accordion::-webkit-scrollbar-track {
        border-radius: 5px;
        background-color: var(--background-color);
    }

    .accordion::-webkit-scrollbar-thumb {
        background-color: #d3d3d3;
    }

    .accordion .accordion-item:last-child {
        border: none;
    }

    .accordion .accordion-item:hover .accordion-title {
        color: var(--black-color);
        transition: 0.2s all linear;
    }

    .accordion .accordion-item button[aria-expanded="true"] .accordion-title {
        color: var(--black-color);
        transition: 0.2s all linear;
    }

    .accordion .accordion-item button[aria-expanded="true"] .icon::before {
        color: var(--black-color);
        transition: 0.2s all linear;
    }

    .accordion button {
        position: relative;
        border-radius: 10px 10px 0 0;
        display: block;
        text-align: right;
        width: 100%;
        padding: 12px;
        font-size: 1.15rem;
        font-weight: 400;
        border: none;
        outline: none;
    }

        .accordion button:hover {
            cursor: pointer;
        }

            .accordion button:hover::after,
            .accordion button:focus::after {
                cursor: pointer;
            }

.accordion-title {
    font-size: 15px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    gap: 6px;
}

    .accordion-title span {
        margin-top: 5px;
    }

.accordion button .icon {
    display: inline-block;
    position: absolute;
    top: 35%;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 22px;
}

    .accordion button .icon::before {
        color: var(--text-secondary);
        display: block;
        position: absolute;
        content: "\f107";
        top: 0px;
        left: 8px;
        font-size: 14px;
        transition: 300ms transform linear;
        font-family: FontAwesome;
    }

.accordion button[aria-expanded="true"] .icon::before {
    transform: rotate(180deg);
}

.accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 300ms;
    padding: 0 15px;
    border-radius: 0 0 15px 15px;
    transition-delay: 0ms;
}

.accordion button[aria-expanded="true"] + .accordion-content {
    max-height: 300px;
    transition-delay: 0ms;
    transition: all 300ms linear;
}

.accordion .accordion-content ul li {
    font-size: 15px;
    color: var(--black-color);
}

.accordion .accordion-content p {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 15px;
    text-align: justify;
    line-height: 30px;
    color: var(--black-color);
}
/* error */
.oaerror {
    width: fit-content;
    background-color: #ffffff;
    padding: 20px;
    border-right-width: 5px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    gap: 8px;
    color: var(--black-color);
}

.warning {
    border-right-color: #f0ad4e;
    background-color: var(--warning);
}

    .warning svg {
        color: #ffaf02;
    }
/* dark mode */
.switch {
    cursor: pointer;
    display: block;
    width: 80px;
    height: 40px;
    top: 30px;
    left: 15px;
    position: absolute;
}

    .switch input {
        display: none;
    }

        .switch input:checked ~ .switch__background {
            background-position: 20% 0%;
        }

            .switch input:checked ~ .switch__background:before {
                opacity: 0.9;
            }

            .switch input:checked ~ .switch__background:after {
                transform: translateY(250%);
                opacity: 0.5;
            }

        .switch input:checked ~ .switch__button {
            left: calc(100% - 5px);
            transform: translateX(-100%);
            transition: 0.2s ease all;
            box-shadow: inset 3px 5px 3px #edf1f9;
            background: #c3c9d2;
        }

            .switch input:checked ~ .switch__button:before {
                content: "";
                display: block;
                position: absolute;
                left: 15px;
                top: 5px;
                height: 9px;
                width: 9px;
                border-radius: 9px;
                background: #949ead;
                box-shadow: inset 2px 1px 1px #848e9b;
            }

            .switch input:checked ~ .switch__button:after {
                content: "";
                display: block;
                position: absolute;
                left: 4px;
                top: 13px;
                height: 12px;
                width: 12px;
                border-radius: 12px;
                background: #949ead;
                box-shadow: inset 2px 2px 2px #848e9b;
            }

.switch__button {
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background: #f1c530;
    position: absolute;
    transition: 0.2s ease all;
    box-shadow: inset 3px 5px 3px #f8a100;
}

.switch__background {
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    background: #808080;
    border-radius: 40px;
    position: relative;
    box-shadow: inset -4px -4px 6px rgba(255, 255, 255, 0.3), inset 4px 4px 6px rgba(70, 70, 70, 0.12);
    background: radial-gradient( circle at center right, #347ab2, #347ab2 10%, #4886b7 10%, #4886b7 20%, #5c93bf 20%, #5c93bf 30%, #699ec6 30%, #699ec6 40%, #494e5c 40%, #494e5c 50%, #404350 50%, #404350 60%, #2d333c 60%, #2d333c 70%, #242830 70%, #242830 80%, #111 80%, #111 90% );
    background-size: 250% 100%;
    background-position: 100% 0%;
    transition: 0.2s ease all;
    overflow: hidden;
}

    .switch__background:before {
        content: "★";
        display: block;
        position: absolute;
        left: 12px;
        top: 8px;
        font-size: 8px;
        color: #ffff;
        opacity: 0;
        transition: 0.2s ease all;
        text-shadow: 10px 10px 0px rgba(255, 255, 255, 0.8), 20px 5px 0px rgba(255, 255, 255, 1);
    }

    .switch__background:after {
        content: "";
        display: block;
        transition: 0.2s ease all;
        position: absolute;
        width: 25px;
        height: 25px;
        left: 5px;
        border-radius: 25px;
        box-shadow: 30px 30px 0px rgba(255, 255, 255, 1), 50px 20px 0px rgba(255, 255, 255, 1), 65px 25px 0px rgba(255, 255, 255, 1), 29px 28px 0px rgba(215, 215, 215, 1), 49px 18px 0px rgba(215, 215, 215, 1), 65px 23px 0px rgba(215, 215, 215, 1);
    }

/* items */
.swal2-title {
    font-size: 24px;
}

.text-title {
    color: var(--black-color);
    font-size: 20px;
}

.text-color-black {
    color: var(--black-color);
}

.text-color-black-hover:hover {
    color: var(--black-color);
}

.text-color-gray {
    color: var(--text-secondary);
}

.bg-backItems {
    background-color: var(--bg-default);
}

.bg-items {
    background-color: var(--bg-items);
}

.bg-default-color {
    background-color: var(--bg-default);
}

.bg-items-tire {
    background-color: var(--bg-items-tireTar);
}

.border-color {
    border-color: var(--border-color);
}

.bg-hover-samancoin:hover {
    background-color: var(--bg-hover-samancoin);
}

@media (min-width: 1200px) {
    .close-bg {
        display: none;
    }
}

@media (max-width: 1200px) {
    .title {
        font-size: 18px;
    }

    .text-title {
        font-size: 18px;
    }

    body {
        background: radial-gradient( 600.88% 100.94% at 6.48% 3.84%, rgba(19, 19, 192, 0.397) 0, rgba(0, 143, 255, 0) 53.26% );
        background-color: var(--secondary-color);
    }

    header {
        color: var(--white-color);
        margin-bottom: 50px;
        position: sticky;
        z-index: 99;
        top: 0;
    }

        header.scrollUp {
            position: sticky;
            top: 0;
            background-color: var(--surface-color);
            color: var(--black-color);
            border-radius: 0px;
            box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
        }

            header.scrollUp .user-icon span {
                color: var(--black-color);
            }

            header.scrollUp .social div {
                color: var(--social-icon);
            }

            header.scrollUp .social .openbtn span {
                background-color: var(--social-icon);
            }

        header.scrollDown {
            transform: translate3d(0, -100%, 0);
        }

    .bg-default {
        width: 92%;
        border-radius: 12px;
        transform: translateY(-20px);
        padding: 15px;
    }

    .openbtn {
        display: block;
    }

    .main-content {
        padding: 10px 20px 20px 20px;
    }

    footer {
        padding: 30px 20px;
    }

    .accordion .accordion-content p {
        font-size: 14px;
    }

    .accordion .accordion-content ul li {
        font-size: 14px;
    }

    .notification .items {
        width: 50%;
    }

    .sidebar {
        position: fixed;
        width: 50%;
        top: 0;
        bottom: 0;
        padding: 10px;
        z-index: 999;
        overflow-y: scroll;
        overflow-x: hidden;
        transform: translateX(100%);
    }

    .main-content {
        padding: 0px;
    }

    .search-bar {
        width: 100%;
        margin-bottom: 10px;
    }

    .user-info {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .notification .items {
        width: 70%;
    }

    .notif {
        padding: 20px 10px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 80%;
    }

    .notification .items {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .social {
        gap: 6px;
    }

    .container {
        margin-top: 140px;
    }

    .switch {
        top: 20px;
    }
}
/* aimation */
