body {
    padding-top: 10px;
    padding-bottom: 0;
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 0;
    height: calc(100vh - 80px); /* Account for body padding + navbar */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Content area after jumbotron - scrollable */
.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Important for flex children */
    padding-left: 5px;
}

/* Fixed footer at bottom */
.site-footer {
    padding: 8px 0;
    margin: 0;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0;
}
.site-footer p {
    margin: 0;
}

/* Ensure no horizontal overflow on body */
html, body {
    overflow-x: hidden !important;
}

/* Compact diagnostic alerts */
.page-content .alert {
    padding: 5px 10px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}
.page-content .alert b {
    font-size: 0.9rem;
}
.page-content .row {
    margin-bottom: 0;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.cell-hover:hover {
    background-color: rgba(0,0,0,.075);
    cursor: pointer;
}

/* Hide old jumbotron divs in individual views - replaced by jumbotron-header in layout */
.jumbotron,
.jumbotron.p-5,
.jumbotron.rounded-lg,
div.jumbotron {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Standard jumbotron header for all pages */
.jumbotron-header {
    background-image: url('/images/jumbotron_background.png');
    background-size: cover;
    background-position: center;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 40px;
    color: white;
    margin: 0 0 10px 0;
    border-radius: 4px;
}
.jumbotron-header h1 {
    font-size: 2rem;
    margin-bottom: 3px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.jumbotron-header .lead {
    font-size: 1rem;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.jumbotron-header .version {
    font-size: 0.85rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Remove default margins from elements following jumbotron */
.jumbotron-header ~ div:first-of-type,
.jumbotron-header ~ .row:first-of-type,
.jumbotron-header ~ form:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Active nav link indicator */
.navbar-nav .nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid #0d6efd;
}

.testInput {
    margin-top: 5px;
    margin-bottom: 2px;
}

.btn-copy {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Set backgroud of required input fields */
input[required] {
    background-color: lightyellow;
}

/* Diagnostics */
#testResults {
    margin: 20px 0px 0px 0px;
}

.loader {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
    margin-top: 50px;
}

/* LOADER 1 */
#loader-1:before, #loader-1:after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 10px solid transparent;
    border-top-color: #3498db;
}

#loader-1:before {
    z-index: 100;
    animation: spin 1s infinite;
}

#loader-1:after {
    border: 10px solid #ccc;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.jaketest {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}
