﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

table.dataTable {
    background: white;
}

div.tab-content {
    overflow-x: auto;
}

.bw-0 {
    border-width: 0 !important;
}

.nav-link.active {
    color: white!important;
    background-color: blueviolet!important;
}

.mainbody a.nav-link {
    color: rgba(var(--bs-info-rgb), var(--bs-text-opacity)) !important;
    width: fit-content!important;
}


.form-floating label > span {
    transition: opacity 250ms 0ms ease-in-out;
}

.form-floating > .form-control:not(:placeholder-shown) ~ label > span {
    display: none;
}

input.form-control {
    max-width: 500px;
    min-width: 220px;
}

.short-text {
    max-width: 240px!important;
}

input#UserName, input#Name, input#Size, label {
    max-width: 240px;
}

input#Email {
    max-width: 320px;
}

.w-340 {
    width: 340px!important;
}

.w-260 {
    width: 260px!important;
}

.form-control select {
    max-width: 240px;
    min-width: 200px;
}

div.dates-div.input-group {
    display: flex;
    align-items: stretch; /* Ensures all children are the same height */
}

div.dates-div.input-group .input-group-append .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px; /* Adjust padding for alignment */
    height: 100%; /* Match parent height */
}

div.dates-div.input-group .btn {
    white-space: nowrap; /* Prevent button text from wrapping */
    margin-bottom: 0px !important;
}

div#OtherCityDiv {
    width: 300px!important;
    position: relative!important;
}
ul.select2-results__options {
    list-style: none;
}

span.select2-container {
    position: relative!important;
    top: 0!important;
    left: 0!important;
}

span.photoMsg {
    display: block;
}



.modal-header {
    background-color: white !important;
}

.modal-body {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    padding: 1.6rem 2rem!important;
}

#StickerNumber, #BikePhone, #Size {
    width: 90%!important;
}

#StickerNumberInfo {
    position: absolute;
    top: 10px;
    right: 17px;
}

#BikePhoneInfo {
    position: absolute;
    top: 10px;
    left: 255px;
}

#SizeInfo {
    position: absolute;
    top: 24px;
    right: 4px;
}

#preview {
    display: flex;
    flex-wrap: wrap;
}

.image-container {
    position: relative;
    margin: 5px;
}

.image-container img {
    height: auto;
}

.delete-button {
    position: absolute;
    top: 1px;
    right: 1px;
    cursor: pointer;
    background-color: white;
    color: black;
    border: none;
    border-radius: 15px;
}

.custom-file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Style for the custom button */
.custom-file-input-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
}

/* Style for the actual file input (opacity set to 0 to hide it) */
.custom-file-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

ul#bikeMakes {
    display: none;
    list-style: none;
    border: 1px solid black;
    border-radius: 5px;
}

/*
    this .hr-text stuff is for an hr with text embedded and a tapering line on either end of the string
*/
.hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: .5;
}

.hr-text::before {
    content: '';
    // use the linear-gradient for the fading effect // use a solid background color for a solid bar background: linear-gradient(to right, transparent, #818078, transparent);
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.hr-text::after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    // this is really the only tricky part, you need to specify the background color of the container element... color: #818078;
    background-color: #fcfcfa;
}

.dt-head-center {
    text-align:center;
}


@media (max-width: 768px) {
    .image-container img {
        width: 150px!important;
    }
}

@media (max-width: 576px) {
    .image-container img {
        width: 100px!important;
    }

    div.dates-div {
        display: none;
    }

    .dataTable thead {
        display: none;
    }

    .dataTable tr { /* Target table rows */
        display: flex; /* Make rows display as flexbox units */
        flex-direction: column; /* Arrange cells vertically */
        border: 1px solid #ddd; /* Optional: add borders for separation */
        margin-bottom: 1em;
    }

    .dataTable td, .dataTable th { /* Target table cells */
        padding: 10px; /* Adjust padding as needed */
        text-align: left; /* Align cell text to the left */
        border-bottom: 1px solid #ddd; /* Optional: add bottom borders */
    }
}
