/* Citation button styles */
.cite-button {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cite-button:hover {
    background-color: #e0e0e0;
}

/* Citation modal */
.citation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10000;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5em;
    text-align: center;
}

.modal-content pre {
    background-color: #f8f9fa;     /* Light gray background for the BibTeX code */
    padding: 15px;                 /* Space inside the code block */
    border-radius: 4px;           /* Rounded corners */
    overflow-x: auto;             /* Adds horizontal scrollbar if code is too wide */
    white-space: pre-wrap;        /* Preserves whitespace/formatting but allows wrapping */
    word-wrap: break-word;        /* Allows long words to break and wrap */
    margin: 15px 0;              /* Space above and below the code block */
    font-size: 0.9em;            /* Slightly smaller text than normal */
    line-height: 1.4;            /* Space between lines of text */
    border: 1px solid #e9ecef;   /* Light gray border around the code block */
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.modal-content button {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn {
    background-color: #28a745;
}

.copy-btn:hover {
    background-color: #218838;
}

.close-btn {
    background-color: #dc3545;
}

.close-btn:hover {
    background-color: #c82333;
}

.copy-success {
    color: #28a745;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.hidden {
    display: none;
}