
/* Target the container row for the domain list controls */
#tbl_domain_list_forward_wrapper .row:first-child {
    display: flex !important;
    flex-direction: row-reverse !important; /* Swaps the two columns */
    justify-content: space-between !important;
}

/* Ensure the search box aligns to the left now */
#tbl_domain_list_forward_filter {
    text-align: left !important;
}

/* Ensure the "Show Entries" aligns to the right */
#tbl_domain_list_forward_length {
    text-align: right !important;
}

#tbl_domain_list_forward_filter input {
    width: 300px !important; /* Makes the search box wider */
    display: inline-block;
    margin-left: 0.5em;
}



/* Swaps the 'Show Entries' and 'Search' columns for Records */
#tbl_records_wrapper > .row:first-child {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center;
}

/* Moves Records Search to the left side */
#tbl_records_filter {
    float: left !important;
    text-align: left !important;
    flex-grow: 1; /* Allows it to take up available space */
}

/* Moves Records Show Entries to the right side */
#tbl_records_length {
    float: right !important;
    text-align: right !important;
}

/* Makes the Records search box wider and matches your previous look */
#tbl_records_filter input {
    width: 350px !important; 
    display: inline-block;
    margin-left: 0.5em;
}

/* ------------------------------------------ */
/* Make the bars red */
/* 1. The Left Sidebar */
.main-sidebar, 
.main-sidebar .sidebar {
    background-color: #8b0101 !important;
}

/* 2. The Logo Area (Top of sidebar) */
.brand-link {
    background-color: #8b0101 !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
}

/* 3. The Top Navbar */
.main-header.navbar {
    background-color: #8b0101 !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
}

/* 4. Fix Navbar Icons & Text (Make them white for contrast) */
.main-header.navbar .nav-link,
.main-header.navbar .nav-link i {
    color: #ffffff !important;
}

/* 5. Optional: Sidebar Nav Headers (The "Zone Management" labels) */
.nav-sidebar .nav-header {
    background-color: inherit;
    color: rgba(255,255,255,.6) !important;
}

/*-------------------------------------------------------*/
/* Make the active page indicater gray */

.nav-pills .nav-link.active {
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}


/* Inverts the black logo to white and makes it fully opaque */
.brand-link img.brand-image {
    -webkit-filter: invert(1); /* Safari support */
    filter: invert(1) !important;
    opacity: 1 !important; /* Overrides the inline .8 opacity for a brighter look */
}

/*-------------------------------------------------------*/
/* Fix the menus on the right */
/* 1. The Main Toggle Button (The Icon) */
#dropdownMenu.btn-primary {
    background-color: #8b0101 !important;
    border-color: #8b0101 !important;
    color: #ffffff !important;
}

/* 2. The Menu Popout Background */
.dropdown-menu {
    background-color: #8b0101 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0; /* Ensures the buttons fill the space nicely */
}

/* 3. The Items inside the menu */
/* We reset the background of btn-success/danger so the whole menu is red */
.dropdown-menu .dropdown-item {
    color: #ffffff !important;
    background-color: transparent !important;
    border: none !important;
    padding: 10px 20px;
}

/* 4. Hover effect (slightly lighter red so you know what you're clicking) */
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* 5. Fix the "Remove Zone" red text and Divider */
.dropdown-menu .dropdown-item span {
    color: #ffffff !important; /* Overrides the inline red color for 'Remove Zone' */
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0;
}


/* Change the Info button to match the brand red */
.history-info-button.btn-primary {
    background-color: #8b0101 !important;
    border-color: #8b0101 !important;
    color: #ffffff !important;
}

/* Add a slight hover effect so it feels interactive */
.history-info-button.btn-primary:hover {
    background-color: #a30101 !important;
    border-color: #a30101 !important;
}

