@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-gray-bg);
    color: var(--color-black);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-family);
}

input, select, textarea {
    font-family: var(--font-family);
    outline: none;
    border: none;
}

.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Toast */
.toast {
    position: fixed;
    top: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 1000;
    opacity: 0;
    transition: all var(--transition-base);
    min-width: 350px;
    direction: rtl;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast--success { border: 2px solid var(--color-success); }
.toast--error   { border: 2px solid var(--color-error); }
.toast--info    { border: 2px solid var(--color-info); }

.toast__icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-full);
    display: grid; place-items: center;
    color: #fff;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}
.toast--success .toast__icon { background: var(--color-success); }
.toast--error   .toast__icon { background: var(--color-error); }
.toast--info    .toast__icon { background: var(--color-info); }

.toast__content { flex: 1; }
.toast__title {
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}
.toast__message {
    font-size: var(--font-size-sm);
    color: var(--color-gray-dark);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-gray-bg); }
::-webkit-scrollbar-thumb { background: var(--color-gray-light); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray); }
