.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.container.two-pane {
    max-width: none;
    display: flex;
    height: 100vh;
    padding: 0;
}

.container.two-pane .search-side {
    width: 50%;
    overflow-y: auto;
    padding: 20px;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
}

.container.two-pane .search-side .search-container {
    max-width: 100%;
}

.container.two-pane .search-side .result-card {
    max-width: 100%;
    box-sizing: border-box;
}

.container.two-pane .iframe-side {
    width: 50%;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
}

.container.two-pane .iframe-side iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.search-side {
    width: 100%;
    overflow-y: auto;
    padding: 20px;
}

.result-abstract {
    margin-top: 8px;
    color: #444;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
}

.result-abstract:not(.expanded) .abstract-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-abstract.expanded .abstract-text {
    display: block;
}

.expand-indicator {
    display: none;
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    margin-left: 5px;
}

.result-abstract:not(.expanded) .expand-indicator {
    display: inline;
}

.result-abstract:hover .expand-indicator {
    text-decoration: underline;
}

/* Remove preview-related styles */
.preview-side,
#paper-preview {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #e8dced;
    font-size: 1rem;
    min-height: 100vh;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.search-container {
    max-width: 700px;
    margin: 0 0 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex: 4;
    min-width: 0;
}

.select-wrapper {
    position: relative;

}

.search-icon, .select-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
}

.search-input {
    flex-grow: 1;
    padding: 6px 8px 6px 28px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.results-count {
    padding: 6px 8px 6px 28px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 60px;
    max-width: 80px;
    box-sizing: border-box;
}

.search-type {
    padding: 6px 8px 6px 28px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 120px;
    max-width: 130px;
    box-sizing: border-box;
}

.search-type option {
    padding-left: 0;
}

.search-type:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.search-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #a7549f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    background-color: #8a437f;
}

.results-container {
    display: grid;
    gap: 15px;
}

.result-card {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(167, 84, 159, 0.15);
}

.result-title {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 8px;
    color: #1a0dab;
}

.result-title a {
    text-decoration: none;
    color: #1a0dab;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-meta {
    color: #666;
    font-size: 1rem;
    margin-bottom: 8px;
}

.result-abstract {
    margin-top: 8px;
    color: #444;
    font-size: 1rem;
}

.no-results {
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    text-align: center;
    color: #666;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.relevance {
    display: inline-block;
    padding: 2px 4px;
    background-color: #e6f4ea;
    color: #137333;
    border-radius: 3px;
    font-size: 1rem;
    margin-left: 8px;
}

