/* Import Raleway font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

/* Container for the entire shortcode output */
.subt-search-container, .subt-saved-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Raleway', sans-serif;
}

/* Form styling */
.subt-search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.subt-search-form input[type="text"] {
    width: 600px;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f0f0f0;
    font-family: 'Raleway', sans-serif;
}

.subt-search-form input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    font-family: 'Raleway', sans-serif;
}

.subt-search-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Layout for filters and results */
.subt-layout {
    display: flex;
}

.subt-filters {
    width: 25%;
    padding-right: 20px;
}

.subt-filter-form label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
}

.subt-filter-form input[type="number"],
.subt-filter-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.subt-filter-form input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    width: 100%;
}

.subt-filter-form input[type="submit"]:hover {
    background-color: #0056b3;
}

.subt-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.subt-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.subt-results-wrapper {
    width: 75%;
}

/* Results list */
.subt-results, .subt-saved-results {
    list-style: none;
    padding: 0;
}

.subt-results li, .subt-saved-results li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.subt-article-content {
    flex: 1;
}

/* Style for article headlines */
.subt-results li .subt-title, .subt-saved-results li .subt-title {
    color: #0076cb;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.subt-results li .subt-title:hover, .subt-saved-results li .subt-title:hover {
    text-decoration: underline;
}

/* Article options */
.subt-article-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.subt-article-options span, .subt-article-options a, .subt-article-options button {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #0076cb;
    text-decoration: none;
}

.subt-article-options span:hover, .subt-article-options a:hover, .subt-article-options button:hover {
    background-color: #000;
    color: white;
}

/* Saved button style (red background) */
.subt-article-options .subt-toggle-save.saved {
    background-color: red;
    color: white;
}

/* View article button in DOI modal */
.subt-view-article {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    font-size: 14px;
}

.subt-view-article:hover {
    background-color: #0056b3;
}

/* DOI link in modal */
.subt-doi-link {
    color: #0076cb;
    text-decoration: none;
}

.subt-doi-link:hover {
    text-decoration: underline;
}

/* DOI text in modal */
.subt-doi-text {
    font-size: 16px;
    font-weight: 600;
}

/* Cite modal headings */
.subt-cite-heading, .subt-cite-subheading {
    font-size: 15px;
    font-weight: 700;
}

/* Cite modal citation text */
.subt-cite-text {
    font-size: 15px;
}

/* Selection controls */
.subt-selection-controls {
    margin-bottom: 10px;
}

.subt-selection-controls button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    font-family: 'Raleway', sans-serif;
}

.subt-selection-controls button:hover {
    background-color: #0056b3;
}

/* Bulk unsave button */
.subt-bulk-unsave {
    background-color: #dc3545;
}

.subt-bulk-unsave:hover {
    background-color: #c82333;
}

/* Checkbox styling */
.subt-article-checkbox {
    margin-top: 5px;
}

/* Modal styles */
.subt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.subt-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.subt-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.subt-close:hover,
.subt-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#subt-modal-body pre {
    white-space: pre-wrap;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
}

/* Pagination styles */
.subt-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Style for pagination Previous button */
.subt-prev-button {
    display: block;
    text-align: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    width: fit-content;
}

.subt-prev-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Style for pagination Next button */
.subt-next-button {
    display: block;
    text-align: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    width: fit-content;
}

.subt-next-button:hover {
    background-color: #0056b3;
    text-decoration: none;
}

/* Utility class for hiding elements (added for potential JS toggling) */
.hidden {
    display: none !important;
}