@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazir/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}    

html, body {
    font-family: "Vazirmatn" !important;
    direction: rtl;
    text-align: right;
    padding: 0;
    margin: 0;
    overflow-x: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: none;
}

::-webkit-scrollbar {
    display: none;
}

*,
.mud-typography,
.mud-button,
.btn,
.card,
input,
select,
textarea,
label,
.modal,
.toast,
.dropdown-item {
    font-family: "Vazirmatn" !important;
}

#startup-loader {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    #startup-loader img {
        width: 140px;
        border-radius: 34px;
        animation: fadeIn 1s ease-in-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #2456ff;
    border-top-color: #f3f3f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #222222;
    margin-top: 15px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 1000px) {
    #new_widget_button {
        display: none !important;
    }
}

#new_widget_button {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #106aff, #0b4fcc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 10px 30px rgba(16,106,255,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    #new_widget_button:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 40px rgba(16,106,255,0.45);
    }

    #new_widget_button svg {
        width: 26px;
        height: 26px;
    }
