/* Header and Sidebar Spacing Fixes */
/* Applied: January 15, 2026 - Removes excessive vertical space and fixes sidebar height */

/* FIX 1: Reduce body padding to account for actual top bar height */
/* Previous: 114px caused massive gap */
/* New: 94px (60px blue bar + 34px news ticker) */
body {
    padding-top: 94px !important;
}

/* FIX 2: Remove redundant margin on main element */
/* This was doubling the spacing (114px + 114px = 228px waste) */
main {
    margin-top: 0 !important;
}

/* FIX 3: Fix sidebar to span full viewport height */
/* Previous: Fixed 737px height, didn't adapt to viewport */
/* New: Full viewport height minus top bars */
.sidebar,
aside.sidebar,
nav.sidebar {
    min-height: calc(100vh - 94px) !important;
    height: calc(100vh - 94px) !important;
    position: sticky !important;
    top: 94px !important;
}

/* FIX 4: Ensure header sticks properly with reduced spacing */
header.sticky {
    top: 60px !important;
    /* Account for top bar only */
}

/* FIX 5: Adjust news ticker positioning if needed */
.news-ticker {
    position: fixed !important;
    top: 60px !important;
    z-index: 1000 !important;
}

/* FIX 6: Top bar positioning */
.top-bar {
    position: fixed !important;
    top: 0 !important;
    z-index: 1001 !important;
    width: 100% !important;
}

/* Additional fixes for compact layout */
/* Reduce any excessive padding in header sections */
header .container {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* Ensure sidebar doesn't overflow */
.sidebar {
    overflow-y: auto !important;
}

/* Make sidebar links more compact if needed */
.sidebar .nav-link {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}