/* Plain CSS only: the Tailwind Play CDN does not process @apply in external stylesheets.
   Values below mirror the Tailwind v3 classes noted in each comment. */

/* px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wide */
.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.table-container { overflow-x: auto; overflow-y: auto; scrollbar-width: thin; }
th, td { white-space: nowrap; padding: 14px 18px; }

/* Sticky Header with Solid Background */
thead th { 
    position: sticky; 
    top: 0; 
    z-index: 10;
    background-color: rgb(243, 244, 246); /* gray-100 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Dark mode header background */
.dark thead th {
    background-color: #1f1f1f; /* between neutral-900 and neutral-800 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure modals are above everything */
#modal, #historyModal {
    z-index: 9999 !important;
}

/* Nav Tabs — text-[13px] font-medium text-gray-400 hover:text-gray-900 transition-colors */
.nav-tab {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-tab:hover { color: #111827; }
.dark .nav-tab { color: #737373; }
.dark .nav-tab:hover { color: #ffffff; }

/* active: text-gray-900 dark:text-white font-semibold */
.nav-tab.active { color: #111827; font-weight: 600; }
.dark .nav-tab.active { color: #ffffff; }

/* Pagination — px-3 py-1.5 border border-gray-200 rounded-md text-sm font-medium text-gray-600 hover:bg-gray-50 disabled:opacity-30 */
.page-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #4b5563;
    transition-property: color, background-color, border-color, opacity;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.page-btn:hover { background-color: #f9fafb; }
.page-btn:disabled { opacity: 0.3; cursor: default; background-color: transparent; }
.dark .page-btn { border-color: #404040; color: #a3a3a3; }
.dark .page-btn:hover { background-color: #262626; }
.dark .page-btn:disabled { background-color: transparent; }

/* active: bg-gray-900 text-white border-gray-900 / dark: bg-gray-100 text-gray-900 border-gray-100 */
.page-btn.active { background-color: #111827; color: #ffffff; border-color: #111827; }
.dark .page-btn.active { background-color: #f5f5f5; color: #171717; border-color: #f5f5f5; }

/* Bound asset chip — bg-gray-100 text-gray-700 px-3 py-1.5 rounded-lg text-xs font-medium flex items-center gap-2 */
.bound-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #374151;
}
.dark .bound-chip { background-color: #262626; color: #d4d4d4; }

/* inline-block px-2 py-0.5 rounded text-xs font-bold uppercase */
.category-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Toast — bottom-right, inverted like the primary button; errors get a red edge */
.toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 10000;
    max-width: 22rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    font-weight: 500;
    background-color: #111827;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(0.5rem);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { border-left: 3px solid #dc2626; }
.dark .toast { background-color: #f5f5f5; color: #171717; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.dark .toast-error { border-left-color: #f87171; }
