/**
 * Banker Jack Unified Styles System
 *
 * A comprehensive CSS framework that replaces Tailwind CDN with optimized,
 * consistent bjk-* prefixed utility classes.
 *
 * @version 2.0.0
 */

/* Google Fonts - Roboto Slab for logo */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@800&display=swap');

/* ====================================================================
   CSS Variables & Theming
   ==================================================================== */

:root {
  /* Colors */
  --bjk-green: #d4f4ac;
  --bjk-dark: #1a1a1a;
  --bjk-white: #ffffff;
  
  /* Grays */
  --bjk-gray-50: #f9fafb;
  --bjk-gray-100: #f3f4f6;
  --bjk-gray-200: #e5e7eb;
  --bjk-gray-300: #d1d5db;
  --bjk-gray-400: #9ca3af;
  --bjk-gray-500: #6b7280;
  --bjk-gray-600: #4b5563;
  --bjk-gray-700: #374151;
  --bjk-gray-800: #1f2937;
  --bjk-gray-900: #111827;
  
  /* Semantic Colors */
  --bjk-success: #10b981;
  --bjk-warning: #f59e0b;
  --bjk-error: #ef4444;
  --bjk-info: #3b82f6;
  
  /* Spacing */
  --bjk-space-0: 0;
  --bjk-space-1: 0.25rem;
  --bjk-space-2: 0.5rem;
  --bjk-space-3: 0.75rem;
  --bjk-space-4: 1rem;
  --bjk-space-5: 1.25rem;
  --bjk-space-6: 1.5rem;
  --bjk-space-8: 2rem;
  --bjk-space-10: 2.5rem;
  --bjk-space-12: 3rem;
  --bjk-space-16: 4rem;
  --bjk-space-20: 5rem;
  --bjk-space-24: 6rem;
  --bjk-space-32: 8rem;
  
  /* Font Sizes */
  --bjk-text-xs: 0.75rem;
  --bjk-text-sm: 0.875rem;
  --bjk-text-base: 1rem;
  --bjk-text-lg: 1.125rem;
  --bjk-text-xl: 1.25rem;
  --bjk-text-2xl: 1.5rem;
  --bjk-text-3xl: 1.875rem;
  --bjk-text-4xl: 2.25rem;
  --bjk-text-5xl: 3rem;
  
  /* Border Radius */
  --bjk-radius-none: 0;
  --bjk-radius-sm: 0.125rem;
  --bjk-radius: 0.25rem;
  --bjk-radius-md: 0.375rem;
  --bjk-radius-lg: 0.5rem;
  --bjk-radius-xl: 0.75rem;
  --bjk-radius-2xl: 1rem;
  --bjk-radius-3xl: 1.5rem;
  --bjk-radius-full: 9999px;
  
  /* Shadows */
  --bjk-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --bjk-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --bjk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --bjk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --bjk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --bjk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --bjk-shadow-none: none;
  
  /* Transitions */
  --bjk-transition-fast: 150ms ease;
  --bjk-transition: 200ms ease;
  --bjk-transition-slow: 300ms ease;
  
  /* Z-Index */
  --bjk-z-0: 0;
  --bjk-z-10: 10;
  --bjk-z-20: 20;
  --bjk-z-30: 30;
  --bjk-z-40: 40;
  --bjk-z-50: 50;
  --bjk-z-auto: auto;
}

/* ====================================================================
   Dark Theme Support
   ==================================================================== */

/* Theme-aware CSS variables - extend existing :root */
:root {
  /* Dynamic theme variables - Light mode defaults */
  --bjk-bg-primary: var(--bjk-white);
  --bjk-bg-secondary: var(--bjk-gray-50);
  --bjk-bg-tertiary: var(--bjk-gray-100);
  --bjk-text-primary: var(--bjk-gray-900);
  --bjk-text-secondary: var(--bjk-gray-600);
  --bjk-text-tertiary: var(--bjk-gray-400);
  --bjk-border-color: var(--bjk-gray-200);
  --bjk-border-secondary: var(--bjk-gray-300);

  /* Body gradient color variables - Light mode defaults */
  --bjk-gradient-start: #f0f1f3;
  --bjk-gradient-mid: #f8f9fa;
  --bjk-gradient-end: #ffffff;

  /* Additional theme variables */
  --bjk-error-bg: #fef2f2;
  --bjk-error-border: #fecaca;
  --bjk-error-text: #dc2626;
}

/* Dark theme overrides */
[data-theme="dark"] {
  /* Core theme colors */
  --bjk-bg-primary: #1e1e1e;
  --bjk-bg-secondary: #2d2d2d;
  --bjk-bg-tertiary: #3a3a3a;
  --bjk-text-primary: #e0e0e0;
  --bjk-text-secondary: #b0b0b0;
  --bjk-text-tertiary: #707070;
  --bjk-border-color: #404040;
  --bjk-border-secondary: #4a4a4a;
  --bjk-error-bg: #3a1f1f;
  --bjk-error-border: #7f3333;
  --bjk-error-text: #ff6b6b;

  /* Dark mode gradient colors */
  --bjk-gradient-start: #1a1a1a;
  --bjk-gradient-mid: #1e1e1e;
  --bjk-gradient-end: #2a2a2a;
  
  /* Shadow adjustments for dark mode */
  --bjk-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.2);
  --bjk-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --bjk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --bjk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
  --bjk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  --bjk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.4);
}

/* Utility class overrides for dark mode - Background colors */
[data-theme="dark"] .bjk-bg-white {
  background-color: var(--bjk-bg-secondary) !important;
}

[data-theme="dark"] .bjk-bg-gray-50 {
  background-color: var(--bjk-bg-tertiary) !important;
}

[data-theme="dark"] .bjk-bg-gray-100 {
  background-color: var(--bjk-bg-tertiary) !important;
}

[data-theme="dark"] .bjk-bg-gray-200 {
  background-color: var(--bjk-border-color) !important;
}

/* Utility class overrides for dark mode - Text colors */
[data-theme="dark"] .bjk-text-gray-900 {
  color: var(--bjk-text-primary) !important;
}

[data-theme="dark"] .bjk-text-gray-700 {
  color: var(--bjk-text-secondary) !important;
}

[data-theme="dark"] .bjk-text-gray-600 {
  color: var(--bjk-text-secondary) !important;
}

[data-theme="dark"] .bjk-text-gray-500 {
  color: var(--bjk-text-tertiary) !important;
}

/* Utility class overrides for dark mode - Border colors */
[data-theme="dark"] .bjk-border-gray-300 {
  border-color: var(--bjk-border-color) !important;
}

[data-theme="dark"] .bjk-border-gray-200 {
  border-color: var(--bjk-border-secondary) !important;
}

/* Clerk theme variables - Clerk reads these CSS variables automatically
   See: https://clerk.com/docs/js-frontend/guides/customizing-clerk/appearance-prop/variables */
:root {
  --clerk-color-primary: #3b82f6;
  --clerk-color-text-on-primary-background: #ffffff;
  --clerk-color-background: #ffffff;
  --clerk-color-input-background: #f9fafb;
  --clerk-color-input-text: #111827;
  --clerk-color-text-primary: #111827;
  --clerk-color-text-secondary: #6b7280;
  --clerk-border-radius: 8px;
}

[data-theme="dark"] {
  /* Match Banker Jack dark theme - neutral grays, not slate blues */
  --clerk-color-primary: #d4f4ac;
  --clerk-color-text-on-primary-background: #1a1a1a;
  --clerk-color-background: #2d2d2d;
  --clerk-color-input-background: #3a3a3a;
  --clerk-color-input-text: #e0e0e0;
  --clerk-color-text-primary: #e0e0e0;
  --clerk-color-text-secondary: #b0b0b0;
}

/* Clerk dark mode element overrides - for elements not covered by variables */
[data-theme="dark"] .cl-organizationSwitcherPopoverCard,
[data-theme="dark"] .cl-userButtonPopoverCard {
  background-color: #2d2d2d !important;
  border-color: #404040 !important;
}

