html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Remove sidebar and toggle button only on admin index */
#nav-sidebar,
#toggle-nav-sidebar {
    display: none !important;
}

.main.shifted > #nav-sidebar + .content {
    max-width: calc(100% - 10px);
}

#content {
    margin-top: 10px !important;
    padding: 15px;
}

.messagelist {
    margin-top: 5px;
    margin-bottom: 10px;
}

.messagelist .alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Hide breadcrumb navigation */
.breadcrumbs {
    display: none !important;
}

/* Reduce height of top navbar */
#header {
    height: 35px !important;
    padding: 5px 15px !important;
    display: flex;
    align-items: center;
}

/* Optional: Force stacking context */
#header, #content, body, html {
    z-index: auto !important;
    overflow: visible !important;
}

#user-tools {
    font-size: 13px;
    text-transform: uppercase;
    color: white;
}

#user-tools a {
    color: rgb(211, 31, 31);
    text-decoration: none;
}

#user-tools a:hover {
    text-decoration: underline;
}

#site-name a {
    font-weight: bold;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#site-name a:hover {
    text-decoration: underline;
    color: #e0e0e0;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
}

/* Parent Dropdown Container */
.dropdown {
    position: relative;
}

/* Shared Button Style */
.nav-link,
.dropdown-toggle,
.dropdown-menu a {
    background-color: #5f8ea3;
    color: #fff;
    padding: 6px 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

/* Hover style for all links */
.nav-link:hover,
.dropdown-toggle:hover,
.dropdown-menu a:hover {
    background-color: #4a708b;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #5f8ea3;
    border: 1px solid #417893;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Active nav link */
.nav-link.active {
    background-color: #ffc !important;
    color: #417893 !important;
    font-weight: bold;
}


/* Scrollable results area */
#changelist-form .results {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    position: relative;
}

/* Table full width */
#result_list {
    width: 100%;
    border-collapse: collapse;
}

/* Sticky headers on all th cells in the thead */
#result_list thead tr th {
    position: sticky;
    top: -1px; /* height of fixed header + action bar */
    background: white;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0,0,0,0.1);
}
.button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}
.button:hover {
    background-color: #0056b3;
}
