:root {
  --primary-color: #dc3545;
  --secondary-color: #6c757d;
  --bs-primary: #dc3545;
  --bs-primary-rgb: 220, 53, 69;
}

/* Override Bootstrap primary colors */
.btn-primary {
  --bs-btn-bg: #dc3545;
  --bs-btn-border-color: #dc3545;
  --bs-btn-hover-bg: #bb2d3b;
  --bs-btn-hover-border-color: #b02a37;
  --bs-btn-active-bg: #b02a37;
  --bs-btn-active-border-color: #a52834;
}

.btn-outline-primary {
  --bs-btn-color: #dc3545;
  --bs-btn-border-color: #dc3545;
  --bs-btn-hover-bg: #dc3545;
  --bs-btn-hover-border-color: #dc3545;
  --bs-btn-active-bg: #dc3545;
  --bs-btn-active-border-color: #dc3545;
}

.bg-primary {
  background-color: #dc3545 !important;
}

.text-primary {
  color: #dc3545 !important;
}

.border-primary {
  border-color: #dc3545 !important;
}

.alert-primary {
  --bs-alert-color: #842029;
  --bs-alert-bg: #f8d7da;
  --bs-alert-border-color: #f5c2c7;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.btn {
  transition: all 0.2s;
}

.profile-section {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.match-card {
  border-left: 4px solid var(--primary-color);
}

.compatibility-score {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.attribute-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  background-color: #ffe7e7;
  color: var(--primary-color);
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.draggable-item {
  cursor: move;
  transition: background-color 0.2s;
}

.draggable-item:hover {
  background-color: #f8f9fa;
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 0.5rem;
}

footer {
  margin-top: auto;
}