[data-theme="dark"] .cl-organizationSwitcherPopoverActionButton,
[data-theme="dark"] .cl-userButtonPopoverActionButton,
[data-theme="dark"] .cl-organizationPreviewMainIdentifier,
[data-theme="dark"] .cl-userPreviewMainIdentifier {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .cl-organizationPreviewSecondaryIdentifier,
[data-theme="dark"] .cl-userPreviewSecondaryIdentifier {
  color: #b0b0b0 !important;
}

/* Manage button and action buttons */
[data-theme="dark"] .cl-organizationSwitcherPopoverActionButton__manageOrganization,
[data-theme="dark"] .cl-button {
  background-color: #3a3a3a !important;
  border-color: #505050 !important;
  color: #e0e0e0 !important;
}

[data-theme="dark"] .cl-organizationSwitcherPopoverActionButton__manageOrganization:hover,
[data-theme="dark"] .cl-button:hover {
  background-color: #4a4a4a !important;
}

/* Create organization and other links */
[data-theme="dark"] .cl-organizationSwitcherPopoverActionButton__createOrganization,
[data-theme="dark"] .cl-footerActionLink {
  color: #d4f4ac !important;
}

/* Organization switcher trigger - match toolbar button height */
.cl-organizationSwitcherTrigger {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
}

[data-theme="dark"] .cl-organizationSwitcherTrigger {
  background-color: transparent !important;
}

[data-theme="dark"] .cl-organizationSwitcherTrigger:hover {
  background-color: #3a3a3a !important;
}

/* Organization list items */
[data-theme="dark"] .cl-organizationSwitcherPreviewButton {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .cl-organizationSwitcherPreviewButton:hover {
  background-color: #3a3a3a !important;
}

/* Icons */
[data-theme="dark"] .cl-organizationSwitcherPopoverActionButtonIcon,
[data-theme="dark"] .cl-userButtonPopoverActionButtonIcon {
  color: #b0b0b0 !important;
}

/* Dividers */
[data-theme="dark"] .cl-dividerLine {
  background-color: #404040 !important;
}

/* UserProfile modal - headers, labels, and text */
/* Remove focus outline from modal close button to prevent focus ring on reopen */
.cl-modalCloseButton:focus {
  outline: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .cl-headerTitle,
[data-theme="dark"] .cl-headerSubtitle,
[data-theme="dark"] .cl-modalContentTitle,
[data-theme="dark"] .cl-modalContentSubtitle {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .cl-formFieldLabel,
[data-theme="dark"] .cl-formFieldHintText,
[data-theme="dark"] .cl-formFieldSuccessText {
  color: #b0b0b0 !important;
}

[data-theme="dark"] .cl-profileSectionTitle,
[data-theme="dark"] .cl-profileSectionTitleText,
[data-theme="dark"] .cl-profileSectionContent {
  color: #e0e0e0 !important;
}

/* Navbar menu items in profile modal */
[data-theme="dark"] .cl-navbarButton,
[data-theme="dark"] .cl-navbarButtonIcon {
  color: #e0e0e0 !important;
}

[data-theme="dark"] .cl-navbarButton:hover {
  background-color: #3a3a3a !important;
}

[data-theme="dark"] .cl-navbarButton[data-active="true"] {
  background-color: #3a3a3a !important;
  color: #d4f4ac !important;
}

/* Modal background */
[data-theme="dark"] .cl-modalContent,
[data-theme="dark"] .cl-card,
[data-theme="dark"] .cl-profilePage {
  background-color: #2d2d2d !important;
}

/* Accordion and list items */
[data-theme="dark"] .cl-accordionTriggerButton,
[data-theme="dark"] .cl-profileSectionPrimaryButton {
  color: #e0e0e0 !important;
  background-color: #3a3a3a !important;
}

[data-theme="dark"] .cl-accordionTriggerButton:hover,
[data-theme="dark"] .cl-profileSectionPrimaryButton:hover {
  background-color: #4a4a4a !important;
}

/* Badge and tag text */
[data-theme="dark"] .cl-badge,
[data-theme="dark"] .cl-tagInputContainer {
  background-color: #3a3a3a !important;
  color: #e0e0e0 !important;
}

/* Organization Profile modal - main title and subtitle */
[data-theme="dark"] .cl-organizationProfile__header,
[data-theme="dark"] .cl-organizationSwitcherTrigger__organizationPreviewTextContainer,
[data-theme="dark"] .cl-organizationPreview__organizationName,
[data-theme="dark"] .cl-organizationProfilePage__start {
  color: #e0e0e0 !important;
}

/* Section labels (Organization Profile, Leave organization, Delete organization) */
[data-theme="dark"] .cl-profileSection__headerTitle,
[data-theme="dark"] .cl-profileSection__headerSubtitle,
[data-theme="dark"] .cl-profileSectionHeader__title,
[data-theme="dark"] .cl-profileSectionHeader__subtitle {
  color: #e0e0e0 !important;
}

/* Non-warning descriptive text in dialogs */
[data-theme="dark"] .cl-modalContent__actionDescription,
[data-theme="dark"] .cl-formButtonReset__label {
  color: #e0e0e0 !important;
}

/* Dialog instruction text (Type "X" below to continue) */
[data-theme="dark"] .cl-formField__hintText,
[data-theme="dark"] .cl-formFieldAction,
[data-theme="dark"] .cl-form__headerTitle,
[data-theme="dark"] .cl-form__headerSubtitle {
  color: #b0b0b0 !important;
}

/* Members table headers */
[data-theme="dark"] .cl-tableHead,
[data-theme="dark"] .cl-th,
[data-theme="dark"] .cl-membersPageInvitationsTable th,
[data-theme="dark"] .cl-dataTable__head {
  color: #b0b0b0 !important;
}

/* Members table cells and content */
[data-theme="dark"] .cl-tableCell,
[data-theme="dark"] .cl-td,
[data-theme="dark"] .cl-userPreview__userIdentifier,
[data-theme="dark"] .cl-dataTable__cell {
  color: #e0e0e0 !important;
}

/* Tab buttons (Members, Invitations) */
[data-theme="dark"] .cl-tabButton,
[data-theme="dark"] .cl-tabListItem {
  color: #b0b0b0 !important;
  background-color: #2d2d2d !important;
}

[data-theme="dark"] .cl-tabButton:hover,
[data-theme="dark"] .cl-tabListItem:hover {
  background-color: #2d2d2d !important;
}

[data-theme="dark"] .cl-tabButton[aria-selected="true"],
[data-theme="dark"] .cl-tabListItem[aria-selected="true"] {
  color: #e0e0e0 !important;
  border-bottom: 2px solid #d4f4ac !important;
}

/* Search input in members list */
[data-theme="dark"] .cl-formFieldInput,
[data-theme="dark"] .cl-input,
[data-theme="dark"] input.cl-formFieldInput {
  background-color: #2a2a2a !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

[data-theme="dark"] .cl-formFieldInput::placeholder,
[data-theme="dark"] .cl-input::placeholder {
  color: #808080 !important;
}

/* Generic text elements in Clerk components */
[data-theme="dark"] .cl-internal-b89lur,
[data-theme="dark"] .cl-internal-1dauvpw,
[data-theme="dark"] [class*="cl-internal-"] {
  color: inherit;
}

/* Ensure all p and span text in Clerk modals is visible */
[data-theme="dark"] .cl-modalContent p,
[data-theme="dark"] .cl-modalContent span:not(.cl-badge),
[data-theme="dark"] .cl-organizationProfile p,
[data-theme="dark"] .cl-organizationProfile span:not(.cl-badge) {
  color: #e0e0e0 !important;
}

/* MUST come after the catch-all above - Danger/warning text stays red */
[data-theme="dark"] .cl-formFieldWarningText,
[data-theme="dark"] .cl-formFieldErrorText,
[data-theme="dark"] .cl-alertText,
[data-theme="dark"] .cl-alert__text,
[data-theme="dark"] .cl-alert__danger {
  color: #ff6b6b !important;
}

/* Danger/destructive BUTTONS should be red */
[data-theme="dark"] .cl-button__danger,
[data-theme="dark"] .cl-button__organizationDanger,
[data-theme="dark"] .cl-profileSectionPrimaryButton__danger,
[data-theme="dark"] .cl-profileSectionPrimaryButton__organizationDanger {
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

[data-theme="dark"] .cl-button__danger:hover,
[data-theme="dark"] .cl-button__organizationDanger:hover,
[data-theme="dark"] .cl-profileSectionPrimaryButton__danger:hover,
[data-theme="dark"] .cl-profileSectionPrimaryButton__organizationDanger:hover {
  background-color: rgba(255, 107, 107, 0.1) !important;
}

/* Danger text (warning paragraphs) */
[data-theme="dark"] p[data-color="danger"] {
  color: #ff6b6b !important;
}

/* Checkbox styling for dark mode - Clerk and Banker Jack checkboxes */
[data-theme="dark"] input.cl-checkbox,
[data-theme="dark"] .bjk-checkbox,
[data-theme="dark"] input[type="checkbox"].bjk-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  background-color: #3a3a3a !important;
  border: 2px solid #d4f4ac !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

[data-theme="dark"] input.cl-checkbox:checked,
[data-theme="dark"] .bjk-checkbox:checked,
[data-theme="dark"] input[type="checkbox"].bjk-checkbox:checked {
  background-color: #d4f4ac !important;
  border-color: #d4f4ac !important;
  /* Dark checkmark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E") !important;
  background-size: 12px 12px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Secondary color text */
[data-theme="dark"] p[data-color="secondary"],
[data-theme="dark"] span[data-color="secondary"],
[data-theme="dark"] [data-color="secondary"] {
  color: #b0b0b0 !important;
}

/* ====================================================================
   Base Reset & Defaults
   ==================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====================================================================
   Anti-FOUC (Flash of Unstyled Content) Protection
   ==================================================================== */

/* Prevent flash of unstyled content - must be early in file */
body {
  visibility: hidden;
  opacity: 0;
}

body.loaded {
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease-out;
}

/* Fallback: ensure body becomes visible after 2 seconds even if JS fails */
@keyframes forceVisible {
  to {
    visibility: visible;
    opacity: 1;
  }
}

/* ====================================================================
   Global Layout & Toolbar Support
   ==================================================================== */

/* Global body styles for all Banker Jack pages - includes Anti-FOUC */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background: var(--bjk-gradient-end); /* Solid color that can transition */
  color: var(--bjk-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Anti-FOUC properties merged from above */
  animation: forceVisible 0s ease-out 2s forwards;
}

/* Gradient overlay that provides the gradient effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    var(--bjk-gradient-start) 0%,
    var(--bjk-gradient-mid) 20%,
    transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* Automatic spacing for pages with banker-jack-toolbar */
body:has(banker-jack-toolbar) {
  padding-top: 56px; /* Standard toolbar height */
}

/* Fallback for browsers without :has() support */
.bjk-toolbar-spacing {
  padding-top: 56px;
}

/* Toolbar-specific layout utilities */
.bjk-toolbar-height { height: 56px; }
.bjk-toolbar-spacing { padding-top: 56px; }
.bjk-toolbar-margin { margin-top: 56px; }

/* ====================================================================
   Toolbar Component - Integrated into BankerJackPage
   ==================================================================== */

/* Main toolbar container */
.bjk-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bjk-bg-primary);
  border-bottom: 1px solid var(--bjk-border-color);
  z-index: 1000;
  font-family: var(--bjk-font-family);
}

.bjk-toolbar-inner {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bjk-space-4);
  padding-right: var(--bjk-space-4);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .bjk-toolbar-inner { max-width: 640px; }
}

@media (min-width: 768px) {
  .bjk-toolbar-inner { max-width: 768px; }
}

@media (min-width: 1024px) {
  .bjk-toolbar-inner { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .bjk-toolbar-inner { max-width: 1280px; }
}

/* Auto body padding for pages with toolbar */
body:has(.bjk-toolbar) {
  padding-top: 56px;
}

/* Left section: logo + breadcrumbs */
.bjk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.bjk-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bjk-logo-img {
  height: 42px;
  width: auto;
}

/* Dark mode: invert logo to green */
[data-theme="dark"] .bjk-logo-img {
  filter: brightness(0) saturate(100%) invert(89%) sepia(19%) saturate(497%) hue-rotate(43deg) brightness(103%) contrast(92%);
}

/* Breadcrumbs */
.bjk-toolbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--bjk-text-secondary);
}

.bjk-breadcrumb-item {
  color: var(--bjk-text-secondary);
}

.bjk-breadcrumb-link {
  text-decoration: none;
  color: var(--bjk-text-secondary);
  transition: color 0.15s ease;
}

.bjk-breadcrumb-link:hover {
  color: var(--bjk-text-primary);
}

.bjk-breadcrumb-current {
  color: var(--bjk-text-primary);
  font-weight: 500;
}

.bjk-breadcrumb-sep {
  color: var(--bjk-text-tertiary);
  margin: 0 2px;
}

/* Right section: controls + auth */
.bjk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toolbar buttons */
.bjk-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--bjk-text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.bjk-toolbar-btn:hover {
  background: var(--bjk-bg-tertiary);
  color: var(--bjk-text-primary);
}

/* Divider between sections */
.bjk-toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--bjk-border-color);
  margin: 0 4px;
}

/* API status indicator */
.bjk-api-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bjk-text-secondary);
  cursor: pointer;
  transition: background 0.15s ease;
}

.bjk-api-status:hover {
  background: var(--bjk-bg-tertiary);
}

.bjk-api-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.bjk-api-dot.bjk-api-pending {
  background: #f59e0b; /* yellow/amber */
  animation: bjk-pulse 1.5s infinite;
}

.bjk-api-dot.bjk-api-connected {
  background: #22c55e; /* green */
}

.bjk-api-dot.bjk-api-disconnected {
  background: #ef4444; /* red */
}

