:root {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility:    hidden;
    -ms-backface-visibility:     hidden;
    --serif: "Libre Baskerville", serif;
    --sans-serif: "League Spartan", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

* {
    font-family: var(--sans-serif);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
#searchInput {
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    background: white;
    transition: border-color 0.15s;
}
#searchInput:focus {
    outline: none;
}
.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-chip {
    background: #eee;
    padding: 0.25rem 0.8rem;
    border-radius: 2rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    border: 1px solid transparent;
    font-size: 0.85rem;
}
.tag-chip:hover {
    color: #fff;
    background: #369;
}
.tag-chip.active {
    background: #369;
    color: white;
    border-color: #369;
}
.note-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}
.note-item {
    background: white;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.note-title {
    color: #369;
}
.note-title:hover {
    text-decoration: underline;
}
.note-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.note-tag {
    background: #eee;
    padding: 0.1rem 0.6rem;
    border-radius: 1rem;
    color: #495057;
}
.empty-state {
    color: #6c757d;
    font-style: italic;
    padding: 1rem 0;
}
#resultCount {
    color: #666;
}
.search-hint {
    font-size: 0.75rem;
    color: #666;
}
.search-hint code {
    background: #eee;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}
