/* ===================================================
   General Layout and Structure
=================================================== */
html, body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main-page {
    display: flex;
    flex-direction: column;
    top: 85px;
    margin-top: 85px;
    margin-left: 20%;
    margin-right: 20%;
    box-sizing: border-box;
    padding-top: 0px;
    padding-bottom: 0;
    margin-bottom: 0;
    position: sticky;
}

.footer, footer {
    position: static;
    width: 60%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 20%;
    margin-right: 20%;
    text-align: center;
    align-items: center;
    z-index: 3;
    clear: both;
}

.site-header {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
}

.bg-image-container, .bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: var(--color-2-light-2);
    opacity: .2;
    z-index: -1;
}

.bg-image-container {
    background-image: url('/static/images/photo-electric-bus.png');
}


/* Flexbox container to center the overlay */
.overlay-container {
    display: flex;
    justify-content: center; 
    align-items: center;
    position: relative;
    height: auto;
    min-width: 100vw;
    padding-bottom: 20px;
    z-index: 2;
    overflow: scroll;
    position: relative;
}

.overlay {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95); /* Adjust the opacity as needed */
    margin-top: 60px;
    padding: 20px;
    width: 36%;
    min-width: 350px;
    height: auto;
    box-sizing: border-box;
    border-radius: 20px;
    opacity: 1;
    z-index: 2;
    position: relative;
    overflow: visible;
    word-wrap: break-word;
}

.dashboard-section {
    height: auto;
    box-sizing: border-box;
    border-radius: 20px;
    z-index: 2;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.95); 
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    width: inherit;
    overflow: visible;
    word-wrap: break-word;
}


.content-container-dashboard {
    width: 85%;
    margin-left: 7.5%;
    margin-right: 7.5%;
    margin-bottom: 60px;
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center; 
    flex-direction: column;
    box-sizing: border-box;
    opacity: 1;
    z-index: 2;
    text-align: center;
    padding-left: 4%;
    padding-right: 4%;
    padding-top: 0;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    position: relative;
}

container, .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-left: 24px !important;
    padding-right: 24px !important;
}

/* Navigation */
.navbar-container, navbar-container {
    padding-top: 0;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding-bottom: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: static;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    vertical-align: middle;
    position: relative;
}

.navbar {
    top: 0;
    left: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.breadcrumb {
    background-color: rgba(255, 255, 255, 0);
    padding: 0;
    margin: 0;
    border-radius: 20px;
}

.breadcrumb-item {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    word-wrap: break-word;
    white-space: normal; 
    overflow: visible; 
    line-height: 1.15;
}

.row.logout {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.8);
    right: 0;
    top: 0;
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    z-index: 10000;
}

.active-page {
    text-decoration: underline;
}

a[href="/logout"] {
    display: inline-block;
    position: relative;
    z-index: 10;
}


/* Outlines */
.sidebar-toggle {
    position: fixed;
    top: 126.75px;
    left: 16px;
    z-index: 1100;
    cursor: pointer;
    font-size: 24px;
    background-color: var(--color-text);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.form-outline-container {
    position: fixed;
    border-radius: 0 20px 20px 0;
    top: 126.75px;
    left: 0;
    width: 200px;
    height: auto;
    /* min-height: 30%; */
    /* min-height: 10%; */
    background-color: rgba(255, 255, 255, 0.8); 
    overflow-y: auto;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%); /* Hidden off-screen by default */
    transition: all 0.3s ease;
    z-index: 1000; /* Make sure it is above the form content */
    word-break: break-all;
    word-wrap: break-word;
    overflow: hidden;
}

/* When the overlay is active (visible) */
.form-outline-container.active {
    transform: translateX(0); /* Slide in from the left */
}

.form-outline {
    position: fixed;
    margin-top: 50px;
}

.outline-title {
    color: var(--color-text);
    font-size: 1.5rem;
    padding-bottom: 10px;
    text-align: left;
    font-weight: 300;
    border-bottom: 0.25px solid var(--color-text);
    margin-bottom: 20px;
}

a.outline-title:hover {
    color: var(--color-1);
    text-decoration: none !important;
}

.form-outline ul {
    list-style: none;
    padding: 0;
}

.form-outline ul ul {
    padding-left: 20px; /* Indent nested lists */
}

.form-outline ul li {
    margin-bottom: 10px;
}

.form-outline ul li a {
    font-family: var(--font-family-p);
    text-decoration: none;
    color: var(--color-text);
}

