.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-in-out;
}

.plasmid-selector-modal {
  background-color: #EBF1F5;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 85%;
  max-width: 1000px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s ease-out;
  font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #0F518A;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: white;
  font-weight: 500;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  padding: 0;
  line-height: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.close-button:hover {
  opacity: 1;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(15, 81, 138, 0.2);
  background-color: #D6E5F2;
  padding: 0;
}

.modal-tabs button {
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  color: #345;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-tabs button.active {
  border-bottom-color: #0F518A;
  color: #0F518A;
  background-color: #EBF1F5;
}

.modal-tabs button:hover:not(.active) {
  color: #24292F;
  background-color: #EBECF0;
}

.plasmid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
  max-height: 60vh;
}

.plasmid-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  background-color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
}

.plasmid-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #0F518A, #2E8BC0);
  opacity: 0.7;
}

.plasmid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  border-color: #D0D7DE;
  background-color: #f2f8fc;
}

.plasmid-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #24292F;
}

.plasmid-description {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #57606A;
  line-height: 1.4;
}

.plasmid-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #57606A;
  margin-bottom: 12px;
}

.plasmid-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  background-color: #EFF1F3;
  color: #57606A;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #F6F8FA;
  display: flex;
  justify-content: flex-end;
}

.modal-footer button {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #D0D7DE;
  background-color: white;
  cursor: pointer;
  font-size: 14px;
  color: #24292F;
}

.modal-footer button:hover {
  background-color: #F6F8FA;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #0F518A;
  font-weight: 500;
}

.error-message {
  margin: 12px 20px;
  padding: 8px 12px;
  background-color: #FFEBE9;
  border: 1px solid #FFCCD2;
  border-radius: 6px;
  color: #CF222E;
  font-size: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.addgene-badge {
  display: inline-block;
  background-color: #0F518A;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.plasmid-card .addgene-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #0F518A;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.plasmid-card:hover .addgene-link {
  opacity: 1;
}

.addgene-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
} 