@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

body {
    font-family: Arial, Helvetica, Tahoma, sans-serif;
    margin: 0;
}

.side {
    padding: 20px;
}

.sideTitle {
    font-family: Verdana, Helvetica, Arial, Tahoma, sans-serif;
    color: #fff;
    font-weight: 700;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #448bfc;
}

.sideContent {
    font-family: Verdana, Helvetica, Arial, Tahoma, sans-serif;
    color: #231f20;
    font-size: 14px;
}

.main {
    padding: 0 10px 20px 10px;
}

.mainSectionHeader {
    font-family: Verdana, Helvetica, Arial, Tahoma, sans-serif;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    padding: 10px 25px;
    margin: 0 0 25px 0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.h4.mainSectionHeader {
    font-size: 16px;
}

.multideckButton {
    font-size: 12px;
    font-weight: 700;
    font-family: Verdana, Helvetica, Arial, Tahoma, sans-serif;
    color: #5401ef;
    background-color: yellow;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.libraryListHeader {
    border-radius: 5px;
}

.libraryListHeader i {
    float: left;
}

.listImage, .listImageNotSelected {
    cursor: pointer;
    margin: 0 5px;
    padding: 5px;
    border-radius: 3px;
}

.listImage {
    background-color: #448bfc;
    opacity: 1;
}

.listImageNotSelected {
    opacity: 0.5;
}

.center {
    margin: auto;
    width: 90%;
    padding: 10px;
}

#listGrid {
    margin: auto;
    display: flex;
    padding: 5px 0 0 0;
    flex-wrap: wrap;
    list-style: none;
    overflow-y: auto;
}

#listGrid li {
    box-sizing: border-box;
    flex-shrink: 0;
    list-style: none;
    padding: 0 15px 25px 15px;
}

#listGrid p {
    height: 100%;
    display: block;
    overflow: hidden;
    position: relative;
    text-align: center;
}

#productBox {
    width: 190px;
    height: 275px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 2px 2px 8px #b4b4b4;
    padding: 5px;
}

#productBox a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

#productBox a:hover {
    color: #538bfa;
}

.prodBoxImg {
    max-height: 145px;
    min-height: 145px;
    max-width: 150px;
}

.heart {
    width: 27px;
    height: 24px;
}

.heart-button {
    float: right;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.datasheet {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    height: 29px;
    position: absolute;
    top: 0;
    right: 50px; /* Adjust this value to control distance from heart */
}

.datasheetList {
    display: block;
    cursor: pointer;
    max-height: 27px;
}

.listView {
    padding: 0 5px 10px 5px;
}

.listView .listTitle {
    padding-top: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

.listView .listTitle:hover {
    color: #538bfa;
}

.sideContainer {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.sideContainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 23px;
    width: 23px;
    background-color: #eee;
    border-radius: 3px;
    margin-bottom: 3px;
}

.sideContainer:hover input ~ .checkmark {
    background-color: #ccc;
}

.sideContainer input:checked ~ .checkmark {
    background-color: #448bfc;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.sideContainer input:checked ~ .checkmark:after {
    display: block;
}

.sideContainer .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

@media screen and (max-width: 600px) {
    .side, .main {
        flex: 100%;
    }
}

@media screen and (max-width: 550px) {
    #launchContainer {
        margin: 0;
        padding: 0;
    }
}

.viewIcon {
    height: 30px;
}
.searchIcon {
    height: 25px;
    width: 25px;
}

.clearButton {
    position: absolute;
    right: 47px; /* Position just before the search button */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    z-index: 10;
    background: none;
    border: none;
    font-size: 30px;
    padding: 0 10px;
    display: none; /* Hide by default, will show when input has content */
}

.clearButton:hover {
    color: #ff0000;
}

.autocomplete-results {
    position: absolute;
    z-index: 1000;
    background-color: white;
    width: max-content; /* Fits content width */
    min-width: 200px; /* Minimum width for very short results */
    max-width: 500px; /* Maximum width to prevent extremely wide dropdowns */
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: none;
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item strong {
    font-weight: bold;
    color: #448bfc;
}

.collapse-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.collapse-arrow.collapsed {
    transform: translateY(-50%) rotate(180deg);
}
