.accordion {
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

.active, .accordion:hover {
  background-color: #ccc;
  color:#242943 !important;
  border-color:#242943;
  box-shadow: inset 0 0 0 2px #242943;
}


.tablebutton{
line-height:0.5em;
height:1.5em;
padding: 0 1em 0 1em;}

button:hover{
color:#242943;
border-color:#242943;
}

.accordion:after {
  content: '\002B';
  font-weight: bold;
  float: right;
  margin-left: 5px;
}


.active:after {
  content: "\2212";
}

.panel {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}


/* Goodreads Search Styles */
.results-container {
  margin-top: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
}

.book-result {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.book-result img {
  width: 50px;
  margin-right: 1rem;
}

.book-result:hover {
  background-color: #f5f5f5;
}

/* Image Preview */
#image-preview {
  border: 2px solid #eee;
  padding: 5px;
  border-radius: 4px;
}

.giveaway { opacity: 0.5; }
.received { border-left: 4px solid #28a745; }


/* Book status indicators */
.book-card.giveaway {
  opacity: 0.6;
  background-color: #f8f9fa;
  border-left: 4px solid #6c757d;
}

.book-card.exchange {
  border-left: 4px solid #ffc107;
}

.book-card.transferred {
  border-left: 4px solid #28a745;
}

/* Hover tooltip */
.book-card .tooltip {
  visibility: hidden;
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
}

.book-card:hover .tooltip {
  visibility: visible;
}