@keyframes bjk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.bjk-api-label {
  display: none;
}

@media (min-width: 640px) {
  .bjk-api-label {
    display: inline;
  }
}

/* Clerk component containers */
.bjk-clerk-component {
  display: flex;
  align-items: center;
}

/* Sign-in button (shown when not authenticated) */
.bjk-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--bjk-green);
  color: var(--bjk-dark);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bjk-signin-btn:hover {
  background: #c5e89a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 244, 172, 0.4);
}

.bjk-signin-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Dark mode sign-in button */
[data-theme="dark"] .bjk-signin-btn {
  background: var(--bjk-green);
  color: var(--bjk-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .bjk-signin-btn:hover {
  background: #e0f7bc;
  box-shadow: 0 4px 16px rgba(212, 244, 172, 0.3);
}

/* Modal overlay - used for session modal and similar modals */
.bjk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

/* Session modal specific container - override generic modal styles */
.bjk-session-modal-container.bjk-modal-container {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--bjk-bg-primary);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  pointer-events: all;
  padding: 0;
}

/* Session modal header */
.bjk-session-modal-container .bjk-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bjk-border-color);
}

.bjk-session-modal-container .bjk-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--bjk-text-primary);
}

.bjk-session-modal-container .bjk-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  color: var(--bjk-text-secondary);
  transition: all 0.15s ease;
}

.bjk-session-modal-container .bjk-modal-close:hover {
  background: var(--bjk-bg-secondary);
  color: var(--bjk-text-primary);
}

/* Session modal body */
.bjk-session-modal-body {
  padding: 24px;
}

/* Session modal table */
.bjk-session-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.bjk-session-table th,
.bjk-session-table td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid var(--bjk-border-color);
}

.bjk-session-table th {
  width: 35%;
  font-weight: 500;
  color: var(--bjk-text-secondary);
}

.bjk-session-table td {
  color: var(--bjk-text-primary);
  word-break: break-all;
}

.bjk-session-table tr:last-child th,
.bjk-session-table tr:last-child td {
  border-bottom: none;
}

.bjk-session-mono {
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  background: var(--bjk-bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

.bjk-session-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bjk-success-light);
  color: var(--bjk-success-color);
}

.bjk-session-role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bjk-bg-secondary);
  color: var(--bjk-text-secondary);
  text-transform: capitalize;
  margin-left: 6px;
}

.bjk-session-not-auth {
  font-size: 16px;
  font-weight: 500;
  color: var(--bjk-text-primary);
  margin: 0 0 8px 0;
}

.bjk-session-hint {
  font-size: 14px;
  color: var(--bjk-text-secondary);
  margin: 0;
}

.bjk-session-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bjk-border-color);
}

/* Copy button with icon transition */
.bjk-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bjk-copy-btn .bjk-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.bjk-copy-btn .bjk-copy-icon,
.bjk-copy-btn .bjk-check-icon {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bjk-copy-btn .bjk-copy-icon {
  opacity: 1;
  transform: scale(1);
}

.bjk-copy-btn .bjk-check-icon {
  opacity: 0;
  transform: scale(0.8);
  color: var(--bjk-success-color, #22c55e);
}

/* Copied state */
.bjk-copy-btn.bjk-copied .bjk-copy-icon {
  opacity: 0;
  transform: scale(0.8);
}

.bjk-copy-btn.bjk-copied .bjk-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* ====================================================================
   Global Scrollbar Styling - Consistent across all pages
   ==================================================================== */

/* Ensure consistent scrollbar behavior */
html {
  scrollbar-gutter: stable; /* Prevents content shift when scrollbar appears */
  overflow-y: auto; /* Always show scrollbar track */
}

/* Webkit browsers (Chrome, Safari, Edge) scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px; /* For horizontal scrollbars */
}

::-webkit-scrollbar-track {
  background: var(--bjk-bg-secondary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--bjk-border-color);
  border-radius: 6px;
  border: 2px solid var(--bjk-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bjk-text-tertiary);
}

::-webkit-scrollbar-thumb:active {
  background: var(--bjk-text-secondary);
}

/* Corner where horizontal and vertical scrollbars meet */
::-webkit-scrollbar-corner {
  background: var(--bjk-bg-secondary);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bjk-border-color) var(--bjk-bg-secondary);
}

/* Dark mode scrollbar adjustments */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bjk-bg-tertiary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--bjk-border-secondary);
  border-color: var(--bjk-bg-tertiary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: var(--bjk-text-tertiary);
}

[data-theme="dark"] ::-webkit-scrollbar-corner {
  background: var(--bjk-bg-tertiary);
}

[data-theme="dark"] * {
  scrollbar-color: var(--bjk-border-secondary) var(--bjk-bg-tertiary);
}

/* ====================================================================
   Display Utilities
   ==================================================================== */

.bjk-block { display: block; }
.bjk-inline-block { display: inline-block; }
.bjk-inline { display: inline; }
.bjk-flex { display: flex; }
.bjk-inline-flex { display: inline-flex; }
.bjk-grid { display: grid; }
.bjk-hidden { display: none; }
.bjk-table { display: table; }
.bjk-table-row { display: table-row; }
.bjk-table-cell { display: table-cell; }

/* ====================================================================
   Flexbox Utilities
   ==================================================================== */

/* Flex Direction */
.bjk-flex-row { flex-direction: row; }
.bjk-flex-row-reverse { flex-direction: row-reverse; }
.bjk-flex-col { flex-direction: column; }
.bjk-flex-col-reverse { flex-direction: column-reverse; }

/* Flex Wrap */
.bjk-flex-wrap { flex-wrap: wrap; }
.bjk-flex-wrap-reverse { flex-wrap: wrap-reverse; }
.bjk-flex-nowrap { flex-wrap: nowrap; }

/* Flex */
.bjk-flex-1 { flex: 1 1 0%; }
.bjk-flex-auto { flex: 1 1 auto; }
.bjk-flex-initial { flex: 0 1 auto; }
.bjk-flex-none { flex: none; }

/* Flex Grow & Shrink */
.bjk-flex-grow { flex-grow: 1; }
.bjk-flex-grow-0 { flex-grow: 0; }
.bjk-flex-shrink { flex-shrink: 1; }
.bjk-flex-shrink-0 { flex-shrink: 0; }

/* Align Items */
.bjk-items-start { align-items: flex-start; }
.bjk-items-end { align-items: flex-end; }
.bjk-items-center { align-items: center; }
.bjk-items-baseline { align-items: baseline; }
.bjk-items-stretch { align-items: stretch; }

/* Align Content */
.bjk-content-start { align-content: flex-start; }
.bjk-content-end { align-content: flex-end; }
.bjk-content-center { align-content: center; }
.bjk-content-between { align-content: space-between; }
.bjk-content-around { align-content: space-around; }
.bjk-content-evenly { align-content: space-evenly; }

/* Align Self */
.bjk-self-auto { align-self: auto; }
.bjk-self-start { align-self: flex-start; }
.bjk-self-end { align-self: flex-end; }
.bjk-self-center { align-self: center; }
.bjk-self-stretch { align-self: stretch; }

/* Justify Content */
.bjk-justify-start { justify-content: flex-start; }
.bjk-justify-end { justify-content: flex-end; }
.bjk-justify-center { justify-content: center; }
.bjk-justify-between { justify-content: space-between; }
.bjk-justify-around { justify-content: space-around; }
.bjk-justify-evenly { justify-content: space-evenly; }

/* Gap */
.bjk-gap-0 { gap: 0; }
.bjk-gap-1 { gap: var(--bjk-space-1); }
.bjk-gap-2 { gap: var(--bjk-space-2); }
.bjk-gap-3 { gap: var(--bjk-space-3); }
.bjk-gap-4 { gap: var(--bjk-space-4); }
.bjk-gap-5 { gap: var(--bjk-space-5); }
.bjk-gap-6 { gap: var(--bjk-space-6); }
.bjk-gap-8 { gap: var(--bjk-space-8); }

/* ====================================================================
   Grid Utilities
   ==================================================================== */

.bjk-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.bjk-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bjk-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bjk-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bjk-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bjk-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bjk-grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Common Grid Layouts */
.bjk-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.bjk-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ====================================================================
   Spacing Utilities
   ==================================================================== */

/* Padding */
.bjk-p-0 { padding: 0; }
.bjk-p-1 { padding: var(--bjk-space-1); }
.bjk-p-2 { padding: var(--bjk-space-2); }
.bjk-p-3 { padding: var(--bjk-space-3); }
.bjk-p-4 { padding: var(--bjk-space-4); }
.bjk-p-5 { padding: var(--bjk-space-5); }
.bjk-p-6 { padding: var(--bjk-space-6); }
.bjk-p-8 { padding: var(--bjk-space-8); }
.bjk-p-10 { padding: var(--bjk-space-10); }
.bjk-p-12 { padding: var(--bjk-space-12); }

/* Padding X/Y */
.bjk-px-0 { padding-left: 0; padding-right: 0; }
.bjk-px-1 { padding-left: var(--bjk-space-1); padding-right: var(--bjk-space-1); }
.bjk-px-2 { padding-left: var(--bjk-space-2); padding-right: var(--bjk-space-2); }
.bjk-px-3 { padding-left: var(--bjk-space-3); padding-right: var(--bjk-space-3); }
.bjk-px-4 { padding-left: var(--bjk-space-4); padding-right: var(--bjk-space-4); }
.bjk-px-5 { padding-left: var(--bjk-space-5); padding-right: var(--bjk-space-5); }
.bjk-px-6 { padding-left: var(--bjk-space-6); padding-right: var(--bjk-space-6); }
.bjk-px-8 { padding-left: var(--bjk-space-8); padding-right: var(--bjk-space-8); }

.bjk-py-0 { padding-top: 0; padding-bottom: 0; }
.bjk-py-1 { padding-top: var(--bjk-space-1); padding-bottom: var(--bjk-space-1); }
.bjk-py-2 { padding-top: var(--bjk-space-2); padding-bottom: var(--bjk-space-2); }
.bjk-py-3 { padding-top: var(--bjk-space-3); padding-bottom: var(--bjk-space-3); }
.bjk-py-4 { padding-top: var(--bjk-space-4); padding-bottom: var(--bjk-space-4); }
.bjk-py-5 { padding-top: var(--bjk-space-5); padding-bottom: var(--bjk-space-5); }
.bjk-py-6 { padding-top: var(--bjk-space-6); padding-bottom: var(--bjk-space-6); }
.bjk-py-8 { padding-top: var(--bjk-space-8); padding-bottom: var(--bjk-space-8); }

/* Padding Individual Sides */
.bjk-pt-0 { padding-top: 0; }
.bjk-pt-1 { padding-top: var(--bjk-space-1); }
.bjk-pt-2 { padding-top: var(--bjk-space-2); }
.bjk-pt-3 { padding-top: var(--bjk-space-3); }
.bjk-pt-4 { padding-top: var(--bjk-space-4); }
.bjk-pt-5 { padding-top: var(--bjk-space-5); }
.bjk-pt-6 { padding-top: var(--bjk-space-6); }
.bjk-pt-8 { padding-top: var(--bjk-space-8); }

