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

html, body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.5;
}

/* Readable Typography Safeguards */
table {
    font-size: 0.875rem; /* 14px */
}

/* Ensure table cells don't shrink to microscopic text */
table tbody td {
    font-size: 0.875rem !important; /* 14px */
}

/* Table header text standard */
table thead th {
    font-size: 0.75rem; /* 12px uppercase */
    letter-spacing: 0.05em;
}

/* Global Minimum Size Safeguard: Never allow text to render smaller than 12px */
.text-\[6px\], .text-\[7px\], .text-\[8px\], .text-\[9px\], .text-\[10px\], .text-\[11px\] {
    font-size: 0.75rem !important; /* 12px minimum */
    line-height: 1.15rem !important;
}

/* Ensure inputs, selects, and buttons have readable sizes */
input, select, textarea, button {
    font-family: inherit;
}

.text-readable {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.5;
}

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

.tab-active {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-left: 4px solid #059669 !important;
    font-weight: 700 !important;
}

/* Quick Filter Pills */
.filter-pill {
    transition: all 0.15s ease-in-out;
    user-select: none;
}

.filter-pill:hover {
    transform: translateY(-1px);
}

.filter-pill.active {
    background-color: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px -1px rgba(5, 150, 105, 0.35);
}

.filter-pill.active .pill-count {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.fade-in {
    animation: fadeIn 0.25s ease-in-out;
}

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