/*
File: sidebar.css
Contains styles for the sidebar and its widgets.
- Added sticky positioning.
- Made fonts and line heights smaller for a more compact view.
*/

.widget-area {
    /* START: Sticky Sidebar Styles */
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 20px; /* Space from the top of the viewport when sticky */
    /* END: Sticky Sidebar Styles */
}

.widget-area .widget {
    margin-bottom: 1.25em;
    background-color: #ffffff;
    padding: 1.25em;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px -2px rgba(0,0,0,0.04), 0 1px 2px -1px rgba(0,0,0,0.02);
}

.widget-area .widget-title {
    font-size: 0.95rem; /* Reduced from 1rem */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.4; /* Reduced line height */
}

.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area li {
    padding: 0.5em 0; /* Reduced from 0.6em */
    border-bottom: 1px solid #f1f5f9;
}

.widget-area li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-area li a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem; /* Reduced from 0.95rem */
    line-height: 1.5; /* Reduced line height */
}

.widget-area li a:hover {
    color: var(--color-primary);
}

.widget_search .search-form {
    display: flex;
}

.widget_search .search-field {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem; /* Matched font size */
}

.widget_search .search-submit {
    border: 1px solid var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
    padding: 0 1em;
    cursor: pointer;
}