/* smart-search.css */

#smart-search-input {
    width: 100%;
    margin-bottom: 10px;
    padding: .5rem .8rem;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, .07);
    border-radius: 5px;
    outline: none;
    border: 1px solid transparent;
    color: #fff;
    font-family: inherit;
    background-image: url("/_media/icons/search.png");
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 16px 16px;
    padding-left: 2rem;
   }
   #smart-search-input:focus {
    border-color: rgba(255, 255, 255, .2);
   }
   
   .smart-search-modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 272px;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn .3s ease;
   }
   
   .smart-search-modal {
    padding: 1rem;
    width: calc(100% - 20px);
    max-width: 500px;
    background-color: #181f25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    animation: flyIn .3s ease;
    overflow: hidden;
   }
   
   .smart-search-result:last-child {
    border-bottom: none;
   }
   
   #smart-search-results {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-height: 300px;
    max-height: 300px;
    width: 100%;
    overflow-y: auto;
   }
   
   #smart-search-results div.not-found {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
   }
   
   a.search-result-item {
    text-decoration: none;
    color: inherit;
    padding: .3rem .5rem;
    background: rgba(255, 255, 255, .05);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
   }
   a.search-result-item:hover {
    background: rgba(255, 255, 255, .1);
   }
   
   a.search-result-item div.type {
    font-size: .8em;
    opacity: .8;
   }
   
   a.search-result-item div.value {
    font-size: 1.1em;
    color: rgba(255, 255, 255, .95);
   }
   a.search-result-item:hover div.value {
    text-decoration: underline;
   }
   
   
   @media (max-width: 768px) {
    .smart-search-modal-bg {
     padding-left: 0;
    }
   }
   
   @keyframes flyIn {
    from {
     opacity: 0;
     transform: translateY(30%);
    }
    to {
     opacity: 1;
    }
   }
   @keyframes fadeIn {
    from {
     opacity: 0;
    }
    to {
     opacity: 1;
    }
   }
   @keyframes spin {
    0% {
     transform: rotate(0deg);
    }
    100% {
     transform: rotate(360deg);
    }
}