.form-outline ul li a.active {
    color: var(--color-1);
    font-weight: bold;
}


/* Notifications & Alerts */
.notification-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%;
    background-color: rgba(255, 255, 255, 0.6); */
    z-index: 4999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-container, .notification, .alert {
    font-family: var(--font-family-p);
    font-size: 1rem;
    /* letter-spacing: 2px; */
    /* text-transform: uppercase; */
    font-weight: 600;
}

.notification {
    color: white !important;
    padding: 20px !important;
    border-radius: 40px !important;
    bottom: 20px;
    left: 20px;
    width: auto !important;
    text-align: center;
    vertical-align: middle !important;
    height: auto !important;
} 

.notification.success {
    color: white !important;
    background-color: var(--color-2-dark-2) !important;
}

.notification.visible {
    opacity: 1;
    z-index: 10000;
    color: white;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification.hide {
    display: none;
    opacity: 0;
}

.alert-message-box {
    margin-bottom: 0;
    text-align: left;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 5000;
    margin: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 4999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.25s ease, transform 2s ease;
}

.loading-overlay.hidden {
    opacity: 0;
}

.loading-indicator {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5000;
    background-color: var(--color-text);
    color: white;
    font-family: var(--font-family-btn);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.25rem;
    z-index: 5000;
    font-weight: 600;
    padding: 60px 120px;
    border-radius: 40px;
}

.loading-spinner {
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px; /* Space between spinner and text */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message-text {
    margin-bottom: 0;
    text-align: left;
    margin-left: 30px;
    padding-top: 10px;
    padding-bottom:10px;
}

/* Tables (general) */
table {
    width: inherit;
    font-family: var(--font-family-p);
    text-align: left;
    border-collapse: collapse;
    overflow-x: auto;
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    background: white;
    vertical-align: middle;
}

thead tr th {
    font-family: var(--font-family-h2);
    font-size: 1.2rem;
    color: var(--color-1);
    font-weight: 500 !important;
    text-align: left;
    word-wrap: break-word; 
    white-space: normal; 
    overflow: visible; 
    text-transform: uppercase;
    line-height: 1.05;
    padding: 20px 5px;
    border-bottom: var(--color-1) 2px solid !important;
    border-top: var(--color-1) 2px solid !important;
    vertical-align: middle !important;
}

thead tr:first-child td {
    font-family: var(--font-family-p);
    font-size: 1.5rem;
    font-weight: 600;
    box-sizing: border-box;
}

tbody {
    font-family: var(--font-family-p);
    font-size: 14px;
    color: black;
    font-weight: 400;
    text-align: left;
    border-bottom: .5px var(--color-1) solid !important;

}

tbody tr {
    vertical-align: middle;
}

tbody tr:last-child {
    border-bottom: var(--color-1) 2px solid;
}

tbody tr td {
    padding: 5px 5px;
    border-bottom: .5px var(--color-1) solid;
    vertical-align: middle !important; /* Ensure vertical alignment */
}

td:nth-child(1) {
    font-weight: 600;
    font-size: 1.1rem;
}

.table-hover tbody tr:hover {
    background-color: var(--color-1-light-4);
}

.btn-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.table-card {
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.table-card tbody {
    color: var(--color-text);
    border-top: 1px solid var(--color-1-light-2) !important;
}

.table-card tbody tr td {
    border-bottom: 1px solid var(--color-1-light-2) !important;
}

.table-card tbody tr:last-child  {
    border-bottom: 0px solid var(--color-1-light-2) !important;
}

/* ===================================================
   Tooltip Styles
=================================================== */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container .icon-bg-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 25%;
    background-color: rgba(255, 255, 255, 1);
    opacity: 0;
    z-index: 0.5;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.tooltip-container:hover .icon-bg-circle {
    opacity: 1; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.tooltip-container:active .icon-bg-circle {
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.75);
}

/* Tooltip Text */
.tooltip-container .tooltip-text {
    font-family: var(--font-family-p);
    font-size: 0.9rem;
    line-height: 125%;
    text-align: left;
    text-transform: none !important;
    height: auto;
    width: auto;
    max-width: 300px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.9);
    /* add box shadow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);    
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateY(-120%) translateX(75%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
    z-index: 10;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -40%;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.tooltip-text.wide {
    min-width: 200px;
    max-width: 600px;
}

.tooltip-text.extrawide {
    min-width: 400px;
    max-width: 650px;
}

.tooltip-container .tooltip-text.extrawide {
    transform: translateY(-102%) translateX(82%); /* Adjust the values as needed */
}



/* ===================================================
   Back to Top Button
=================================================== */
#backToTop {
    position: fixed;
    bottom: 60px;
    right: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-1) !important;
    border: 2px solid var(--color-1) !important;
    display: none;
    height: 50px;
    width: 50px;
    text-align: center;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    border-radius: 50%; 
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 8px #0000001a;
    transition: background-color 0.5s ease, border 0.5s ease, color 0.5s, opacity 0.5s ease, visibility 0.5s ease;
    visibility: hidden; 
    opacity: 0; 
}

