/* Global styles */
body {
    background: linear-gradient(90deg, #000000, #09078b);!important;
    color: #5beb00;!important; /* Main color */
    font-family: Arial, sans-serif;
}

/* Site name styles */

a:link, #site-name a:visited {
    color: #5beb00; !important; /* Main color */
}

/* Main container layout */
.changelist-container {
    overflow: hidden; /* Clear floats */
    background: linear-gradient(90deg, #000000, #09078b);
}

/* Branding */
#site-name a {
    color: #5beb00; /* Main color */
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

#site-name a:hover {
    color: #ff6700; /* Secondary color on hover */
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px;
    background-color: rgba(91, 235, 0, 0.1); /* Main color with transparency */
    border-bottom: 2px solid #5beb00;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ff6700; /* Secondary color on hover */
}

/* Navigation */
.nav-links {
    padding: 10px;
    background-color: #09078b; /* Secondary color with transparency */
    color: #5beb00;!important; /* Main color */
    border-bottom: 2px solid #ff6700;
}

.nav-links:hover{
    color: #ff6700;
}

div.breadcrumbs a {
    color: #5beb00; !important
}

#header a:link, #header a:visited {
    color: #5beb00;!important; /* Secondary color */
}

.nav-links a {
    color: #5beb00;
    margin-right: 15px;
    text-decoration: none;
}

.nav-links a:hover {
    color: #5beb00; /* Main color on hover */
}

/* User Tools */
#user-tools {
    padding: 10px;
    background-color: rgba(91, 235, 0, 0.1); /* Main color with transparency */
    border-top: 2px solid #5beb00;
    text-align: right;
}

#user-tools span, #user-tools a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

#user-tools a {
    padding: 5px 10px;
    border: 1px solid #ff6700; /* Secondary color border */
    background-color: #09078b; /* Main color */
    border-radius: 3px;
}

#user-tools a:hover {
    background-color: #ff6700; /* Secondary color on hover */
    color: #fff;
}

#user-tools strong {
    color: #5beb00; /* Secondary color for username */
}

/* Filter sidebar */
#changelist-filter {
    float: left;
    width: 200px;
    padding: 10px;
    background-color: linear-gradient(90deg, #000000, #09078b); /* Main color with transparency */
    border-right: 2px solid #5beb00; /* Main color border */
    min-height: 400px; /* Ensure sidebar height */
    color: #fff; /* White text for contrast */
}

#changelist-filter h2 {
    margin-top: 0;
    font-size: 14px;
    color: #ff6700; /* Secondary color for headings */
}

#changelist-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#changelist-filter li {
    padding: 5px 0;
}

#changelist-filter a {
    color: #fff; /* White links */
    text-decoration: none;
}

#changelist-filter a:hover {
    color: #ff6700; /* Secondary color on hover */
    text-decoration: underline;
}

/* Table content */
.changelist-content {
    margin-left: 220px; /* Adjust for filter width + padding */
    padding: 10px;
    color: #fff; /* White text for contrast */
}

#changelist-form {
    width: 100%;
}

#result_list {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1); /* Slight white overlay for readability */
}

#result_list th, #result_list td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #5beb00; /* Main color border */
}

#result_list th {
    background-color: #ff6700; /* Secondary color for headers */
    color: #fff;
}

/* Change Form Styles */
#content-main {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Slight white overlay for readability */
}

.errornote {
    background-color: rgba(255, 103, 0, 0.3); /* Secondary color with transparency for errors */
    border: 2px solid #ff6700;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
}

.fieldset {
    margin-bottom: 20px;
    border: 1px solid #5beb00; /* Main color border */
    padding: 10px;
    background-color: rgba(91, 235, 0, 0.1); /* Main color with transparency */
}

.fieldset legend {
    color: #ff6700; /* Secondary color for legends */
    font-weight: bold;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    color: #fff;
    margin-right: 10px;
}

.form-row input, .form-row textarea, .form-row select {
    background-color: rgba(255, 255, 255, 0.2); /* Light transparent background */
    border: 1px solid #5beb00; /* Main color border */
    color: #fff;
    padding: 5px;
    border-radius: 3px;
}

.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    border-color: #ff6700; /* Secondary color on focus */
    outline: none;
}

.submit-row {
    margin-top: 20px;
}

.submit-row input {
    background-color: #5beb00; /* Main color */
    color: #000;
    border: 1px solid #ff6700; /* Secondary color border */
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 3px;
}

.submit-row input:hover {
    background-color: #ff6700; /* Secondary color on hover */
    color: #fff;
}

.submit-row .default {
    font-weight: bold;
}

/* Reset conflicting styles */
.admin-content, .module, ul, li, h2, a, table, th, td {
    display: revert !important;
    background-color: #09078b;
    color: #ff6700;
}

a.section:visited {
    color: #5beb00; !important;
    text-decoration: none;
}

/* Checkbox and action styles */
.action-checkbox-column input[type="checkbox"] {
    margin: 0;
    vertical-align: middle;
}

.action-checkbox input[type="checkbox"] {
    margin: 0 5px 0 0;
    vertical-align: middle;
}

.actions {
    margin-bottom: 10px;
    background-color: rgba(255, 103, 0, 0.2); /* Secondary color with transparency */
}

.action-counter {
    margin-left: 10px;
    color: #fff;
}

select[name="action"], input[type="submit"] {
    background-color: #5beb00; /* Main color */
    color: #000;
    border: 1px solid #ff6700; /* Secondary color border */
    padding: 5px;
}

select[name="action"] {
    margin-right: 10px;
}

/* Ensure checkbox is interactive */
#action-toggle {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
}

/* Footer */
.footer {
    padding: 10px;
    background-color: rgba(255, 103, 0, 0.2); /* Secondary color with transparency */
    border-top: 2px solid #ff6700;
    text-align: center;
    color: #fff;
}

/* Responsive design */
@media (max-width: 767px) {
    #changelist-filter {
        float: none;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #5beb00;
        min-height: auto;
    }

    .changelist-content {
        margin-left: 0;
    }

    .nav-links {
        text-align: center;
    }

    .nav-links a {
        display: block;
        margin: 5px 0;
    }

    #user-tools {
        text-align: center;
    }

    #user-tools a {
        display: inline-block;
        margin: 5px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row label {
        margin-bottom: 5px;
    }
}