@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Overrides */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* Tailwind slate-50 */
    color: #0f172a; /* Tailwind slate-900 */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar for a cleaner dashboard look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* -----------------------------------------
   Global AJAX Loader
----------------------------------------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0; /* slate-200 */
    border-top: 4px solid #3b82f6; /* blue-500 - Primary brand color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loader-text {
    font-size: 1rem;
    font-weight: 500;
    color: #475569; /* slate-600 */
    letter-spacing: 0.025em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* -----------------------------------------
   Utility Classes (Bridging gaps if needed)
----------------------------------------- */
.cursor-pointer {
    cursor: pointer;
}

.transition-all-fast {
    transition: all 0.2s ease-in-out;
}