@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&family=Inter:wght@300;400;500;700&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #111827;
    background-image: 
        radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.3) 0px, transparent 50%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


[lang="en"], [dir="ltr"] {
    font-family: 'Inter', sans-serif;
}


.glass-effect {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.gradient-border {
    position: relative;
    border-radius: 0.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #353780, #562b80, #1d3f78);
    border-radius: 0.6rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

::-webkit-scrollbar {
    width: 8px; 
    height: 8px; 
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); 
    border-radius: 10px; 
    border: 2px solid rgba(255, 255, 255, 0.1); 
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5); 
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    header .flex {
        margin-bottom: 1rem;
    }
    
    header .space-x-4 {
        margin-top: 1rem;
    }
    
    .glass-effect {
        padding: 1rem;
    }
    
    .notifications-container {
        margin: 0.5rem;
    }
    
    .notification-badge {
        top: -4px;
        right: -4px;
    }
}


@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }
    
    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    h1.text-2xl {
        font-size: 1.25rem;
    }
    
    h2.text-2xl, h2.text-xl {
        font-size: 1.125rem;
    }
    
    .mb-8 {
        margin-bottom: 1rem;
    }
    
    .bg-gradient-to-r {
        padding: 0.375rem 0.75rem;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .glass-effect.rounded-xl.p-4, 
    .glass-effect.rounded-xl.p-5, 
    .glass-effect.rounded-xl.p-6 {
        padding: 0.75rem;
    }
}


@media (max-width: 640px) {
    .space-x-4 {
        margin-right: 0.5rem;
    }
    
    .space-x-3 {
        margin-right: 0.25rem;
    }
    
    .flex.items-center.space-x-4.space-x-reverse {
        gap: 0.5rem;
    }
    
    .py-2.px-4 {
        padding: 0.375rem 0.75rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    
    .grid.gap-6, .grid.gap-4 {
        gap: 0.75rem;
    }
    

    .text-lg, .text-xl {
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    a {
        word-break: break-all;
    }
    
    .text-sm {
        font-size: 0.75rem;
    }
}


@media (max-width: 640px) {
    header .flex.items-center.space-x-4.space-x-reverse {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    header .glass-effect.rounded-full.p-2.px-4 {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .flex.space-x-3.space-x-reverse {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .flex.space-x-3.space-x-reverse a {
        width: 100%;
    }
}
         .language-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #3366cc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-switch:hover {
    background-color: #254e9e;
    transform: scale(1.05);
    text-decoration: none; 
}

.language-switch i {
    font-size: 24px;
}
