/* ==========================================================================
   global.css — Application-wide base styles
   Design tokens live in design-system.css (loaded before this file).
   ========================================================================== */

/* Typography */
h1 {
    font-size: 1.8em;
}

/* Header */
header#header_bar {
    height: var(--header-height, 90px);
}

/* Sidebar nav links */
.sidebar .nav-link {
    color: var(--bs-primary);
}

/* Legacy sidebar-item styles (kept for backward compat) */
.sidebar-item:not(.sidebar-header):hover {
    background-color: var(--bs-gray-400);
    transition: background-color 0.3s ease;
    color: var(--bs-primary);
}

.sidebar-item {
    border-radius: var(--radius-sm, 0.25rem);
}

.sidebar-item a {
    display: block;
}

.sidebar-item.active {
    border-radius: var(--radius-sm, 0.25rem);
    background-color: var(--bs-primary);
    color: var(--bs-gray-400);
}

.sidebar-item.active a {
    color: var(--bs-gray-400);
}

/* Registration form minimum width */
@media (min-width: 768px) {
    .registration.col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
        min-width: 500px;
    }
}

/* Results container images */
div#results-container img {
    max-width: 100%;
}

/* Hover utility */
.hover-primary:hover {
    background-color: var(--bs-secondary) !important;
    border-radius: var(--radius-md, 0.375rem);
}

/* Dashboard layout — body offset matches header height */
body.dashboard-layout {
    margin-top: var(--header-height, 90px) !important;
}

/* Prevent jarring purple background on centered form pages */
body.bg-primary {
    background: #fff !important;
}

/* App version badge */
.app-version {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--bs-secondary);
    opacity: 0.7;
    z-index: 100;
    padding: var(--space-xs, 0.25rem) var(--space-sm, 0.5rem);
    background: var(--bs-body-bg);
    border-radius: var(--radius-sm, 0.25rem);
    border: 1px solid var(--bs-border-color);
    transition: opacity 0.2s ease-in-out;
}

.app-version:hover {
    opacity: 1;
}