body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

header {
    background-color: #343a40;
    color: white;
    padding: 1rem;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 1.8rem;
}

form {
    margin: 1rem auto;
    text-align: center;
}

form input, form select, form button {
    padding: 0.5rem;
    margin: 0.2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 1rem auto;
}

li {
    background: white;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination {
    text-align: center;
    margin: 1rem;
}

.pagination a {
    margin: 0 0.5rem;
    text-decoration: none;
    color: #007bff;
}

.results-count {
    font-weight: bold;
    font-size: 1.1em;
    margin: 15px 0;
    padding: 8px 12px;
    background-color: #f0f4f8; /* subtle background */
    border-left: 4px solid #007acc; /* accent bar */
    color: #333;
}

/* Sidebar container */
.sidebar {
    width: 220px;
    background: #f4f6f8;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sidebar-toggle {
    display: none; /* hidden on desktop */
    background: #1abc9c;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.sidebar-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 0.5rem;
}

.sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-content ul li {
    margin: 0.5rem 0;
}

.sidebar-content ul li a {
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: #34495e;
    transition: background 0.2s, color 0.2s;
}

.sidebar-content ul li a:hover {
    background: #1abc9c;
    color: #fff;
}

.sidebar-content ul li a.active {
    background: #16a085;
    color: #fff;
    font-weight: bold;
}

/* Mobile: collapse sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-block;
    }
}

.snippet-toggle {
    cursor: pointer;
    background: #1abc9c;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.snippet-toggle:hover {
    background: #16a085;
}

/* Snippet meta line */
.snippet-meta {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0.3rem 0;
    padding: 0.3rem 0;
    border-left: 3px solid #1abc9c;
    padding-left: 0.5rem;
}

/* Snippet body text */
.snippet p {
    margin: 0.5rem 0;
    line-height: 1.4;
    color: #444;
}

/* Read more link */
.read-more {
    color: #1abc9c;
    font-weight: bold;
    text-decoration: none;
    margin-left: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Toggle summary button */
.snippet-toggle {
    cursor: pointer;
    background: #1abc9c;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.snippet-toggle:hover {
    background: #16a085;
}

.read-more {
    color: #1abc9c;
    font-weight: bold;
    text-decoration: none;
    margin-left: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

.read-more {
    color: #1abc9c;
    font-weight: bold;
    text-decoration: none;
    margin-left: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}


