@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
    --primary: #1C57CD;
    --primary-light: #e0e7ff;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f1f5f9 4%, #e2e8f0 25%, #f1f5f9 36%);
    background-size: 1000px 100%;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Tailwind Custom Utilities */
@layer utilities {
    .text-balance {
        text-wrap: balance;
    }
}

/* Select2 Modern Overrides (Global) */
.select2-container--default .select2-selection--single {
    border: none !important;
    background-color: #f8fafc !important;
    height: 52px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    transition: all 0.2s;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    box-shadow: 0 0 0 2px #e0e7ff !important;
}

.select2-dropdown {
    border: 1px solid #f1f5f9 !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1) !important;
    overflow: hidden !important;
}

.select2-results__option {
    padding: 10px 16px !important;
}

/* Result entry validation highlight */
.has-error {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
    border: 1px solid #ef4444 !important;
}