#spotlight-modal {
    display: none;
    position: fixed;
    top: 20px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
}

#spotlight-content {
    display: flex;
    flex-direction: column;
    margin: 10% auto auto;
    max-width: 500px;
    background: #ffffffeb;
    border-radius: var(--border-radius-primary);
    backdrop-filter: blur(6px);
    border: 1px solid #cacaca;
    -webkit-box-shadow: 0 4px 21px -3px rgba(0,0,0,0.54);
    box-shadow: 0 4px 21px -3px rgba(0,0,0,0.54);
}

#spotlight-results {
    max-height: 480px;
    overflow: auto;
}

#spotlight-results .no-results {
    padding-left: 30%;
    margin: 10px 0;
}

#spotlight-results .result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px;
    border-radius: var(--border-radius-primary);
    align-items: center;
}

#spotlight-results .result .left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Status dot for device online/offline indicator */
#spotlight-results .status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0;
}
#spotlight-results .status-dot.online {
    background-color: #2ecc71; /* green */
}
#spotlight-results .status-dot.offline {
    background-color: #bdc3c7; /* gray */
}

#spotlight-search-bar {
    display: flex;
    flex-direction: row;
    border-radius: var(--border-radius-primary);
    gap: 5px;
}

#spotlight-results .result {
    text-align: left;
    color: #444444;
    padding: 10px 0 10px 20px;
    margin: 4px 14px;
}

#spotlight-search-bar input {
    border: none;
    width: 60%;
    background: none;
    padding: 10px;
    margin-left: 10px;
}

#spotlight-results .company {
    justify-self: end;
    text-align: right;
    font-size: var(--font-size-extrasmall);
    line-height: 25px;
    padding-right: 12px; /* add some spacing from the container edge */
}

#spotlight-results .result:hover,
#spotlight-results a:focus .result {
    background: var(--color-light);
}

#spotlight-modal .perform-search {
    cursor: pointer;
    padding: 6px 12px;
    background-color: #fff;
    color: #242736;
    border-radius: var(--border-radius-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spotlight-search {
    border: none;
    background: transparent;
    padding: 10px 10px;
    width: 30%;
    border-radius: var(--border-radius-primary);
}

#spotlight-results a:focus {
    outline: none;
}

#spotlight-results .header-title {
    margin: 10px 18px;
    font-size: var(--font-size-small);
    font-weight: 700;
    font-family: Lato, sans-serif;
    color: #ff5800;
}

#spotlight-search-history{
    width: 100%;
    padding: 10px;
}

#spotlight-search-history-items{
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--color-medium-dark);
    line-height: 5px;
    font-size: var(--font-size-extrasmall);
    overflow: scroll;
    scrollbar-width: none;
}

.spotlight-search-history-item{
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.spotlight-search-history-item p{
    margin: auto 0;
    min-width: 80px;
}

.history-button{
    border-radius: 2vh;
    padding: 5px 13px;
    border: 1px solid var(--color-light);
    background: none;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px;
    max-width: 100px;
}

.history-button:hover {
    background: var(--color-light);
}