@font-face {
    font-family: "yekan";
    src: url("/fonts/Yekan-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.yekan {
    font-family: "yekan", sans-serif;
}
@font-face {
    font-family: "vazir";
    src: url("/fonts/Vazir.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

.vazir {
    font-family: "vazir", sans-serif;
}

* {
    font-family: "vazir", sans-serif;
}

/* لودر */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-bottom-color: #a855f7;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 0.8s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* اسکرول سایدبار (بادمجانی) */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: #4a2c6d;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #a855f7;
    border-radius: 10px;
}

/* لینک‌های ناوبری در سایدبار تیره */
.nav-link {
    transition: all 0.2s;
    color: #f3e8ff;
}

.nav-link:hover {
    background-color: #5b3c8c;
    color: white;
    padding-right: 0.75rem;
}

/* تنظیمات تب‌بار موبایل */
.mobile-tab-bar {
    backdrop-filter: blur(10px);
}

/* جلوگیری از همپوشانی محتوا با تب‌بار در موبایل */
@media (max-width: 1023px) {
    .pb-safe {
        padding-bottom: 4rem;
    }
}

/* ریسپانسیو: سایدبار فقط در دسکتاپ نمایش داده شود */
@media (max-width: 1023px) {
    .desktop-sidebar {
        display: none;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== LOADER ==================== */
#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 20%, #1e3a8a22, transparent 40%),
        radial-gradient(circle at 80% 80%, #9333ea22, transparent 40%), #020617;
    z-index: 9999;
    transition: 0.6s ease;
}

.loader-complete {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
    animation: fadeUp 0.7s ease;
}

.loader-orb {
    position: relative;
    width: 120px;
    height: 120px;
    margin: auto;
}

.orb-core {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow:
        0 0 40px #3b82f655,
        inset 0 0 20px #ffffff22;
    animation: pulse 2.2s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: #8b5cf6;
    animation: spin 1.2s linear infinite;
}

.loader-title {
    margin-top: 28px;
    font-size: 22px;
    font-family: "Vazir";
    color: white;
    letter-spacing: 0.5px;
}

.loader-progress {
    width: 220px;
    height: 6px;
    background: #ffffff14;
    border-radius: 50px;
    margin: 18px auto;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 50px;
    animation: loading 1.6s infinite;
}

.loader-text {
    color: #94a3b8;
    font-size: 14px;
    font-family: "Vazir";
}
