/* Custom styling for the back button */
.back-to-sets {
  display: inline-block;
  position: relative;
  left: 0;
  margin: 10px 0;
  padding: 8px 16px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.back-to-sets:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}

/* Remove any existing button styles */
.btn-primary.btn-block {
  width: auto !important;
  display: inline-block !important;
}

/* Container for the button */
.back-button-container {
  text-align: left;
  margin: 10px 0;
  padding: 0 15px;
}

/* Custom styling for the question set selection page */

/* Light border for cards with preserved border radius */
.card.shadow-sm {
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* Override card header background and text color - More specific selectors */
/* Target direct elements in the blue header shown in the screenshot */
.card-header.bg-primary h2.card-title.text-white,
.card-header.bg-secondary h2.card-title.text-white,
.card-header.bg-success h2.card-title.text-white,
.card-header.bg-info h2.card-title.text-white,
.card-header.bg-warning h2.card-title.text-white,
.card-header.bg-danger h2.card-title.text-white {
  color: #212529 !important;
}

/* Explicitly target the blue background headers */
.card > .card-header.bg-primary,
.card > .card-header.bg-secondary,
.card > .card-header.bg-success,
.card > .card-header.bg-info,
.card > .card-header.bg-warning,
.card > .card-header.bg-danger {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6;
}

/* More specific selector for toetscode button */
.card-header .btn-outline-light,
button.btn.btn-outline-light {
  color: #212529 !important;
  background-color: #f8f9fa !important;
  border-color: #dee2e6 !important;
}

.card-header .btn-outline-light:hover,
button.btn.btn-outline-light:hover {
  color: #000 !important;
  background-color: #e9ecef !important;
  border-color: #ced4da !important;
}

/* Dark text for app title and subtitle in header */
.app-title {
  color: #212529 !important;
}

.app-subtitle {
  color: #495057 !important;
}

/* Force important rules for the header in kies.php */
.card > .card-header.bg-primary,
.card > .card-header.bg-secondary,
.card > .card-header.bg-success,
.card > .card-header.bg-info,
.card > .card-header.bg-warning,
.card > .card-header.bg-danger {
  background-color: #f8f9fa !important;
}

/* Fix for the text in the header */
.card-header h2.text-white,
.card-header .text-white {
  color: #212529 !important;
}