.bjk-pr-0 { padding-right: 0; }
.bjk-pr-1 { padding-right: var(--bjk-space-1); }
.bjk-pr-2 { padding-right: var(--bjk-space-2); }
.bjk-pr-3 { padding-right: var(--bjk-space-3); }
.bjk-pr-4 { padding-right: var(--bjk-space-4); }

.bjk-pb-0 { padding-bottom: 0; }
.bjk-pb-1 { padding-bottom: var(--bjk-space-1); }
.bjk-pb-2 { padding-bottom: var(--bjk-space-2); }
.bjk-pb-3 { padding-bottom: var(--bjk-space-3); }
.bjk-pb-4 { padding-bottom: var(--bjk-space-4); }

.bjk-pl-0 { padding-left: 0; }
.bjk-pl-1 { padding-left: var(--bjk-space-1); }
.bjk-pl-2 { padding-left: var(--bjk-space-2); }
.bjk-pl-3 { padding-left: var(--bjk-space-3); }
.bjk-pl-4 { padding-left: var(--bjk-space-4); }

/* Margin */
.bjk-m-0 { margin: 0; }
.bjk-m-1 { margin: var(--bjk-space-1); }
.bjk-m-2 { margin: var(--bjk-space-2); }
.bjk-m-3 { margin: var(--bjk-space-3); }
.bjk-m-4 { margin: var(--bjk-space-4); }
.bjk-m-5 { margin: var(--bjk-space-5); }
.bjk-m-6 { margin: var(--bjk-space-6); }
.bjk-m-8 { margin: var(--bjk-space-8); }
.bjk-m-auto { margin: auto; }

/* Margin X/Y */
.bjk-mx-0 { margin-left: 0; margin-right: 0; }
.bjk-mx-1 { margin-left: var(--bjk-space-1); margin-right: var(--bjk-space-1); }
.bjk-mx-2 { margin-left: var(--bjk-space-2); margin-right: var(--bjk-space-2); }
.bjk-mx-3 { margin-left: var(--bjk-space-3); margin-right: var(--bjk-space-3); }
.bjk-mx-4 { margin-left: var(--bjk-space-4); margin-right: var(--bjk-space-4); }
.bjk-mx-auto { margin-left: auto; margin-right: auto; }

.bjk-my-0 { margin-top: 0; margin-bottom: 0; }
.bjk-my-1 { margin-top: var(--bjk-space-1); margin-bottom: var(--bjk-space-1); }
.bjk-my-2 { margin-top: var(--bjk-space-2); margin-bottom: var(--bjk-space-2); }
.bjk-my-3 { margin-top: var(--bjk-space-3); margin-bottom: var(--bjk-space-3); }
.bjk-my-4 { margin-top: var(--bjk-space-4); margin-bottom: var(--bjk-space-4); }
.bjk-my-5 { margin-top: var(--bjk-space-5); margin-bottom: var(--bjk-space-5); }
.bjk-my-6 { margin-top: var(--bjk-space-6); margin-bottom: var(--bjk-space-6); }
.bjk-my-8 { margin-top: var(--bjk-space-8); margin-bottom: var(--bjk-space-8); }

/* Margin Individual Sides */
.bjk-mt-0 { margin-top: 0; }
.bjk-mt-1 { margin-top: var(--bjk-space-1); }
.bjk-mt-2 { margin-top: var(--bjk-space-2); }
.bjk-mt-3 { margin-top: var(--bjk-space-3); }
.bjk-mt-4 { margin-top: var(--bjk-space-4); }
.bjk-mt-5 { margin-top: var(--bjk-space-5); }
.bjk-mt-6 { margin-top: var(--bjk-space-6); }
.bjk-mt-8 { margin-top: var(--bjk-space-8); }

.bjk-mr-0 { margin-right: 0; }
.bjk-mr-1 { margin-right: var(--bjk-space-1); }
.bjk-mr-2 { margin-right: var(--bjk-space-2); }
.bjk-mr-3 { margin-right: var(--bjk-space-3); }
.bjk-mr-4 { margin-right: var(--bjk-space-4); }

.bjk-mb-0 { margin-bottom: 0; }
.bjk-mb-1 { margin-bottom: var(--bjk-space-1); }
.bjk-mb-2 { margin-bottom: var(--bjk-space-2); }
.bjk-mb-3 { margin-bottom: var(--bjk-space-3); }
.bjk-mb-4 { margin-bottom: var(--bjk-space-4); }
.bjk-mb-5 { margin-bottom: var(--bjk-space-5); }
.bjk-mb-6 { margin-bottom: var(--bjk-space-6); }
.bjk-mb-8 { margin-bottom: var(--bjk-space-8); }

.bjk-ml-0 { margin-left: 0; }
.bjk-ml-1 { margin-left: var(--bjk-space-1); }
.bjk-ml-2 { margin-left: var(--bjk-space-2); }
.bjk-ml-3 { margin-left: var(--bjk-space-3); }
.bjk-ml-4 { margin-left: var(--bjk-space-4); }

/* Space Between (for flex/grid children) */
.bjk-space-x-1 > * + * { margin-left: var(--bjk-space-1); }
.bjk-space-x-2 > * + * { margin-left: var(--bjk-space-2); }
.bjk-space-x-3 > * + * { margin-left: var(--bjk-space-3); }
.bjk-space-x-4 > * + * { margin-left: var(--bjk-space-4); }

.bjk-space-y-1 > * + * { margin-top: var(--bjk-space-1); }
.bjk-space-y-2 > * + * { margin-top: var(--bjk-space-2); }
.bjk-space-y-3 > * + * { margin-top: var(--bjk-space-3); }
.bjk-space-y-4 > * + * { margin-top: var(--bjk-space-4); }
.bjk-space-y-6 > * + * { margin-top: var(--bjk-space-6); }

/* ====================================================================
   Sizing Utilities
   ==================================================================== */

/* Width - Essential utilities only */
.bjk-w-auto { width: auto; }
.bjk-w-full { width: 100%; }
.bjk-w-screen { width: 100vw; }
.bjk-w-min { width: min-content; }
.bjk-w-max { width: max-content; }
.bjk-w-fit { width: fit-content; }

/* Percentage Widths */
.bjk-w-1\/2 { width: 50%; }
.bjk-w-1\/3 { width: 33.333333%; }
.bjk-w-2\/3 { width: 66.666667%; }
.bjk-w-1\/4 { width: 25%; }
.bjk-w-3\/4 { width: 75%; }
.bjk-w-1\/5 { width: 20%; }
.bjk-w-2\/5 { width: 40%; }
.bjk-w-3\/5 { width: 60%; }
.bjk-w-4\/5 { width: 80%; }

/* Height - Essential utilities only */
.bjk-h-auto { height: auto; }
.bjk-h-full { height: 100%; }
.bjk-h-screen { height: 100vh; }

/* Min/Max Width */
.bjk-min-w-0 { min-width: 0; }
.bjk-min-w-full { min-width: 100%; }
.bjk-max-w-none { max-width: none; }
.bjk-max-w-xs { max-width: 20rem; }
.bjk-max-w-sm { max-width: 24rem; }
.bjk-max-w-md { max-width: 28rem; }
.bjk-max-w-lg { max-width: 32rem; }
.bjk-max-w-xl { max-width: 36rem; }
.bjk-max-w-2xl { max-width: 42rem; }
.bjk-max-w-3xl { max-width: 48rem; }
.bjk-max-w-4xl { max-width: 56rem; }
.bjk-max-w-5xl { max-width: 64rem; }
.bjk-max-w-6xl { max-width: 72rem; }
.bjk-max-w-7xl { max-width: 80rem; }
.bjk-max-w-full { max-width: 100%; }

/* Min/Max Height */
.bjk-min-h-0 { min-height: 0; }
.bjk-min-h-full { min-height: 100%; }
.bjk-min-h-screen { min-height: 100vh; }
.bjk-max-h-full { max-height: 100%; }
.bjk-max-h-screen { max-height: 100vh; }

/* ====================================================================
   Typography Utilities
   ==================================================================== */

/* Font Family */
.bjk-font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.bjk-font-serif { font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }
.bjk-font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; }

/* Font Size */
.bjk-text-xs { font-size: var(--bjk-text-xs); line-height: 1rem; }
.bjk-text-sm { font-size: var(--bjk-text-sm); line-height: 1.25rem; }
.bjk-text-base { font-size: var(--bjk-text-base); line-height: 1.5rem; }
.bjk-text-lg { font-size: var(--bjk-text-lg); line-height: 1.75rem; }
.bjk-text-xl { font-size: var(--bjk-text-xl); line-height: 1.75rem; }
.bjk-text-2xl { font-size: var(--bjk-text-2xl); line-height: 2rem; }
.bjk-text-3xl { font-size: var(--bjk-text-3xl); line-height: 2.25rem; }
.bjk-text-4xl { font-size: var(--bjk-text-4xl); line-height: 2.5rem; }
.bjk-text-5xl { font-size: var(--bjk-text-5xl); line-height: 1; }

/* Font Weight */
.bjk-font-thin { font-weight: 100; }
.bjk-font-extralight { font-weight: 200; }
.bjk-font-light { font-weight: 300; }
.bjk-font-normal { font-weight: 400; }
.bjk-font-medium { font-weight: 500; }
.bjk-font-semibold { font-weight: 600; }
.bjk-font-bold { font-weight: 700; }
.bjk-font-extrabold { font-weight: 800; }
.bjk-font-black { font-weight: 900; }

/* Font Style */
.bjk-italic { font-style: italic; }
.bjk-not-italic { font-style: normal; }

/* Letter Spacing */
.bjk-tracking-tighter { letter-spacing: -0.05em; }
.bjk-tracking-tight { letter-spacing: -0.025em; }
.bjk-tracking-normal { letter-spacing: 0; }
.bjk-tracking-wide { letter-spacing: 0.025em; }
.bjk-tracking-wider { letter-spacing: 0.05em; }
.bjk-tracking-widest { letter-spacing: 0.1em; }

/* Line Height */
.bjk-leading-none { line-height: 1; }
.bjk-leading-tight { line-height: 1.25; }
.bjk-leading-snug { line-height: 1.375; }
.bjk-leading-normal { line-height: 1.5; }
.bjk-leading-relaxed { line-height: 1.625; }
.bjk-leading-loose { line-height: 2; }

/* Text Alignment */
.bjk-text-left { text-align: left; }
.bjk-text-center { text-align: center; }
.bjk-text-right { text-align: right; }
.bjk-text-justify { text-align: justify; }