#backToTop:hover {
    border: 2px solid var(--color-1) !important;
    background-color: var(--color-1);
    color: white !important;
}

/* ===================================================
   Logo Styles
=================================================== */
.logo {
    width: 75px;
    height: auto;
    align-items: center;
}

.logo-inline {
    width: 50px;
    height: auto;
    align-items: center;
}

/* ===================================================
   Icon Styles
=================================================== */
.icon-inline {
    padding-right: 2rem;
}

.icon-action {
    z-index: 5;
    position: relative;
}

.icon-info {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.icon-info:hover {
    color: var(--color-1);
}

.icon-bg {
    position: relative;
    /* transform: translate(-50%, -50%); */
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    z-index: 0.5;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
}

.overlay-text {
    font-family: 
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 1;
    color: var(--color-text);
}

a i {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0),
         1px -1px 0 rgba(0, 0, 0, 0),
        -1px  1px 0 rgba(0, 0, 0, 0),
         1px  1px 0 rgba(0, 0, 0, 0); /* Adjust the color (#000 for black) and size (1px) as needed */
}

.static-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    top: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    padding-top: 16px;
    padding-right: 24px;
    padding-left: 24px;
}

.static-link-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    gap: 28px;
}

/* ===================================================
   Modal Styles
=================================================== */
/* .modal {
    z-index: 50000;
}

.modal-backdrop {
    z-index: 10000;
} */

.modal-title {
    text-align: center;
}

.close {
    position: absolute;
    top: 0;
    right: 16px;
    color: var(--color-text);
    font-size: 2rem;
    /* padding: 20px; */
    cursor: pointer;
    transition: color 0.5s ease;
}

.modal-header {
    display: flex;
    justify-content: center;
    /* justify-content: space-between; */
    align-items: center;
    height: 70px;
    padding: 16px;
}


