.page-title {
    font-family: 'Quicksand';
    font-size: 20px;
    font-weight: 700;
    color: black;
    text-align: center;
    opacity: 1;
    transition: all 0.3s ease, color 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    top: 35vh;
}

body.dark .page-title,
body.dark .page-title.beside-search {
    color: #e0e0e0;
}

.page-title.search-active {
    opacity: 0;
    margin-top: 0;
}

.page-title.beside-search {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 20px;
    opacity: 0;
    z-index: 101;
}

.page-title.beside-search.visible {
    opacity: 1;
}

.clear-button {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    visibility: hidden;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .clear-button {
    color: #e0e0e0; /* Light color for dark mode */
}

.loading {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.suggestion-item {
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 13px;
    line-height: 24px;
    font-family: 'Roboto', sans-serif;
}

.suggestion-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.dark .suggestion-item {
    color: #e0e0e0;
}

body.dark .suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}