/* تعریف فونت وزیرمتن با همه وزن‌ها */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* اعمال فونت به همه چیز با بالاترین اولویت */
*,
*::before,
*::after,
html,
body,
div,
span,
p,
h1, h2, h3, h4, h5, h6,
a, button, input, textarea, select,
label, li, ul, ol, table, td, th,
.btn, .button, .persian-text {
    font-family: 'Vazirmatn', 'Tahoma', 'Segoe UI', 'Arial', sans-serif !important;
}

body {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    min-height: 100vh;
    font-size: 1rem;
    line-height: 1.5;
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.transition-all {
    transition: all 0.3s ease;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Loading Animation Styles */
#global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#global-loader.active {
    opacity: 1;
    pointer-events: all;
}

.loading-box {
    width: 250px;
    height: 100px;
    position: relative;
}

.loading-color {
    background-color: #3395ff;
}

.loading-line {
    width: 10px;
    height: 70px;
    position: absolute;
}

.loading-line-1 {
    left: 0;
    animation: line1 2s infinite ease-in-out;
}

.loading-line-2 {
    right: 0;
    animation: line2 2s infinite ease-in-out;
}

.loading-ball {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    position: absolute;
    animation: ball 2s infinite ease-in-out;
}

@keyframes line1 {
    0%, 100% { top: 0%; }
    50% { top: 40%; }
}

@keyframes line2 {
    0%, 100% { bottom: 0%; }
    50% { bottom: 40%; }
}

@keyframes ball {
    0% { left: 0%; top: 0%; }
    25% { left: 90%; top: 20%; }
    50% { left: 40%; top: 90%; }
    75% { left: 10%; top: 50%; }
    100% { left: 90%; top: 0%; }
}

/* Container classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-8 {
    margin-top: 2rem;
}

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

.text-blue-400 {
    color: #60a5fa;
}

.text-blue-500 {
    color: #3b82f6;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.alert {
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    body {
        font-size: 1.125rem;
    }
    .sm\:py-12 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .loading-box {
        width: 200px;
        height: 80px;
    }
}