.modal-content {
    border-radius: 20px;
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Modal Table */
.table-modal th, .table-modal td {
    text-align: center;
}

.table-modal td {
    font-size: 1rem !important;
    line-height: 1rem; 
    vertical-align: middle;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ===================================================
   Card Styles
=================================================== */
.card, card {
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 40px;
    overflow: visible;
}

.card-title, card-title {
    text-align: center !important;
}

.card-body, card-body {
    padding-bottom: 0px !important;
}

.card-header {
    background-color: inherit;
    margin-bottom: 20px;
    padding: 4px 0;
}

.card-small {
    padding: 16px !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

/* ===================================================
   DataTables Styles
=================================================== */
.dataTables_wrapper {
    font-family: var(--font-family-p);
    font-size: 14px;
    width: inherit;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 1px solid var(--color-text);
}

.dataTables_wrapper .dataTables_filter input {
    padding: 4px 10px;
    margin: 12px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 4px;
    margin: 4px;
    text-align: center;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 20px;
    width: 100%;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 20px;
    padding-bottom: 20px;
}

.datatables_wrapper .dataTables_paginate .ellipsis {
    padding: 4em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 50%;
    padding: 0.5em 0.9em;
    margin: 0.2em;
    border: 1px solid white;
    text-decoration: none;
    transition: background-color 0.5s ease;
}

.paginate_button:hover {
    background-color: var(--color-1-light-4);
    color: var(--color-1);
}

.paginate_button:active {
    border: 1px solid var(--color-1-light-1);
}

.paginate_button:focus {
    transition: background-color 0.3s ease, border 0.3s ease, color 0.3s ease;
    border: 1px solid var(--color-1) !important;
    background-color: var(--color-1-light-4);
}

.current, .current:hover, .current:active, .current:focus {
    background-color: var(--color-1);
    border: 1px solid var(--color-1);
    color: white;
}

.previous:hover, .next:hover {
    background-color: var(--color-1-light-4);
    border: 1px solid var(--color-1);
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background: none;
    position: relative;
    padding-right: 40px;
    transform: translateX(20px);
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before {
    content: "\f0dc"; 
    padding-right: 100px;
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    transform: translateX(-20px) translateY(-50%);
    opacity: 0.5;
    display: inline-block;
}

table.dataTable thead .sorting_asc:before {
    content: "\f0de"; /* FontAwesome icon for ascending sort */
}

table.dataTable thead .sorting_desc:before {
   content: "\f0dd"; /* FontAwesome icon for descending sort */
}

table.dataTable thead tr th {
    vertical-align: middle; /* Align text vertically in the middle */
}


/* ===================================================
   Typography and Text Styles
=================================================== */
h1, .h1 {
    font-family: var(--font-family-h1);
    font-size: 3rem;
    color: var(--color-2);
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    word-wrap: break-word; 
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

.h1-lg {
    font-size: 4rem;
}

h2, .h2 {
    font-family: var(--font-family-h2);
    font-size: 2rem;
    color: var(--color-2);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.05;
}

h3, .h3 {
    font-family: var(--font-family-h3);
    font-size: 1.5rem;
    color: var(--color-1);
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

h4, .h4 {
    font-family: var(--font-family-h4);
    font-size: 1.25rem;
    color: var(--color-1);
    font-weight: 500;
    text-align: left;
    word-wrap: break-word; 
    white-space: normal;
    overflow: visible;
    line-height: 1.15;
}

h5, .h5 {
    font-family: var(--font-family-h4);
    font-size: 1.1rem;
    color: var(--color-1);
    font-weight: 500;
    text-align: left;
    word-wrap: break-word; 
    white-space: normal; 
    overflow: visible;
    line-height: 1.15;
}

p {
    font-family: var(--font-family-p);
    font-size: 1rem;
    /* color: var(--color-text); */
    font-weight: 400;
    text-align: justify;
    word-wrap: break-word; 
    white-space: normal; 
    overflow: visible; 
}

a {
    font-family: var(--font-family-p);
    color: var(--color-1);
    font-weight: 600;
    text-align: justify;
    word-wrap: break-word;
    white-space: normal; 
    overflow: visible; 
    cursor: pointer !important;
    transition: .3s color;
}

a:hover {
    color: var(--color-1-light-1);
}

a:active {
    color: var(--color-1-light-2);
}

.page-title .centered {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-title .left-aligned {
    text-align: left;
    align-items: left;
    display: flex;
    flex-direction: column;
    justify-content: left;
}


/* ===================================================
   Button Styles
=================================================== */
button, .button, .btn {
    font-family: var(--font-family-btn);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    justify-content: center;
    align-items: center;
    word-wrap: break-word; 
    white-space: normal;
    overflow: hidden;
    margin: 10px 0 !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.15s background-color, 0.15s border-color, 0.15s text-shadow;
}

button:hover, .button:hover, .btn:hover {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-form {
    /* max-width: 30% !important; */
    height: 40px !important;
    padding: 8px 10px !important;
    font-size: 0.9rem !important;
    align-items: center;
    justify-content: center;
}

.btn-small {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
}

.btn-xs {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    padding: 0.5rem 0.25rem !important;
}

.btn .btn-large {
    padding-left: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
}

.btn-large {
    width: 100%;
    box-sizing: border-box;
}

.btn-wide {
    width: 100%;
    margin: 0 !important;
}

.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    color: #fff;
    margin-top: 7%;
    margin-bottom: 7%;
    padding-left: 20px;
    padding-right: 20px;
    transition: .15s background-color, 0.15s border;
}

.btn-primary {
    background-color: var(--color-1);
    border: 2px solid var(--color-1);
}

.btn-primary:hover {
    background-color: var(--color-1-light-1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-1);
}

.btn-primary:focus {
    background-color: var(--color-1-light-2) !important;
    border-color: var(--color-1-light-1);
}

.btn-primary:active {
    background-color: var(--color-1-light-2);
    border-color: var(--color-1-light-1);
}

.btn-secondary {
    background-color: var(--color-4);
    border: 2px solid var(--color-4);
}

.btn-secondary:hover {
    background-color: var(--color-4-light-1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-4);
}

.btn-secondary:focus {
    background-color: var(--color-4-light-2) !important;
    border-color: var(--color-4-light-1);
}

.btn-secondary:active {
    background-color: var(--color-4-light-2);
    border-color: var(--color-4-light-1);
}

.btn-danger {
    background-color: var(--color-3);
    border-color: var(--color-3);
}

.btn-success {
    background-color: var(--color-2);
    border-color: var(--color-2);
    border: 2px solid var(--color-2);
}

.btn-success:hover {
    background-color: var(--color-2-light-1);
}

.btn-success:active {
    background-color: var(--color-2-light-2);
    border-color: var(--color-2-light-1);
}

.btn-success:focus {
    background-color: var(--color-2-light-2);
    border-color: var(--color-2-light-1);
}

.btn-inline {
    padding: 16px;
    border-radius: 20px;
    margin: 0;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   Form Styles
=================================================== */
.label-required:after {
    content: " *";
    color: var(--color-1);
}

form, .form {
    display: flex;
    width: inherit;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 20px;
    margin-left: 0;
    margin-right: 0;
}

.form-section, form-section {
    padding-top: 24px;
    padding-bottom: 24px;
    border-top: 2px solid var(--color-1);
}

.form-row, .form-subrow {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2rem;
    margin-left: 0;
    margin-bottom: 0.25rem !important;
    justify-content: space-between;
    align-items: center;
}

.form-group {
    font-family: var(--font-family-p);
    /* font-size: 1rem; */
    /* color: var(--color-text); */
    flex: 1;
    /* font-weight: 400; */
    text-align: left;
    word-wrap: break-word; 
    white-space: normal; 
    overflow: visible;
}

.form-group:last-child {
    margin-right: 0; /* Removes the margin from the last form group */
}


.section {
    position: -webkit-sticky;
    position: sticky;
}

.form-header-1 {
    /* position: -webkit-sticky;
    position: sticky; */
    top: 0;
    margin-top: 4rem;
    margin-bottom: 1rem;
    color: var(--color-1);
}

.form-header-2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-1);
}

.form-check {
    padding-left: 0;
    margin-left: 0;
}

label, .label {
    font-weight: 500;
    /* font-size: 1rem; */
    width: 100%;
    box-sizing: border-box;
}


.toggle-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.toggle-container-with-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    width: 100%;
    box-sizing: border-box;
}


input[type="checkbox"].tgl {
    display: none;
}

input[type="checkbox"].tgl + .tgl-btn {
    display: inline-block;
    width: 3em;
    height: 1.5em;
    background: #fbfbfb;
    border-radius: 1.5em;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--color-1);
    transition: background 0.4s ease;
}

input[type="checkbox"].tgl + .tgl-btn:after {
    content: "";
    position: absolute;
    top: 1.25px;
    left: 1.5px;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: var(--color-1);
    transition: left 0.3s ease, background 0.3s ease;
}

input[type="checkbox"].tgl:checked + .tgl-btn {
    background: var(--color-1-light-4);
}

input[type="checkbox"].tgl:checked + .tgl-btn:after {
    left: calc(100% - 1.5px);
    transform: translateX(-100%);
    background: var(--color-1);
}

input[type="checkbox"].tgl + .tgl-btn:active:after {
    width: 1.4em;
}

.form-control {
    border-radius: 20px;
    height: auto;
    padding: 0.5rem 1rem;
    color: var(--color-text) !important;
}

select.form-control {
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none; /* Remove default dropdown arrow in Safari */
    -moz-appearance: none; /* Remove default dropdown arrow in Firefox */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000' width='18px' height='18px'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    /* position: absolute; */
    /* right: 2rem; */
}





/* ===================================================
   Utility Classes
=================================================== */
.mobile {
    display: none;
}

.desktop {
    display: block;
}

.mobile-xs {
    display: none;
}

.row, row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    width: 100%;
    flex-direction: row !important;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
    gap: 4%;
    padding-left: 24px !important;
    padding-right: 24px !important;
    margin: 0 !important;
    padding-top: 10px;
    padding-bottom: 10px;
}

.col, col {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-footer {
    color: var(--color-1);
    text-align: center;
    align-items: center;
    font-size: 0.9rem;
}

.extra-margin {
    margin-bottom: 33px;
}

.no-margin {
    margin: 0;
}

.valid-input {
    border: 2px solid var(--color-2);
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.max-width-300 {
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.left-aligned {
    text-align: left !important;
    align-items: left;
}

.centered {
    width: 100%;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

hr, .hr {
    border: solid 0.05px black;
    min-width: 300px;
    height: 0px;
}

.primary {
    color: var(--color-1) !important;
    z-index: 10;
}

.danger {
    color: var(--color-3) !important;
    z-index: 10;
}

.danger:hover {
    color: white;
    fill: white;
    border: 0.5px solid var(--color-3) !important;
}

.danger:active {
    color: var(--color-3-light-2) !important;
}

.secondary {
    color: var(--color-text) !important;
    z-index: 10;
}

.view:hover {
    color: var(--color-1) !important;
}

.view:active {
    color: var(--color-1-dark-1) !important;
}

.update:hover {
    color: var(--color-2) !important;
}

.update:active {
    color: var(--color-2-dark-1) !important;
}

.delete:hover {
    color: var(--color-3) !important;
}

.delete:active {
    color: var(--color-3-dark-1) !important;
}

.success {
    color: var(--color-2) !important;
    z-index: 10;
}

.row-mobile {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100% !important; 
    padding: 16px;
}

.group-border {
    border: 1px solid var(--color-1-light-3);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0;
}

/* ===================================================
   Custom Styles for Specific Objects
=================================================== */
.baseline_fuel_price_override_container,
.clean_fuel_price_override_container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


.vehicle {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2rem !important;
    border-radius: 20px;
    padding: 40px;
    border: 0.5px solid var(--color-1-light-2);
}


/* .form-header-1 {
    background-color: rgba(255, 255, 255, 1);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 20px 4px 4px 4px;
    margin: 20px 0;
    color: var(--color-1);
    z-index: 1000;
}

.vehicle-number {
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    padding: 4px 4px 10px 4px;
    z-index: 999;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
} */



/* ===================================================
   Responsive Adjustments
=================================================== */
@media (max-width: 1325px) {
    :root {
        font-size: 12px;
    }
}

@media (max-width: 1220px) {
    /* Layout */
    .content-container-dashboard {
        width: 96%;
        margin-left: 2%;
        margin-right: 2%;
        margin-bottom: 60px;
        padding-left: 2%;
        padding-right: 2%;
        padding-top: 0;
    }

    .dashboard-section {
        padding: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

        
    .row, row {
        padding: 4px 8px !important;
    }


    card, .card {
        padding: 10px;
    }

    table, .table {
        font-size: 0.75rem !important;
    }
    
    #backToTop {
        right: 20px;
        bottom: 40px;
    }


    .icon-action {
        font-size: 1.75rem !important;
    }

    container, .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .desktop {
        display: none;
    }

    #myFleets th:nth-child(3), #myFleets td:nth-child(3), 
        #myFleets th:nth-child(4), #myFleets td:nth-child(4) { 
        display: none;
        
    }

}

@media (max-width: 610px) {
    .btn-small {
        padding: 0 10px !important; /* Reduce padding */
        font-size: 0.8rem !important; /* Smaller font */
    }

    .btn-wide div {
        padding: 5px; /* Reduce internal div padding */
    }

    .static-link {
        padding-top: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Specific Objects */
    #myFleets  th:nth-child(2), #myFleets td:nth-child(2), /* Fleet ID */ 
        #myFleets th:nth-child(3), #myFleets td:nth-child(3),
        #myFleets th:nth-child(4), #myFleets td:nth-child(4) { 
        display: none;
    }

    #myScenarios th:nth-child(1), #myScenarios td:nth-child(1),
        #myScenarios th:nth-child(3), #myScenarios td:nth-child(3), 
        #myScenarios th:nth-child(4), #myScenarios td:nth-child(4) { 
        display: none;
    }

    .form-row {
        display: block; /* Stacks items vertically */
        width: 100%;
    }
    .form-group:last-child {
        margin-right: 0; /* Removes the margin from the last form group */
    }
    
    .mobile {
        display: block;
    }
}

@media (max-width: 550px) {
    .mobile-xs {
        display: block;
    }
    /* Layout */
    .content-container-dashboard {
        width: 98%;
        margin-left: 1%;
        margin-right: 1%;
    }

    .dashboard-section {
        width: 98%;
    }

    /* Specific Objects */
    #myFleets  th:nth-child(2), #myFleets td:nth-child(2) /* Fleet ID */,
        #myFleets th:nth-child(3), #myFleets td:nth-child(3),
        #myFleets th:nth-child(4), #myFleets td:nth-child(4),
        #myFleets th:nth-child(5), #myFleets td:nth-child(5) { 
        display: none;
    }
    /* Text styles */
    :root {
        font-size: 11px;
    }

    .h1-lg {
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.2rem;
    }
    h5 {
        font-size: 1rem;
    }
}
