/* Shared CSS for Velogic.Blazor.Common components */
/* This file contains styles needed by components in the shared library */

/* ========== Core Utility Classes ========== */
.sb-hide {
    display: none;
}

.sf-visible {
    visibility: visible;
}

.sf-hidden {
    visibility: hidden;
}

/* ========== Icon Font Declaration ========== */
@font-face {
    font-family: "sbicons";
    src: url("../fonts/sbicons.ttf") format("truetype"),
         url("../fonts/sbicons.woff") format("woff"),
         url("../fonts/sbicons.svg#sbicons") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.sb-icons {
    font-family: "Montserrat", "Segoe UI", "GeezaPro", "DejaVu Serif", "sans-serif", "sbicons";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Search Component Styles ========== */
.sf-search-container {
    width: 100%;
    height: 100%;
}

.sf-search-input {
    letter-spacing: 0;
    line-height: 23px;
    padding-left: 15px;
    width: 100%;
    border-radius: 25px;
    background-color: #F4F6FC;
    border: 1px solid #a7a7a7;
    height: 100%;
}

.sf-search-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.sf-search-popup {
    position: absolute;
    overflow-y: auto;
    background: #fff;
    width: 100%;
    margin-top: 5px;
    box-shadow: 0 2px 3px 1px rgba(0,0,0,.21);
    border: 1px solid #e0e0e0;
    max-height: 500px;
}

.sf-search-popup * {
    height: auto !important;
}

.sf-search-no-data {
    color: #000;
    cursor: default;
    font-size: 14px;
    padding: 14px 16px;
    text-align: center;
}

.sf-search-container .sf-search-icon,
.sf-search-container .sf-clear-icon {
    position: relative;
    padding: 0px !important;
    margin-right: 15px;
    float: right;
    margin-top: -33px;
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    color: #333;
    letter-spacing: 0;
    line-height: 23px;
}

.sf-search-container .sf-search-icon {
    cursor: text;
}

.sf-search-icon::before {
    content: "\e925";
    color: #B3B3CB;
}

.sf-clear-icon::before {
    content: "\e900";
    color: #9b9393;
}

.sf-search-input::-ms-clear {
    display: none;
}

/* ========== List Component Styles ========== */
.sf-list-ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.sf-list-li {
    background: transparent;
    border: none;
    height: 40px;
    line-height: 1.5;
    padding: 8px 16px 8px 16px;
    position: relative;
    cursor: pointer;
}

.sf-list-group-li {
    border: none;
    color: #000000;
    opacity: 87;
    font-weight: 700;
    background: transparent;
    height: 40px;
    line-height: 1.5;
    padding: 8px 16px 8px 16px;
    list-style-type: none;
}

.sf-list-li:hover:not(.sf-list-li-active),
.sf-search-hover {
    background: #d7d7d7;
}

.sf-list-li.sf-list-li-active {
    background: #007bff;
}

.sf-list-li.sf-list-li-active * {
    color: #ffffff;
}

/* ========== Search Key Navigation ========== */
.sf-key-nav {
    /* Additional styling for keyboard navigation if needed */
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .sf-search-container .sf-search-icon,
    .sf-search-container .sf-clear-icon {
        margin-top: -25px;
    }
}