/* Header section */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 25px; */
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
}

.user-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 15px;
}

.user-info span {
    font-weight: 500;
    color: #495057;
}

.user-info span i {
    color: #0275d8;
    margin-right: 5px;
}

.logout-btn {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #d32f2f;
}



body {
    /* width: 800px; */
    width: 100%;
    /* width: 475px; */
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.warning-text {
    font-size: 0.8em;
    color: red;
}

.container {
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;

    max-width: 750px;
}

/*.driver-search-container {*/
/*    background-color: #f8f9fa;*/
/*    padding: 15px;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 15px;*/
/*}*/

/*.search-container {*/
/*    background-color: #f8f9fa;*/
/*    border-radius: 8px;*/
/*    max-height: 0;*/
/*    visibility: hidden;*/
/*    overflow: hidden;*/
/*    transition: max-height 0.3s ease-out;*/
/*}*/

/*.search-container.show {*/
/*    padding: 15px;*/
/*    margin-top: 20px;*/
/*    margin-bottom: 30px;*/
/*    max-height: 1000px;*/
/*    visibility: unset;*/
/*}*/

.load-list {
    margin-top: 15px;
}

/*.driver-details {*/
/*    display: none;*/
/*    margin-top: 15px;*/
/*}*/

.load-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.load-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-rate {
    font-size: 1em;
    padding: 8px;
}

/*.driver-avatar {*/
/*    width: 60px;*/
/*    height: 60px;*/
/*    background-color: #e9ecef;*/
/*    border-radius: 50%;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    margin-right: 15px;*/
/*}*/

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.section-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.error-message {
    display: none;
}

/* Make Select2 inherit Bootstrap form-control styles */
.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px); /* Match Bootstrap input height */
    padding: 0.375rem 0.75rem; /* Match padding */
    font-size: 1rem; /* Match font size */
    line-height: 1.5; /* Match line height */
    border: 1px solid #ced4da; /* Match border */
    border-radius: 0.25rem; /* Match border radius */
    background-color: #fff; /* Match background */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Highlight on focus */
.select2-container--default .select2-selection--single:focus {
    border-color: #80bdff; /* Match Bootstrap focus border color */
    outline: 0; /* Remove outline */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Match Bootstrap focus shadow */
}

/* Adjust dropdown arrow position */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%; /* Center the arrow vertically */
    top: 0; /* Align arrow at the top */
    right: 0.75rem; /* Match right padding */
}

/* Adjust placeholder text color */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d; /* Match Bootstrap placeholder color */
}

/* Adjust dropdown styling */
.select2-container--default .select2-dropdown {
    border: 1px solid #ced4da; /* Match border */
    border-radius: 0.25rem; /* Match border radius */
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); /* Add shadow for dropdown */
}

/* Adjust active item highlight */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff; /* Match Bootstrap active color */
    color: #fff; /* Match text color */
}



.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.drop-zone.dragging {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.drop-zone.error {
    border-color: #dc3545;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    color: #6c757d;
}

.csv-file-icon {
    width: 2.5em;
    height: 2.5em;
    /*margin: 0 auto;*/
    /*color: #6c757d;*/
}

#file-info {
    margin: 0;

    white-space: nowrap; /* Prevents text from wrapping to a new line */
    overflow: hidden;    /* Hides any overflowing content */
    text-overflow: ellipsis; /* Adds ellipsis (...) to truncated text */
    display: block;      /* Ensures the element behaves as a block for proper truncation */
    max-width: 100%;     /* Adjust the width based on the container's size */
}

#file-container {
    display: flex;
    flex-direction: row;
}

#file-name-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

#file-reload-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#file-reload-container button {
    color: black;
    font-weight: bold;

    border: none; /* Remove border */
    background: none; /* Ensure no background */
    outline: none; /* Remove focus outline */
    cursor: pointer; /* Pointer cursor on hover */
    padding: 0; /* Remove extra padding */
}

#file-reload-container button:focus {
    outline: none; /* Prevent focus outline when clicked */
}

#file-reload-container svg {
    width: 1.5em;
    height: 1.5em;
    transition: transform 0.3s ease, font-size 0.3s ease; /* Smooth hover effects */
}

#file-reload-container button:hover svg {
    transform: scale(1.2); /* Enlarge SVG on hover */
    /*font-size: 1.7em; !* Slightly increase font weight look on hover *!*/
}

#file-reload-container button:hover {
    cursor: pointer; /* Pointer cursor on hover for button */
}