/* Text Color */
.bjk-text-white { color: var(--bjk-white); }
.bjk-text-black { color: #000000; }
.bjk-text-green { color: var(--bjk-green); }
.bjk-text-dark { color: var(--bjk-dark); }
.bjk-text-banker-dark { color: var(--bjk-dark); }
.bjk-text-gray-50 { color: var(--bjk-gray-50); }
.bjk-text-gray-100 { color: var(--bjk-gray-100); }
.bjk-text-gray-200 { color: var(--bjk-gray-200); }
.bjk-text-gray-300 { color: var(--bjk-gray-300); }
.bjk-text-gray-400 { color: var(--bjk-gray-400); }
.bjk-text-gray-500 { color: var(--bjk-gray-500); }
.bjk-text-gray-600 { color: var(--bjk-gray-600); }
.bjk-text-gray-700 { color: var(--bjk-gray-700); }
.bjk-text-gray-800 { color: var(--bjk-gray-800); }
.bjk-text-gray-900 { color: var(--bjk-gray-900); }
.bjk-text-success { color: var(--bjk-success); }
.bjk-text-warning { color: var(--bjk-warning); }
.bjk-text-error { color: var(--bjk-error); }
.bjk-text-info { color: var(--bjk-info); }

/* Text Decoration */
.bjk-underline { text-decoration: underline; }
.bjk-line-through { text-decoration: line-through; }
.bjk-no-underline { text-decoration: none; }

/* Text Transform */
.bjk-uppercase { text-transform: uppercase; }
.bjk-lowercase { text-transform: lowercase; }
.bjk-capitalize { text-transform: capitalize; }
.bjk-normal-case { text-transform: none; }

/* Text Overflow */
.bjk-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====================================================================
   Background Utilities
   ==================================================================== */

.bjk-bg-transparent { background-color: transparent; }
.bjk-bg-white { background-color: var(--bjk-white); }
.bjk-bg-black { background-color: #000000; }
.bjk-bg-green { background-color: var(--bjk-green); }
.bjk-bg-dark { background-color: var(--bjk-dark); }
.bjk-bg-gray-50 { background-color: var(--bjk-gray-50); }
.bjk-bg-gray-100 { background-color: var(--bjk-gray-100); }
.bjk-bg-gray-200 { background-color: var(--bjk-gray-200); }
.bjk-bg-gray-300 { background-color: var(--bjk-gray-300); }
.bjk-bg-gray-400 { background-color: var(--bjk-gray-400); }
.bjk-bg-gray-500 { background-color: var(--bjk-gray-500); }
.bjk-bg-gray-600 { background-color: var(--bjk-gray-600); }
.bjk-bg-gray-700 { background-color: var(--bjk-gray-700); }
.bjk-bg-gray-800 { background-color: var(--bjk-gray-800); }
.bjk-bg-gray-900 { background-color: var(--bjk-gray-900); }
.bjk-bg-success { background-color: var(--bjk-success); }
.bjk-bg-warning { background-color: var(--bjk-warning); }
.bjk-bg-error { background-color: var(--bjk-error); }
.bjk-bg-info { background-color: var(--bjk-info); }

/* ====================================================================
   Border Utilities
   ==================================================================== */

/* Border Width */
.bjk-border { border-width: 1px; }
.bjk-border-0 { border-width: 0; }
.bjk-border-2 { border-width: 2px; }
.bjk-border-4 { border-width: 4px; }
.bjk-border-8 { border-width: 8px; }

/* Border Individual Sides */
.bjk-border-t { border-top-width: 1px; }
.bjk-border-r { border-right-width: 1px; }
.bjk-border-b { border-bottom-width: 1px; }
.bjk-border-l { border-left-width: 1px; }

/* Border Style */
.bjk-border-solid { border-style: solid; }
.bjk-border-dashed { border-style: dashed; }
.bjk-border-dotted { border-style: dotted; }
.bjk-border-none { border-style: none; }

/* Border Color */
.bjk-border-transparent { border-color: transparent; }
.bjk-border-white { border-color: var(--bjk-white); }
.bjk-border-black { border-color: #000000; }
.bjk-border-green { border-color: var(--bjk-green); }
.bjk-border-dark { border-color: var(--bjk-dark); }
.bjk-border-gray-50 { border-color: var(--bjk-gray-50); }
.bjk-border-gray-100 { border-color: var(--bjk-gray-100); }
.bjk-border-gray-200 { border-color: var(--bjk-gray-200); }
.bjk-border-gray-300 { border-color: var(--bjk-gray-300); }
.bjk-border-gray-400 { border-color: var(--bjk-gray-400); }
.bjk-border-gray-500 { border-color: var(--bjk-gray-500); }
.bjk-border-gray-600 { border-color: var(--bjk-gray-600); }
.bjk-border-gray-700 { border-color: var(--bjk-gray-700); }
.bjk-border-gray-800 { border-color: var(--bjk-gray-800); }
.bjk-border-gray-900 { border-color: var(--bjk-gray-900); }
.bjk-border-success { border-color: var(--bjk-success); }
.bjk-border-warning { border-color: var(--bjk-warning); }
.bjk-border-error { border-color: var(--bjk-error); }
.bjk-border-info { border-color: var(--bjk-info); }

/* Border Radius */
.bjk-rounded-none { border-radius: var(--bjk-radius-none); }
.bjk-rounded-sm { border-radius: var(--bjk-radius-sm); }
.bjk-rounded { border-radius: var(--bjk-radius); }
.bjk-rounded-md { border-radius: var(--bjk-radius-md); }
.bjk-rounded-lg { border-radius: var(--bjk-radius-lg); }
.bjk-rounded-xl { border-radius: var(--bjk-radius-xl); }
.bjk-rounded-2xl { border-radius: var(--bjk-radius-2xl); }
.bjk-rounded-3xl { border-radius: var(--bjk-radius-3xl); }
.bjk-rounded-full { border-radius: var(--bjk-radius-full); }

/* ====================================================================
   Shadow Utilities
   ==================================================================== */

.bjk-shadow-none { box-shadow: var(--bjk-shadow-none); }
.bjk-shadow-sm { box-shadow: var(--bjk-shadow-sm); }
.bjk-shadow { box-shadow: var(--bjk-shadow); }
.bjk-shadow-md { box-shadow: var(--bjk-shadow-md); }
.bjk-shadow-lg { box-shadow: var(--bjk-shadow-lg); }
.bjk-shadow-xl { box-shadow: var(--bjk-shadow-xl); }
.bjk-shadow-2xl { box-shadow: var(--bjk-shadow-2xl); }

/* ====================================================================
   Position Utilities
   ==================================================================== */

.bjk-static { position: static; }
.bjk-fixed { position: fixed; }
.bjk-absolute { position: absolute; }
.bjk-relative { position: relative; }
.bjk-sticky { position: sticky; }

/* Position Values */
.bjk-top-0 { top: 0; }
.bjk-right-0 { right: 0; }
.bjk-bottom-0 { bottom: 0; }
.bjk-left-0 { left: 0; }
.bjk-inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bjk-inset-x-0 { left: 0; right: 0; }
.bjk-inset-y-0 { top: 0; bottom: 0; }

/* Z-Index */
.bjk-z-0 { z-index: var(--bjk-z-0); }
.bjk-z-10 { z-index: var(--bjk-z-10); }
.bjk-z-20 { z-index: var(--bjk-z-20); }
.bjk-z-30 { z-index: var(--bjk-z-30); }
.bjk-z-40 { z-index: var(--bjk-z-40); }
.bjk-z-50 { z-index: var(--bjk-z-50); }
.bjk-z-auto { z-index: var(--bjk-z-auto); }

/* ====================================================================
   Overflow Utilities
   ==================================================================== */

.bjk-overflow-auto { overflow: auto; }
.bjk-overflow-hidden { overflow: hidden; }
.bjk-overflow-visible { overflow: visible; }
.bjk-overflow-scroll { overflow: scroll; }
.bjk-overflow-x-auto { overflow-x: auto; }
.bjk-overflow-y-auto { overflow-y: auto; }
.bjk-overflow-x-hidden { overflow-x: hidden; }
.bjk-overflow-y-hidden { overflow-y: hidden; }
.bjk-overflow-x-scroll { overflow-x: scroll; }
.bjk-overflow-y-scroll { overflow-y: scroll; }

/* ====================================================================
   Opacity Utilities
   ==================================================================== */

.bjk-opacity-0 { opacity: 0; }
.bjk-opacity-25 { opacity: 0.25; }
.bjk-opacity-50 { opacity: 0.5; }
.bjk-opacity-75 { opacity: 0.75; }
.bjk-opacity-100 { opacity: 1; }

/* ====================================================================
   Cursor Utilities
   ==================================================================== */

.bjk-cursor-auto { cursor: auto; }
.bjk-cursor-default { cursor: default; }
.bjk-cursor-pointer { cursor: pointer; }
.bjk-cursor-wait { cursor: wait; }
.bjk-cursor-text { cursor: text; }
.bjk-cursor-move { cursor: move; }
.bjk-cursor-not-allowed { cursor: not-allowed; }

/* ====================================================================
   Select Utilities
   ==================================================================== */

.bjk-select-none { user-select: none; }
.bjk-select-text { user-select: text; }
.bjk-select-all { user-select: all; }
.bjk-select-auto { user-select: auto; }

/* ====================================================================
   Transition Utilities
   ==================================================================== */

.bjk-transition-none { transition: none; }
.bjk-transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--bjk-transition);
}
.bjk-transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--bjk-transition);
}
.bjk-transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--bjk-transition);
}
.bjk-transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--bjk-transition);
}
.bjk-transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--bjk-transition);
}
.bjk-transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: var(--bjk-transition);
}

/* Duration - Essential values only */
.bjk-duration-200 { transition-duration: 200ms; }
.bjk-duration-300 { transition-duration: 300ms; }
.bjk-duration-500 { transition-duration: 500ms; }

/* ====================================================================
   Transform Utilities
   ==================================================================== */

/* Transform - Essential utilities */
.bjk-scale-95 { transform: scale(0.95); }
.bjk-scale-100 { transform: scale(1); }
.bjk-scale-105 { transform: scale(1.05); }
.bjk-scale-110 { transform: scale(1.1); }

.bjk-rotate-90 { transform: rotate(90deg); }
.bjk-rotate-180 { transform: rotate(180deg); }

.bjk-translate-x-full { transform: translateX(100%); }
.bjk-translate-y-full { transform: translateY(100%); }
.bjk--translate-x-full { transform: translateX(-100%); }
.bjk--translate-y-full { transform: translateY(-100%); }

/* ====================================================================
   Hover States (prefix with hover:)
   ==================================================================== */

.bjk-hover\:bg-gray-50:hover { background-color: var(--bjk-gray-50); }
.bjk-hover\:bg-gray-100:hover { background-color: var(--bjk-gray-100); }
.bjk-hover\:bg-gray-200:hover { background-color: var(--bjk-gray-200); }
.bjk-hover\:bg-green:hover { background-color: var(--bjk-green); }
.bjk-hover\:bg-dark:hover { background-color: var(--bjk-dark); }

