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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #1d4ed8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Selection */
::selection {
    background-color: #1d4ed8;
    color: white;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse-slow {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Loading Spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #1d4ed8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glow Effect */
.glow-primary {
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.5);
}

.glow-secondary {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}
/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #1d4ed8, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Shadow */
.navbar-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}
/* Flex layout for horizontal counters */
.horizontal-counters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.counter-card {
    min-width: 250px;
    flex: 1;
}

/* Supabase connection indicator */
.supabase-indicator {
    border: 1px solid rgba(29, 78, 216, 0.3);
    background: rgba(29, 78, 216, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
