/* --- BIBTEX SECTION --- */
.bibtex-section {
    max-width: 1000px; /* Matches your text width */
    margin: 4rem auto;
    padding: 0 1rem;
}

.bibtex-container {
    position: relative; /* Allows absolute positioning of the 'Copy' button */
    background-color: #f5f5f5; /* Light Grey Background */
    border: 1px solid #e0e0e0; /* Optional subtle border */
    border-radius: 12px;
    padding: 1.0rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); /* Slight inner depth */
}

.bibtex-container pre {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap; /* Ensures text wraps if screen is too small */
    overflow-x: auto;      /* Adds scrollbar if lines are super long */
}

/* --- COPY BUTTON --- */
.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #555;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}