.bib-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.bib-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 25px;
  border: 1px solid #888;
  width: 80%;
  max-width: 700px;
  border-radius: 8px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.bib-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  position: absolute;
  right: 15px;
  top: 15px;
}

.bib-close:hover { color: #000; }

#bib-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  white-space: pre-wrap;
  margin: 20px 0;
  border-left: 4px solid #007acc;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
}

.copy-bib-btn {
  background: #007acc;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
}

.copy-bib-btn:hover {
  background: #005a9e;
}

.close-bib-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.close-bib-btn:hover {
  background: #545b62;
}

.bib-link {
  cursor: pointer;
  color: #007acc;
  text-decoration: underline;
  margin: 0 5px;
}

.bib-link:hover { 
  color: #005a9e;
  text-decoration: none;
}

.bib-buttons {
  text-align: right;
  margin-top: 15px;
}