/**
 * Literature List Styles
 */

/* Main layout */
.literature-container {
    margin-bottom: 30px;
}

.literature_main_row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-container {
    width: 100%;
    margin-bottom: 20px;
}

.literature_filter_section {
    width: 35%;
    float: left;
    padding-right: 15px;
}

.literature_list_section {
    width: 65%;
    float: left;
}

.literature_list_section .literature_list {
    width: 100%;
}

/* Filter styles */
.filter_toggle {
    margin-left: 10px;
    display: inline-block;
    color: #0E6AB5;
}

.literature_filter {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.literature_filter:focus {
    border-color: #0E6AB5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 106, 181, 0.2);
}

/* Style for active filters */
.literature_filter option:checked {
    background-color: #f0f8ff;
    font-weight: bold;
}

.literature_filter.active-filter {
    border-color: #0E6AB5;
    background-color: #f8fbff;
    font-weight: 500;
    box-shadow: 0 0 5px rgba(14, 106, 181, 0.3);
}

/* Filter Actions */
.filter-actions {
    margin-top: 15px;
    text-align: center;
}

.reset-filters {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.reset-filters:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.reset-filters:active {
    transform: translateY(0);
}

.reset-filters i {
    font-size: 12px;
}

/* Debug button - keeping for backward compatibility but hiding */
.filter-debug {
    margin-top: 15px;
    display: none;
}

#debug-literature-filter {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
}

#filter-status {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin: 20px 0;
}

.no-results-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.no-results-content p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

.btn-reset-inline {
    background: none;
    border: none;
    color: #0E6AB5;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    margin: 0 2px;
}

.btn-reset-inline:hover {
    color: #006a8f;
}

/* Literature rows */
.literature_list .row {
    border: 1px solid #dfdfdf;
    padding: 15px;
    clear: both;
    margin-bottom: 10px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Critical visibility styles - !important to ensure they take effect */
.literature_row {
    display: none !important;
}

.literature_row.literature_visible {
    display: flex !important;
}

/* Literature name and category */
.literature_name {
    flex: 1;
    padding-right: 15px;
}

.subheadcat {
    margin: 5px 0 0;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

/* Download and view buttons */
.literature_download, .literature_view {
    margin-left: 10px;
}

.document_download, .document_view {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
}

.document_download {
    background-color: #0E6AB5;
}

.document_view {
    background-color: #5cb85c;
}

.document_download:hover {
    background-color: #006a91;
    color: #fff;
    text-decoration: none;
}

.document_view:hover {
    background-color: #449d44;
    color: #fff;
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .literature_filter_section,
    .literature_list_section {
        width: 100%;
        float: none;
    }
    
    .literature_filter_section {
        margin-bottom: 20px;
    }
    
    .literature_row.literature_visible {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .literature_name {
        margin-bottom: 15px;
        padding-right: 0;
    }
    
    .literature_download, .literature_view {
        margin: 5px 10px 5px 0;
    }
} 