.bjk-hover\:text-green:hover { color: var(--bjk-green); }
.bjk-hover\:text-dark:hover { color: var(--bjk-dark); }
.bjk-hover\:text-gray-700:hover { color: var(--bjk-gray-700); }
.bjk-hover\:text-gray-900:hover { color: var(--bjk-gray-900); }

.bjk-hover\:shadow-md:hover { box-shadow: var(--bjk-shadow-md); }
.bjk-hover\:shadow-lg:hover { box-shadow: var(--bjk-shadow-lg); }

.bjk-hover\:scale-105:hover { transform: scale(1.05); }
.bjk-hover\:scale-110:hover { transform: scale(1.1); }

.bjk-hover\:opacity-75:hover { opacity: 0.75; }
.bjk-hover\:opacity-50:hover { opacity: 0.5; }

/* ====================================================================
   Focus States (prefix with focus:)
   ==================================================================== */

.bjk-focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.bjk-focus\:ring:focus { box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.5); }
.bjk-focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(212, 244, 172, 0.5); }
.bjk-focus\:ring-4:focus { box-shadow: 0 0 0 4px rgba(212, 244, 172, 0.5); }
.bjk-focus\:border-green:focus { border-color: var(--bjk-green); }
.bjk-focus\:ring-green:focus { box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.5); }
.bjk-focus\:ring-success:focus { box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.5); }
.bjk-focus\:ring-dark:focus { box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2); }
.bjk-focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(212, 244, 172, 0.5); }
.bjk-focus\:border-transparent:focus { border-color: transparent; }

/* Radio button focus states */
input[type="radio"].focus\:ring-banker-green:focus {
  box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.5);
  outline: none;
}
input[type="radio"].bjk-text-dark {
  accent-color: var(--bjk-dark);
}

/* ====================================================================
   Responsive Utilities (Mobile First)
   ==================================================================== */

/* Small devices (640px and up) */
@media (min-width: 640px) {
  .bjk-sm\:block { display: block; }
  .bjk-sm\:inline-block { display: inline-block; }
  .bjk-sm\:flex { display: flex; }
  .bjk-sm\:hidden { display: none; }
  .bjk-sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bjk-sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bjk-sm\:flex-row { flex-direction: row; }
  .bjk-sm\:flex-col { flex-direction: column; }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
  .bjk-md\:block { display: block; }
  .bjk-md\:inline-block { display: inline-block; }
  .bjk-md\:flex { display: flex; }
  .bjk-md\:hidden { display: none; }
  .bjk-md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bjk-md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bjk-md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bjk-md\:flex-row { flex-direction: row; }
  .bjk-md\:flex-col { flex-direction: column; }
  .bjk-md\:p-6 { padding: var(--bjk-space-6); }
  .bjk-md\:p-8 { padding: var(--bjk-space-8); }
}

/* Large devices (1024px and up) */
@media (min-width: 1024px) {
  .bjk-lg\:block { display: block; }
  .bjk-lg\:inline-block { display: inline-block; }
  .bjk-lg\:flex { display: flex; }
  .bjk-lg\:hidden { display: none; }
  .bjk-lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bjk-lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bjk-lg\:flex-row { flex-direction: row; }
}

/* Extra large devices (1280px and up) */
@media (min-width: 1280px) {
  .bjk-xl\:block { display: block; }
  .bjk-xl\:hidden { display: none; }
  .bjk-xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bjk-xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ====================================================================
   Component Classes (Composed Utilities)
   ==================================================================== */

/* Buttons */
.bjk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bjk-space-2) var(--bjk-space-4);
  font-weight: 500;
  font-size: var(--bjk-text-sm);
  line-height: 1.25rem;
  border-radius: var(--bjk-radius-lg);
  transition: all var(--bjk-transition);
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}

.bjk-btn-primary {
  background-color: var(--bjk-green);
  color: var(--bjk-dark);
  border-color: var(--bjk-green);
}

.bjk-btn-primary:hover {
  background-color: #c4e49c;
  border-color: #c4e49c;
}

.bjk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bjk-gray-200);
  color: var(--bjk-gray-700);
  border: 1px solid var(--bjk-gray-300);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  
  /* Shadow for depth */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  /* Transform base state */
  transform: translateY(0) scale(1);
  
  /* Smooth cubic-bezier transition */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bjk-btn-secondary:hover {
  background-color: var(--bjk-gray-300);
  border-color: var(--bjk-gray-400);
  
  /* Enhanced shadow depth */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  
  /* Lift and scale effect */
  transform: translateY(-1px) scale(1.02);
}

/* Active/pressed state */
.bjk-btn-secondary:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease;
}

/* Focus state for accessibility */
.bjk-btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2), 
              0 2px 8px rgba(0, 0, 0, 0.08);
}

.bjk-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bjk-error);
  color: white;
  border: 1px solid var(--bjk-error);
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  
  /* Shadow for depth with red tint */
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
  
  /* Transform base state */
  transform: translateY(0) scale(1);
  
  /* Smooth cubic-bezier transition */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bjk-btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  
  /* Enhanced shadow depth with red tint */
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  
  /* Lift and scale effect */
  transform: translateY(-1px) scale(1.02);
}

/* Active/pressed state */
.bjk-btn-danger:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.2);
  transition: transform 0.1s ease;
}

/* Focus state for accessibility */
.bjk-btn-danger:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 
              0 2px 8px rgba(239, 68, 68, 0.15);
}

/* Outline variant buttons */
.bjk-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--bjk-gray-700);
  border: 1px solid var(--bjk-gray-300);
  font-weight: 500;
  transition: all var(--bjk-transition);
}

.bjk-btn-outline:hover {
  background-color: var(--bjk-gray-50);
  border-color: var(--bjk-gray-400);
}

.bjk-btn-outline-primary {
  color: var(--bjk-green);
  border-color: var(--bjk-green);
}

.bjk-btn-outline-primary:hover {
  background-color: rgba(212, 244, 172, 0.1);
  border-color: #c4e49c;
}

.bjk-btn-outline-danger {
  color: var(--bjk-error);
  border-color: var(--bjk-error);
}

.bjk-btn-outline-danger:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: #dc2626;
}

/* Ghost variant buttons (minimal styling) */
.bjk-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--bjk-gray-600);
  border: none;
  font-weight: 500;
  transition: all var(--bjk-transition);
}

.bjk-btn-ghost:hover {
  background-color: var(--bjk-gray-100);
  color: var(--bjk-gray-900);
}

/* ====================================================================
   Primary Action Buttons - Enhanced with Effects
   ==================================================================== */

/* Primary Action Button - Black with Green Text (Banker Jack Signature) */
.bjk-btn-action {
  /* Base styling */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 0.5rem;
  cursor: pointer;
  
  /* Enhanced gradient background */
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: var(--bjk-green);
  
  /* Shadow for depth */
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
  
  /* Transform base state */
  transform: translateY(0) scale(1);
  
  /* Smooth cubic-bezier transition */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state with subtle effects */
.bjk-btn-action:hover {
  /* Shifted gradient */
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);

  /* Subtle shadow depth */
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.25);

  /* Gentle lift and scale effect */
  transform: translateY(-1px) scale(1.02);
}

/* Active/pressed state */
.bjk-btn-action:active {
  /* Slight press down effect */
  transform: translateY(0) scale(1.01);
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.25);
  transition: transform 0.1s ease;
}

/* Focus state for accessibility */
.bjk-btn-action:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.3), 
              0 4px 15px rgba(26, 26, 26, 0.2);
}

/* Disabled state */
.bjk-btn-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bjk-btn-action:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.2);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Dark theme enhancements */
[data-theme="dark"] .bjk-btn-action {
  /* Lighter gradient for dark backgrounds */
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  
  /* Adjusted shadow for dark mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .bjk-btn-action:hover {
  /* Shifted gradient for dark mode */
  background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);

  /* Subtle shadow with green glow effect on hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4),
              0 0 15px rgba(212, 244, 172, 0.1);

  /* Gentle lift and scale effect */
  transform: translateY(-1px) scale(1.02);
}

[data-theme="dark"] .bjk-btn-action:focus {
  box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.4),
              0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Size variants */
.bjk-btn-action-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.bjk-btn-action-md {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.bjk-btn-action-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Full width variant */
.bjk-btn-action-full {
  width: 100%;
}

/* Cards */
.bjk-card {
  background-color: white;
  border-radius: var(--bjk-radius-lg);
  box-shadow: var(--bjk-shadow);
  padding: var(--bjk-space-6);
}

.bjk-card-header {
  margin-bottom: var(--bjk-space-4);
  padding-bottom: var(--bjk-space-4);
  border-bottom: 1px solid var(--bjk-gray-200);
}

.bjk-card-body {
  padding: var(--bjk-space-4) 0;
}

.bjk-card-footer {
  margin-top: var(--bjk-space-4);
  padding-top: var(--bjk-space-4);
  border-top: 1px solid var(--bjk-gray-200);
}

/* Forms */
.bjk-input {
  display: block;
  width: 100%;
  padding: var(--bjk-space-2) var(--bjk-space-3);
  font-size: var(--bjk-text-base);
  line-height: 1.5rem;
  color: var(--bjk-gray-900);
  background-color: white;
  border: 1px solid var(--bjk-gray-300);
  border-radius: var(--bjk-radius-md);
  transition: border-color var(--bjk-transition), box-shadow var(--bjk-transition);
}

.bjk-input:focus {
  outline: none;
  border-color: var(--bjk-green);
  box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.1);
}

.bjk-label {
  display: block;
  margin-bottom: var(--bjk-space-2);
  font-size: var(--bjk-text-sm);
  font-weight: 500;
  color: var(--bjk-gray-700);
}

.bjk-form-group {
  margin-bottom: var(--bjk-space-4);
}

/* Alerts */
.bjk-alert {
  padding: var(--bjk-space-4);
  border-radius: var(--bjk-radius-lg);
  margin-bottom: var(--bjk-space-4);
}

.bjk-alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.bjk-alert-warning {
  background-color: #fed7aa;
  color: #92400e;
  border: 1px solid #fdba74;
}

.bjk-alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bjk-alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Page Container - Main content area with consistent layout and spacing */
.bjk-page-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bjk-space-4);
  padding-right: var(--bjk-space-4);
  padding-top: 40px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .bjk-page-container { max-width: 640px; }
}

@media (min-width: 768px) {
  .bjk-page-container { max-width: 768px; }
}

@media (min-width: 1024px) {
  .bjk-page-container { max-width: 1024px; }
}

@media (min-width: 1280px) {
  .bjk-page-container { max-width: 1280px; }
}

/* Spinner */
@keyframes bjk-spin {
  to { transform: rotate(360deg); }
}

.bjk-spinner {
  width: var(--bjk-space-8);
  height: var(--bjk-space-8);
  border: 3px solid var(--bjk-gray-200);
  border-top-color: var(--bjk-green);
  border-radius: 50%;
  animation: bjk-spin 1s linear infinite;
}

