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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

code, kbd, samp, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* Card hover soft elevations */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(19, 27, 43, 0.08);
}

/* Guaranteed Sticky Layout Helper Classes */
header.sticky-topbar,
.sticky-topbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

#stickyTutorialHeader,
.sticky-tutorial-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 64px !important;
    z-index: 35 !important;
}

aside#sidebarMenu {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    z-index: 50 !important;
}

/* Bulletproof Sticky Table Header across all views */
.table-sticky-container,
.overflow-x-auto:has(table) {
    max-height: calc(100vh - 15rem);
    overflow-x: auto !important;
    overflow-y: auto !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch;
}

.table-sticky-container table,
.overflow-x-auto table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-sticky-container thead,
.overflow-x-auto table thead,
table thead.sticky,
thead.sticky-thead {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
}

.table-sticky-container thead th,
.overflow-x-auto table thead th,
table thead.sticky th,
thead.sticky-thead th,
.sticky-table-head th,
table thead th {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 25 !important;
    background-color: #f8fafc !important;
    box-shadow: inset 0 -2px 0 #e2e8f0, 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
