/* custom-admin.css */
:root {
    --primary: #28a745 !important;
    /* Custom primary color */
    --primary-light: #FFFFFF !important;
    --primary-dark: #1e7e34 !important;
}

/* Branding link color */
.site-title a {
    color: #28a745 !important;
    font-weight: bold;
}

/* General body styles */
body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
}

/* Hover styles for general links */
body a:hover {
    color: #28a745 !important;
    /* Green hover color */
    text-decoration: underline;
}

/* Hover styles for buttons */
body button:hover {
    background-color: #FFFFFF !important;
    /* White background */
    color: #28a745 !important;
    /* Green text */
    border-color: #28a745 !important;
    /* Green border */
}

/* Success button hover styles */
.btn-outline-success:hover {
    background-color: #28a745 !important;
    /* Green background */
    color: white !important;
    /* White text */
    border-color: #28a745 !important;
    /* Green border */
}


/* Override the default color and border of btn-outline-primary */
.btn-outline-primary {
    color: #28a745 !important;
    /* Set the text color (green as an example) */
    border-color: #28a745 !important;
    /* Set the border color */
}

/* Change hover effect */
.btn-outline-primary:hover {
    background-color: #28a745 !important;
    /* Green background on hover */
    color: white !important;
    /* White text on hover */
    border-color: #218838 !important;
    /* Slightly darker green border on hover */
}


/* Success button focus styles */
.btn-outline-success:focus {
    background-color: #28a745 !important;
    /* Green background */
    color: white !important;
    /* White text */
    border-color: #28a745 !important;
    /* Green border */
}

/* Card header hover styles */
.card-header.collapsible-header:hover {
    background-color: #28a745 !important;
    /* Green background */
    color: white !important;
    /* White text */
    border-color: #218838 !important;
    /* Optional: Darker green border */
    cursor: pointer;
}

/* Navbar link hover styles */
.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    /* White text on green */
    background-color: #218838 !important;
    /* Slightly darker green */
    text-decoration: none;
}

/* Search bar focus styles */
.navbar-dark .form-control:focus {
    background-color: #ffffff !important;
    /* White background */
    color: #212529 !important;
    /* Dark text inside search bar */
    border-color: #28a745 !important;
    /* Green border */
}

/* Navbar button hover styles */
.navbar-dark .btn:hover {
    background-color: #218838 !important;
    /* Slightly darker green */
    color: white !important;
    /* White text */
    border-color: #1e7e34 !important;
    /* Optional: Darker green border */
}




/* Target the Select2 container */
.select2-container .select2-selection--single {
    background-color: #f0f0f0 !important;
    /* Change background color */
    border: 1px solid #ccc !important;
    /* Change border color */
    color: #333 !important;
    /* Change text color */
    height: 40px !important;
    /* Adjust height if needed */
    border-radius: 4px;
    /* Optional: Add rounded corners */
}

/* Hover state for Select2 dropdown */
.select2-container .select2-selection--single:hover {
    background-color: #e6e6e6 !important;
    /* Slightly darker gray on hover */
}

/* Focus state for Select2 dropdown */
.select2-container--default .select2-selection--single:focus {
    border-color: #1e7e34 !important;
    /* Blue border when focused */
    box-shadow: 0 0 5px #1e7e34
        /* Highlight effect */
}

/* Change dropdown arrow color */
.select2-container .select2-selection--single .select2-selection__arrow {
    color: #1e7e34 !important;
    /* Change arrow color */
}

/* Adjust the dropdown menu items */
.select2-container--default .select2-results__option {
    background-color: #f9f9f9;
    /* Background color of dropdown items */
    color: #333;
    /* Text color of dropdown items */
}

/* Highlighted option */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1e7e34 !important;
    /* Background color for highlighted items */
    color: #fff !important;
    /* Text color for highlighted items */
}

/* footer .float-right.d-none.d-sm-inline {
    display: none;
} */
.login-logo img {
    height: 100px;
    width: auto;
    /* Maintain aspect ratio */
}




/* front end login/ client interface */
/* custom-admin.css */
/* custom-admin.css */
/* body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
} */

/* custom-admin.css */
/* custom-admin.css */
body.radius-login-body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}


#radius-login {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
}

#radius-login h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.radius-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.radius-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

/* .internet-plans {
    display: flex;
    flex-direction: row;
    background-color: red;
} */

#payment-plans {
    list-style-type: decimal;
    /* Numbers for ordered list */
    padding-left: 2px;
    /* Space between numbers and list content */
    margin-top: 5px;
}



.radius-tab-button {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    background-color: #e9e9e9;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.radius-tab-button.active {
    background-color: #208c39;
    /* Green */
    color: white;
}

.radius-tab-content {
    display: none;
}

.radius-tab-content.active {
    display: block;
}

#radius-login form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#radius-login label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

#radius-login input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 94%;
}

#radius-login select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
}

#radius-login input:focus,
#radius-login select:focus {
    border-color: #208c39;
    /* Green */
    outline: none;
}

.radius-pay-button {
    padding: 10px;
    background-color: #208c39;
    /* Green */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.radius-pay-button:hover {
    background-color: #176b2b;
    /* Darker Green */
    border-color: #176b2b;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        /* Adds spacing around the entire page */
        box-sizing: border-box;
        /* Ensures padding is included in the width calculation */
    }

    #radius-login {
        width: 60%;
        padding: 15px;
        margin: 0 auto;
        /* Centers the container */
        border: 1px solid #ccc;
        /* Example border for visibility */
        border-radius: 8px;
        /* Adds rounded corners */
        box-sizing: border-box;
        /* Ensures padding doesn't overflow */
    }

    #radius-login h1 {
        font-size: 18px;
    }

    .radius-tab-button {
        font-size: 12px;
        padding: 8px;
    }

    #radius-login input,
    #radius-login select {
        font-size: 13px;
        padding: 8px;
    }

    .radius-pay-button {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
        /* Smaller padding for very small screens */
    }

    #radius-login {
        width: 70%;
        padding: 10px;
        margin: 0 auto;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
    }

    #radius-login h1 {
        font-size: 16px;
    }

    .radius-tab-button {
        font-size: 11px;
        padding: 6px;
    }

    #radius-login input,
    #radius-login select {
        font-size: 12px;
        padding: 6px;
    }

    .radius-pay-button {
        font-size: 13px;
        padding: 6px;
    }
}

/* Inline filter layout for rangefilter */
/* static/css/admin_custom.css */
details[data-filter-title="timestamp"] {
    background-color: #f9f9f9;
    border: 2px solid #008080;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

details[data-filter-title="timestamp"] input {
    margin-bottom: 8px;
    width: 100%;
}

.timestamp-filter-bar {
    padding: 10px 20px;
    background-color: #f7f9fc;
    border: 1px solid #c3d0dd;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.timestamp-filter-bar label {
    font-weight: 500;
    color: #333;
}

.timestamp-filter-bar input[type="date"] {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 160px;
}

.timestamp-filter-bar button {
    background-color: #28a745;
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.timestamp-filter-bar button:hover {
    background-color: #218838;
}

.timestamp-filter-bar .reset-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

.timestamp-filter-bar .reset-link:hover {
    text-decoration: underline;
}