/* Paper Detail Page Styles */
.paper-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.paper-title {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.paper-meta {
    margin-bottom: 30px;
}

.meta-item {
    margin-bottom: 10px;
}

.meta-label {
    font-weight: bold;
    color: #666;
}

.paper-abstract {
    margin-top: 30px;
}

.paper-abstract h2 {
    color: #333;
    margin-bottom: 15px;
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    color: #4285f4;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

.total-matches {
    margin-bottom: 15px;
    padding: 8px;
    background-color: #e8f0fe;
    border-radius: 4px;
    color: #1a73e8;
    font-weight: 500;
    font-size: 1rem;
}

.doi-container {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.external-link {
    color: #4285f4;
    text-decoration: none;
    font-size: 1rem;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.external-link:hover {
    background-color: #e8f0fe;
}

.external-link i {
    font-size: 1rem;
}

.title-link {
    text-decoration: none;
    color: inherit;
}

.title-link .emoji {
    display: inline-block;
    transition: transform 0.2s;
}

.title-link:active .emoji {
    transform: scale(1.2);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.about-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-content h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

.about-content p {
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.about-content ul {
    list-style-type: none;
    padding-left: 0;
}

.about-content li {
    padding: 0.5rem 0;
    color: #34495e;
    line-height: 1.6;
}

.about-content li:before {
    content: "•";
    color: #a7549f;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.nav-links {
    margin-bottom: 1rem;
}

.title-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-link {
    color: #a7549f;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: #8a437f;
    text-decoration: underline;
}

.return-link {
    color: #a7549f;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.return-link:hover {
    color: #8a437f;
    text-decoration: underline;
}

.journal-summary {
    margin-top: 1.5rem;
}

.journal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
}

.journal-table th,
.journal-table td {
    padding: 0.4rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.journal-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.75rem;
}

.journal-table tr:hover {
    background-color: #f8f9fa;
}

.journal-table td:last-child {
    text-align: right;
    color: #666;
}

.journal-table tr.total-row {
    font-weight: 600;
    background-color: #f8f9fa;
    border-top: 2px solid #eee;
    font-size: 0.75rem;
}

.journal-table tr.total-row td:last-child {
    color: #2c3e50;
}

.similar-button {
    display: inline-block;
    padding: 2px 8px;
    background-color: #fff3bf;
    color: #856404;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    margin-left: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.similar-button:hover {
    background-color: #ffeeba;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.66rem;
    margin-left: 8px;
    vertical-align: middle;
}

/* Green badge for relevance */
.badge {
    background-color: #e6f4ea;
    color: #137333;
}

/* Yellow badge for similar button */
.badge-similar {
    background-color: #fff3bf;
    color: #856404;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.badge-similar:hover {
    background-color: #ffeeba;
}

.catchphrase {
    color: #9b6dff;
    font-size: 1em;
    font-style: italic;
    text-align: center;
    margin: 1em 0;
    padding: 0.5em 1em;
    background: linear-gradient(135deg, rgba(155, 109, 255, 0.1) 0%, rgba(155, 109, 255, 0.05) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(155, 109, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(155, 109, 255, 0.3);
    transition: transform 0.2s ease-in-out;
}

.catchphrase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 109, 255, 0.3);
}

.screen-size-warning {
    display: none;
    background-color: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.screen-size-warning i {
    margin-right: 8px;
    color: #856404;
}

@media (max-width: 600px) {
    .screen-size-warning {
        display: block;
    }
    
    .container, .about-container {
        padding: 10px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-input-wrapper,
    .select-wrapper,
    .search-type,
    .results-count {
        width: 100%;
    }
    
    .search-button {
        width: 100%;
    }
    
    .result-card {
        padding: 10px;
    }
    
    .result-title {
        font-size: 0.9rem;
    }
    
    .result-meta {
        font-size: 0.9rem;
    }
    
    .result-abstract {
        font-size: 0.9rem;
    }
}

.libkey-button {
    background-color: #a7549f;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
    line-height: 1.2;
}

.libkey-button:hover {
    background-color: #8a437f;
}

.experimental-label {
    font-size: 0.6em;
    font-weight: normal;
    color: #666;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
    padding: 2px 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

/* Histogram Styles */
.histogram-container {
    margin: 5px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(167, 84, 159, 0.15);
}

.histogram-header {
    margin-bottom: 10px;
    text-align: center;
}

.histogram-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

#year-histogram, #journal-histogram {
    width: 100%;
    height: 200px !important;
    max-height: 200px !important;
}

/* Responsive adjustments for histogram */
@media (max-width: 600px) {
    .histogram-container {
        padding: 10px;
        margin: 10px 0;
    }
    
    .histogram-title {
        font-size: 0.8rem;
    }
    
    #year-histogram {
        height: 180px;
    }
}

/* Results Header and Timeline Toggle */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.results-header .timeline-toggle {
    margin-right: 0;
}

.timeline-toggle {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.timeline-toggle:hover {
    background-color: #e9ecef;
    border-color: #a7549f;
    color: #a7549f;
}

.timeline-toggle.active {
    background-color: #a7549f;
    color: white;
    border-color: #a7549f;
}

.timeline-toggle.active:hover {
    background-color: #8a437f;
    border-color: #8a437f;
}

.show-all-button {
    background-color: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #1a73e8;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 10px;
}

.show-all-button:hover {
    background-color: #1a73e8;
    color: white;
}

/* Responsive adjustments for timeline toggle */
@media (max-width: 600px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .timeline-toggle {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
} 