.history-page .status-badge {
  padding: 0.4rem 0.75rem;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.history-page .status-success {
  background-color: var(--emerald);
  color: white;
}

.history-page .status-danger {
  background-color: rgba(220, 53, 69, 0.9);
  color: white;
}

.history-page .status-warning {
  background-color: var(--gold);
  color: var(--brown-dark);
}

.history-page .status-info {
  background-color: var(--emerald-light);
  color: white;
}

.history-page .table-hover-success:hover {
  background-color: rgba(18, 113, 81, 0.05) !important;
}

.history-page .table-hover-danger:hover {
  background-color: rgba(220, 53, 69, 0.05) !important;
}

.history-page .table-hover-warning:hover {
  background-color: rgba(212, 175, 55, 0.05) !important;
}

.history-page .table-hover-info:hover {
  background-color: rgba(18, 113, 81, 0.05) !important;
}

.history-page .library-search .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.history-page .search-highlight {
  animation: highlightRow 0.6s ease;
}

.history-page .form-select {
  padding: 0.6rem 2rem 0.6rem 1rem;
  border: 1px solid rgba(74, 44, 15, 0.1);
}

.history-page .library-table tr {
  transition: background-color 0.3s ease;
}

.history-page .library-count-badge {
  padding: 0.35rem 0.75rem;
}

.history-page .search-container {
  position: relative;
}

.history-page .book-cover-history {
  width: 40px;
  height: 60px;
  object-fit: cover;
}

@keyframes highlightRow {
  0% {
    background-color: rgba(212, 175, 55, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

@media print {
  .page-actions, .btn, .card-footer, .pagination {
    display: none !important;
  }
  .table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  td, th {
    padding: 0.5rem !important;
  }
  .container-fluid {
    width: 100% !important;
    padding: 0 !important;
  }
}
