html, body {
    font-size: 14px;
    /* added to try to get footer to work properly */
    position: relative;
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* Ensure the flex layout works as expected */
.navbar .container-fluid {
    display: flex;
    justify-content: space-between; /* This will space the left and right items apart */
    align-items: center; /* Align vertically centered */
}

.navbar-brand-menu {
    display: flex;
    align-items: center; /* Align logo and flags horizontally */
}

    .navbar-brand-menu img {
        margin-left: 10px; /* Space between flags */
    }

.navbar-collapse {
    flex-grow: 0; /* Prevent the nav from growing too large */
}

/* Adjust for mobile view */
@media (max-width: 768px) {
    .navbar .container-fluid {
        flex-direction: column;
    }

    .navbar-collapse {
        width: 100%; /* Ensure the collapse menu is full width on small screens */
        text-align: center; /* Center align items when collapsed */
    }

    .navbar-nav {
        flex-direction: column; /* Stack menu items vertically on small screens */
    }
}

.nav-link {
    display: inline-block; /* This will ensure each link stays on the same line */
    margin-right: 15px; /* Optional: Add space between the links */
}


/* Table with margin and rounded corners */
.table-container {
    margin: 2rem; /* Adds space around the table */
    padding: 1rem; /* Adds inner padding */
    background-color: #ffffff; /* Optional: white background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

/* Sticky table header and scroll*/
.table-scroll {
    max-height: 600px; /* adjust as needed */
    overflow-y: auto;
    position: 2rem;
}

.body-margin-wrapper {
    margin: 20px;
}

.dial-col {
    width: 5%;
}

.item-col {
    width: 30%;
}

.comments-col {
    width: 45%;
}

    .center-text {
    text-align: center;
    vertical-align: middle; /* Optional: to vertically center too */
}

/* Sticky both header rows */
.table thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    background-color: #343a40; /* match table-dark */
    color: white;
    z-index: 3;
}

.table thead tr:nth-child(2) th {
    position: sticky;
    top: 34px; /* adjust based on row height */
    background-color: #343a40; /* match table-dark */
    color: white;
    z-index: 2;
}

/* Makes <th> stick to the top of the scroll container */
.sticky-header th {
    position: sticky;
    top: 0;
    background-color: #343a40; /* match table-dark */
    color: white;
    z-index: 2;
}

/* Ensure layout plays nicely with sticky footer */
.flex-grow-1 {
    flex-grow: 1;
}

main {
    padding-bottom: 4rem; /* Prevent overlap with footer */
}