/* Badge */
.bjk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  font-size: var(--bjk-text-xs);
  font-weight: 400;
  line-height: 1rem;
  border-radius: var(--bjk-radius-full);
}

.bjk-badge-green {
  background-color: var(--bjk-green);
  color: var(--bjk-dark);
}

.bjk-badge-gray {
  background-color: var(--bjk-gray-200);
  color: var(--bjk-gray-700);
}

.bjk-badge-red {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Divider */
.bjk-divider {
  height: 0;
  border-top: 1px solid var(--bjk-gray-200);
  margin: var(--bjk-space-4) 0;
}

.bjk-divider-vertical {
  width: 0;
  border-left: 1px solid var(--bjk-gray-200);
  margin: 0 var(--bjk-space-4);
  height: 100%;
}

/* ====================================================================
   Animations (Consolidated)
   ==================================================================== */


@keyframes bjk-slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes bjk-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bjk-fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

@keyframes bjk-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes bjk-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes bjk-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bjk-slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Animation utility classes */
.slide-up,
.slide-up-delay-1,
.slide-up-delay-2 {
  opacity: 0;
  transform: translateY(20px);
}

body.loaded .slide-up {
  animation: bjk-slideUp 0.6s ease-out forwards;
}

body.loaded .slide-up-delay-1 {
  animation: bjk-slideUp 0.6s ease-out 0.1s forwards;
}

body.loaded .slide-up-delay-2 {
  animation: bjk-slideUp 0.6s ease-out 0.2s forwards;
}

/* Animation utility classes */
.bjk-fade-in {
  animation: bjk-fadeIn 0.3s ease-out;
}

.bjk-slide-in {
  animation: bjk-slideIn 0.3s ease-out;
}

/* List styling */
.bjk-list-none {
  list-style: none;
  list-style-type: none;
}

/* ====================================================================
   Main Content Management
   ==================================================================== */

.bjk-main-content {
    display: block;
}

/* ====================================================================
   Page Loading & Anti-FOUC (Flash of Unstyled Content)
   ==================================================================== */

/* Hide body until styles and scripts load to prevent flicker */
.bjk-body-loading {
    visibility: hidden;
    opacity: 0;
}

/* Show body with smooth fade-in when loaded */
.bjk-body-loaded {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.6s ease-out;
}

/* Faster loading transition for quick pages */
.bjk-body-loaded.bjk-fast-load {
    transition: opacity 0.3s ease-out;
}

/* Slower loading transition for complex pages */
.bjk-body-loaded.bjk-slow-load {
    transition: opacity 0.8s ease-out;
}

/* Note: bjk-fade-in animation already exists in this file at line 1316 */

/* ====================================================================
   Print Utilities
   ==================================================================== */

@media print {
  .bjk-no-print { display: none !important; }
  .bjk-print-only { display: block !important; }
}

/* Default hide print-only elements */
.bjk-print-only { display: none; }

/* ====================================================================
   Modal Styles
   ==================================================================== */

/* Modal styles - Consolidated with bjk-modal components below */

/* Auth Modal Styles - Theme-aware auth guard screens */
.bjk-auth-modal-overlay {
  background: linear-gradient(180deg,
    var(--bjk-gradient-start, #f9fafb) 0%,
    var(--bjk-gradient-mid, #f3f4f6) 20%,
    var(--bjk-gradient-end, #ffffff) 100%);
}

.bjk-auth-modal-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 3rem;
  text-align: center;
  max-width: 28rem;
}

/* Primary action button - maintains Banker Jack signature style
   Used for auth pages, auth modals, and other primary CTAs */
.bjk-btn-primary-action {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #d4f4ac;
  border: 1px solid rgba(212, 244, 172, 0.2);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  cursor: pointer;
  box-shadow:
    0 4px 15px rgba(26, 26, 26, 0.2),
    0 0 30px rgba(212, 244, 172, 0.15),
    inset 0 1px 0 rgba(212, 244, 172, 0.1);
  transform: translateY(0) scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient animation overlay */
.bjk-btn-primary-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 244, 172, 0.1),
    transparent
  );
  transition: left 0.8s ease;
}

.bjk-btn-primary-action:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  border-color: rgba(212, 244, 172, 0.4);
  color: #e4ffbc;
  box-shadow:
    0 6px 20px rgba(26, 26, 26, 0.25),
    0 0 40px rgba(212, 244, 172, 0.25),
    inset 0 1px 0 rgba(212, 244, 172, 0.2);
  transform: translateY(-1px) scale(1.02);
}

.bjk-btn-primary-action:hover::before {
  left: 100%;
}

.bjk-btn-primary-action:active {
  transform: translateY(0) scale(1.01);
  box-shadow:
    0 2px 10px rgba(26, 26, 26, 0.25),
    0 0 20px rgba(212, 244, 172, 0.2),
    inset 0 1px 0 rgba(212, 244, 172, 0.1);
}

/* Subtle pulse animation to draw attention */
@keyframes bjk-button-pulse {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(26, 26, 26, 0.2),
      0 0 30px rgba(212, 244, 172, 0.15),
      inset 0 1px 0 rgba(212, 244, 172, 0.1);
  }
  50% {
    box-shadow:
      0 4px 15px rgba(26, 26, 26, 0.2),
      0 0 40px rgba(212, 244, 172, 0.25),
      inset 0 1px 0 rgba(212, 244, 172, 0.15);
  }
}

.bjk-btn-primary-action {
  animation: bjk-button-pulse 3s ease-in-out infinite;
}

.bjk-btn-primary-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bjk-auth-modal-icon-wrapper {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  background: #f9fafb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bjk-auth-modal-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.bjk-auth-modal-icon-lock {
  color: #6b7280;
}

.bjk-auth-modal-icon-workspace {
  color: #eab308;
}

.bjk-auth-modal-icon-error {
  color: #ef4444;
}

.bjk-auth-modal-icon-success {
  color: #10b981;
}

.bjk-auth-modal-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111827;
}

