/* Fonts: IRANYekan FaNum local */
@font-face {
    font-family: 'IRANYekanFaNum';
    src: url('../fonts/iranyekanwebregularfanum.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanFaNum';
    src: url('../fonts/iranyekanweblightfanum.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanFaNum';
    src: url('../fonts/iranyekanwebmediumfanum.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANYekanFaNum';
    src: url('../fonts/iranyekanwebboldfanum.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base */
:root {
    color-scheme: light dark;
}

html[dir='rtl'] body {
    font-family: IRANYekanFaNum, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* RTL helpers */
.rtl-flip {
    transform: scaleX(-1);
}

/* Transitions */
.transition-base {
    transition: all 0.2s ease-in-out;
}

/* Containers */
.container-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* Toast / messages animation helpers */
.toast-enter {
    transform: translateX(0);
    opacity: 1;
}

.toast-exit {
    transform: translateX(100%);
    opacity: 0;
}