
.card {
  text-align: center;
  background-color: var(--light-purple);
  color: var(--white);
  border-radius: 10px;
}

.card-title {
  font-family: "RoundStyle";
  font-size: x-large;
  color: var(--white);
}

.btn-primary {
  background-color: var(--green);
  border: none;
}

.btn-primary:hover {
  background-color: var(--red);
}

/* Ensure equal-height cards on files.html */
#file-container {
  /* stretch cols in each row to the tallest item */
  align-items: stretch;
}

#file-container .card {
  /* make the card fill the column height and allow vertical layout */
  height: 100%;
  display: flex;
  flex-direction: column;
}

#file-container .card-body {
  /* let body take remaining space so the button can stick to bottom */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#file-container .card-body .btn {
  /* push the action button to the bottom of the card */
  margin-top: auto;
}

/* Search bar styling */
#search-input {
  background-color: var(--black);
  border-color: var(--light-purple);
  color: var(--white);
}

#search-input:focus {
  background-color: var(--black);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 0 0 0.2rem rgba(102, 0, 153, 0.25);
}

#search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#clear-search {
  border-color: var(--light-purple);
  color: var(--white);
  background-color: var(--black);
}

#clear-search:hover {
  background-color: var(--light-purple);
  border-color: var(--light-purple);
  color: var(--white);
}

/* Filter status and active filters styling */
#filter-status {
  min-height: 2rem;
}

#results-count {
  font-size: 0.9rem;
  margin-right: 0.5rem;
  color: var(--white);
}

#active-filters .badge {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

#active-filters .btn-close {
  background: none;
  border: none;
  font-size: 0.7rem !important;
  opacity: 0.8;
  padding: 0;
  margin-left: 0.3rem;
}

#active-filters .btn-close:hover {
  opacity: 1;
}

/* Improved dropdown button styling */
.btn-outline-light {
  color: var(--white);
  border-color: var(--light-purple);
  background-color: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--black);
  background-color: var(--light-purple);
  border-color: var(--light-purple);
}

.btn-outline-light:active {
  color: var(--black);
  background-color: var(--white);
  border-color: var(--white);
}

/* Pagination styling */
#pagination-top,
#pagination-bottom {
  background-color: var(--light-purple);
  padding: 0.5rem;
  border-radius: 10px;
  display: inline-block;
}

#pagination-top {
  margin: 0;
}

#pagination-bottom {
  margin-top: 1rem;
}

.pagination {
  margin-bottom: 0;
}

.pagination .page-link {
  color: var(--white);
  background-color: transparent;
  border-color: var(--white);
}

.pagination .page-item.active .page-link {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.pagination .page-link:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.pagination .page-item.disabled .page-link {
  color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Sort dropdown styling */
.btn-secondary {
  background-color: var(--light-purple);
  border-color: var(--light-purple);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--dark-purple);
  border-color: var(--dark-purple);
}

.dropdown-menu {
  background-color: var(--light-purple);
}

.dropdown-item {
  color: var(--white);
}

.dropdown-item:hover {
  background-color: var(--green);
  color: var(--white);
}

.dropdown-item.active {
  background-color: var(--dark-purple);
  color: var(--white);
}

/* Black background container for files.html - more specific selector */
body.page-with-bg .container {
  background-color: rgba(0, 0, 0, 0.9);
  padding-bottom: 2rem;
}