.bjk-auth-modal-text {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Dark theme overrides for auth modals */
[data-theme="dark"] .bjk-auth-modal-overlay {
  background: linear-gradient(180deg,
    var(--bjk-bg-primary, #1e1e1e) 0%,
    var(--bjk-bg-secondary, #2d2d2d) 20%,
    var(--bjk-bg-tertiary, #3a3a3a) 100%);
}

[data-theme="dark"] .bjk-auth-modal-card {
  background: var(--bjk-bg-secondary, #2d2d2d);
  border: 1px solid var(--bjk-border-color, #4a4a4a);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bjk-auth-modal-icon-wrapper {
  background: var(--bjk-bg-tertiary, #3a3a3a);
}

[data-theme="dark"] .bjk-auth-modal-icon-lock {
  color: #9ca3af;
}

[data-theme="dark"] .bjk-auth-modal-icon-workspace {
  color: #fbbf24;
}

[data-theme="dark"] .bjk-auth-modal-icon-error {
  color: #f87171;
}

[data-theme="dark"] .bjk-auth-modal-icon-success {
  color: #34d399;
}

[data-theme="dark"] .bjk-auth-modal-title {
  color: var(--bjk-text-primary, #e0e0e0);
}

[data-theme="dark"] .bjk-auth-modal-text {
  color: var(--bjk-text-secondary, #a0a0a0);
}

/* Dark theme button maintains enhanced visibility */
[data-theme="dark"] .bjk-btn-primary-action {
  /* Slightly lighter gradient for better contrast in dark mode */
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
  color: #d4f4ac;
  border: 1px solid rgba(212, 244, 172, 0.3);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 244, 172, 0.2),
    inset 0 1px 0 rgba(212, 244, 172, 0.15);
}

[data-theme="dark"] .bjk-btn-primary-action:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
  border-color: rgba(212, 244, 172, 0.5);
  color: #e4ffbc;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(212, 244, 172, 0.3),
    inset 0 1px 0 rgba(212, 244, 172, 0.25);
}

[data-theme="dark"] .bjk-btn-primary-action:active {
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(212, 244, 172, 0.25),
    inset 0 1px 0 rgba(212, 244, 172, 0.15);
}

/* Enhanced pulse animation for dark mode */
@keyframes bjk-button-pulse-dark {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(212, 244, 172, 0.2),
      inset 0 1px 0 rgba(212, 244, 172, 0.15);
  }
  50% {
    box-shadow:
      0 4px 15px rgba(0, 0, 0, 0.4),
      0 0 50px rgba(212, 244, 172, 0.3),
      inset 0 1px 0 rgba(212, 244, 172, 0.2);
  }
}

[data-theme="dark"] .bjk-btn-primary-action {
  animation: bjk-button-pulse-dark 3s ease-in-out infinite;
}

/* ====================================================================
   Form Elements Dark Theme Overrides - Shared across all auth pages
   ==================================================================== */

/* Dark theme form backgrounds */
[data-theme="dark"] .form-card,
[data-theme="dark"] .bjk-bg-white.bjk-rounded-2xl {
  background: rgba(30, 30, 30, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark theme gradient text */
[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #d4f4ac 0%, #b8e08a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark theme form labels */
[data-theme="dark"] form label,
[data-theme="dark"] .bjk-text-gray-700 {
  color: #e5e7eb !important;
}

/* Dark theme form inputs and selects */
[data-theme="dark"] form input,
[data-theme="dark"] form select {
  background: rgba(40, 40, 40, 0.8) !important;
  color: #f3f4f6 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] form input::placeholder,
[data-theme="dark"] form select option {
  color: #9ca3af !important;
}

[data-theme="dark"] form input:focus,
[data-theme="dark"] form select:focus {
  background: rgba(50, 50, 50, 0.95) !important;
  border-color: #d4f4ac !important;
}

/* Auth links - consistent styling across all auth pages */
.auth-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-link:hover {
  color: #4a4a4a;
  text-decoration: underline;
}

/* Dark theme auth links */
[data-theme="dark"] .auth-link {
  color: #d4f4ac !important;
}

[data-theme="dark"] .auth-link:hover {
  color: #e4ffbc !important;
  text-decoration: underline;
}

[data-theme="dark"] .bjk-text-dark {
  color: #9ca3af !important;
}

[data-theme="dark"] .bjk-text-dark:hover {
  color: #d4f4ac !important;
}

/* Dark theme body background for auth pages */
[data-theme="dark"] body.page-background {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%) !important;
}

/* Compatibility alias for legacy code - maps old class to new */
.bjk-auth-modal-button {
  /* Inherits all styles from bjk-btn-primary-action */
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #d4f4ac;
  border: 1px solid rgba(212, 244, 172, 0.2);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  cursor: pointer;
  box-shadow:
    0 4px 15px rgba(26, 26, 26, 0.2),
    0 0 30px rgba(212, 244, 172, 0.15),
    inset 0 1px 0 rgba(212, 244, 172, 0.1);
  transform: translateY(0) scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: bjk-button-pulse 3s ease-in-out infinite;
}

/* Color picker styles */
.bjk-color-option {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.bjk-color-option:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.bjk-color-option.selected {
  border-color: var(--bjk-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

/* Input focus styles */
.bjk-input-focus:focus {
  outline: none;
  border-color: var(--bjk-green);
  box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.2);
}

/* Form spacing utilities */
.bjk-space-y-4 > * + * {
  margin-top: 1rem;
}

.bjk-space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* ====================================================================
   Logo Components
   Shared logo styles for authentication pages (login, signup, etc.)
   ==================================================================== */

/* Logo pulsate animation - includes centering to maintain position during scale */
@keyframes bjk-pulsate {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Logo container with green glow and pulsating animation */
.logo-container-glow {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 96px;
}

/* Green glow background - positioned absolutely behind logo with pulsating animation */
.logo-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205, 243, 175, 0.9) 0%, rgba(205, 243, 175, 0.3) 50%, rgba(205, 243, 175, 0) 70%);
    pointer-events: none;
    z-index: -1;
    animation: bjk-pulsate 1.5s ease-in-out infinite;
}

/* SVG circles - static, no animation */
.logo-container-glow svg {
    position: relative;
    width: 96px;
    height: 96px;
    display: block;
}

/* Logo color styling */
.logo-svg {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

[data-theme="dark"] .logo-svg {
    color: #d4f4ac;
}

/* Dark theme: hide glow effect (which also removes animation) for plain logo */
[data-theme="dark"] .logo-glow-bg {
    display: none;
}

/* ====================================================================
   Component Library Styles
   Extracted from banker-jack-components.js for better separation
   ==================================================================== */

/* Card Components */
.bjk-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bjk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4f4ac 0%, #a3e635 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.bjk-card:hover::before {
    transform: translateX(0);
}

.bjk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bjk-card.active {
    border-color: #d4f4ac;
    box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.2);
}

.bjk-card-create {
    background: transparent;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border-radius: 12px;
}

.bjk-card-create:hover {
    border-color: #d4f4ac;
    background: rgba(212, 244, 172, 0.05);
}

/* Enhanced card styles from styles.css for backward compatibility */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4f4ac 0%, #a3e635 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card.active {
    border-color: #d4f4ac;
    box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.2);
}

/* Stat Cards */
.bjk-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.bjk-stat-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Form Components */
.bjk-form-group {
    margin-bottom: 20px;
}

.bjk-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bjk-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #1a1a1a;
}

.bjk-input:focus {
    outline: none;
    border-color: #d4f4ac;
    box-shadow: 0 0 0 3px rgba(212, 244, 172, 0.2);
    background: #ffffff;
}

.bjk-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.bjk-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.bjk-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #d4f4ac;
}

/* Modal Components */
.bjk-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.bjk-modal.show {
    display: block;
}

.bjk-modal-backdrop {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
}

.bjk-modal-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.bjk-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    padding: 32px;
    position: relative;
    animation: bjk-slideUp 0.3s ease-out;
    pointer-events: all;
}

.bjk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.bjk-modal-title {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.bjk-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bjk-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.bjk-modal-close svg {
    width: 24px;
    height: 24px;
}

.bjk-modal-body {
    color: #374151;
}

/* Legacy modal and toast styles for compatibility */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    animation: bjk-slideUp 0.3s ease-out;
}

.message-toast {
    animation: bjk-slideInRight 0.3s ease-out;
}

/* Legacy status alerts for compatibility */
.status-loading {
    background-color: #dbeafe;
    border-color: #3b82f6;
}

.status-success {
    background-color: #d1fae5;
    border-color: #10b981;
}

.status-error {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.status-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

/* Legacy spinner for compatibility */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: bjk-spin 1s linear infinite;
}

/* Legacy skeleton for compatibility */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bjk-shimmer 1.5s infinite;
}

/* Tab Components */
.bjk-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.bjk-tab {
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.bjk-tab:hover {
    color: #374151;
}

.bjk-tab.active {
    color: #1a1a1a;
    border-bottom-color: #d4f4ac;
}

.bjk-tab-badge {
    margin-left: 8px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
}

/* Loading Components */
.bjk-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bjk-shimmer 1.5s infinite;
    border-radius: 4px;
}


/* Status Badges */
.bjk-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.bjk-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.bjk-badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.bjk-badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bjk-badge-neutral {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Empty State Components */
.bjk-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.bjk-empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #d1d5db;
}

.bjk-empty-state h3 {
    font-size: 18px;
    font-weight: 400;
    color: #374151;
    margin-bottom: 8px;
}

.bjk-empty-state p {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Component Grid Layouts - Using utilities from line 383 */

@media (max-width: 768px) {
    .bjk-grid-cols-2,
    .bjk-grid-cols-3,
    .bjk-grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bjk-grid-cols-3,
    .bjk-grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bjk-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bjk-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth Guard Styles */
.bjk-auth-guard-overlay {
    position: fixed;
    top: 56px; /* Below toolbar */
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8edf2 100%);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    animation: bjk-fadeIn 0.3s ease-out;
}

.bjk-auth-guard-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 48px;
    max-width: 500px;
    margin: 20px;
    text-align: center;
}

.bjk-auth-guard-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    animation: bjk-pulse 2s ease-in-out infinite;
    color: var(--bjk-text-secondary, #6b7280);
}

.bjk-auth-guard-icon svg {
    width: 100%;
    height: 100%;
}

.bjk-auth-guard-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--bjk-text-primary, #1a1a1a);
    margin-bottom: 12px;
}

.bjk-auth-guard-message {
    font-size: 16px;
    color: var(--bjk-text-secondary, #6b7280);
    margin-bottom: 32px;
    line-height: 1.5;
}

.bjk-auth-guard-action {
    background: var(--bjk-accent-blue, #3b82f6);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.bjk-auth-guard-action:hover {
    background: var(--bjk-accent-blue-dark, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.bjk-auth-guard-action:active {
    transform: translateY(0);
}

.bjk-auth-guard-subtext {
    font-size: 14px;
    color: var(--bjk-text-tertiary, #9ca3af);
    margin: 0;
}

/* Component Animations - Using bjk-pulse from line 1508 */

/* Dark theme overrides for Auth Guard */
[data-theme="dark"] .bjk-auth-guard-overlay {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .bjk-auth-guard-card {
    background: var(--bjk-bg-secondary, #1f2937);
    border: 1px solid var(--bjk-border-color, #374151);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ====================================================================
   Page Example Component Classes
   Reusable component styles ported from page-example.html
   ==================================================================== */

/* Header Components */
.bjk-header {
  border-bottom: 1px solid var(--bjk-border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.bjk-subtitle {
  color: var(--bjk-text-secondary);
  font-size: var(--bjk-text-sm);
}

/* Status Bar Components */
.bjk-status-bar {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bjk-bg-secondary);
  border: 1px solid var(--bjk-border-color);
  border-radius: 0.375rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
}

.bjk-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bjk-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bjk-gray-300);
}

.bjk-status-indicator.active {
  background: var(--bjk-success);
}

/* Metric Card Components */
.bjk-metric-card {
  background: var(--bjk-bg-primary);
  border: 1px solid var(--bjk-border-color);
  border-radius: 0.375rem;
  padding: 1rem;
  transition: border-color 0.2s;
  cursor: default;
}

.bjk-metric-card:hover {
  border-color: var(--bjk-text-tertiary);
}

.bjk-metric-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bjk-text-tertiary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.bjk-metric-value {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  font-feature-settings: 'tnum';
}

.bjk-metric-change {
  font-size: var(--bjk-text-xs);
  color: var(--bjk-text-secondary);
}

.bjk-metric-change.positive {
  color: var(--bjk-success);
}

.bjk-metric-change.negative {
  color: var(--bjk-error);
}

/* Section Components */
.bjk-section {
  background: var(--bjk-bg-primary);
  border: 1px solid var(--bjk-border-color);
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.bjk-section-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--bjk-gray-700);
}

/* Data Table Components */
.bjk-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.bjk-data-table th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--bjk-border-color);
  font-weight: 500;
  color: var(--bjk-text-secondary);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bjk-data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--bjk-gray-100);
}

.bjk-data-table tr:hover {
  background: var(--bjk-bg-secondary);
}

/* Console Components */
.bjk-console {
  background: #1a1a1a;
  color: #a3e635;
  padding: 1rem;
  border-radius: 0.25rem;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: var(--bjk-text-xs);
  height: 200px;
  overflow-y: auto;
}

.bjk-console-entry {
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.bjk-console-entry.error {
  color: #f87171;
}

.bjk-console-entry.warning {
  color: #fbbf24;
}

/* Notification Components */

/* Notification Container */
.bjk-notifications-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000; /* Above auth modal (z-index: 9999) */
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none; /* Allow clicking through the container */
  max-height: calc(100vh - 100px);
  overflow: visible;
}

.bjk-notification {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  max-width: 360px;
  min-width: 280px;
  animation: bjk-slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  pointer-events: all; /* Allow clicking on notifications */
  transition: all 0.3s ease;
  transform-origin: top right;
}

/* Notification exit state - first phase: slide out */
.bjk-notification-exit {
  animation: bjk-slideOut 0.2s ease-out forwards;
}

/* Notification exit state - second phase: collapse height */
.bjk-notification-exit-collapse {
  animation: none;
  transform: translateX(110%);
  opacity: 0;
  max-height: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  transition: max-height 0.2s ease-out, margin 0.2s ease-out, padding 0.2s ease-out;
}

/* Sleek notification animation - Enter */
@keyframes bjk-slideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Sleek notification animation - Exit (faster, no height change) */
@keyframes bjk-slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

.bjk-notification-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  color: #14532d;
}

.bjk-notification-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

.bjk-notification-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  color: #713f12;
}

.bjk-notification-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  color: #1e3a8a;
}

/* Notification message */
.bjk-notification-message {
  flex: 1;
}

/* Dark mode overrides for new components */
[data-theme="dark"] .bjk-section-title {
  color: var(--bjk-text-primary);
}

[data-theme="dark"] .bjk-console {
  background: #0a0a0a;
  border: 1px solid var(--bjk-border-color);
}
/* ============================== */
/* Loading Overlay Styles */
/* ============================== */
.bjk-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.bjk-loading-content {
  text-align: center;
}

.bjk-loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #e5e7eb;
  border-top-color: #a3e635;
  border-radius: 50%;
  animation: bjk-spin 1s linear infinite;
  margin: 0 auto 16px;
}

.bjk-loading-text {
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

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

/* Dark mode support for loading overlay */
[data-theme="dark"] .bjk-loading-overlay {
  background: rgba(10, 10, 10, 0.95);
}

[data-theme="dark"] .bjk-loading-spinner {
  border-color: #374151;
  border-top-color: #a3e635;
}

[data-theme="dark"] .bjk-loading-text {
  color: #9ca3af;
}
