:root {
  --primary-color: #7f0000;
  --primary-hover: #600000;
  --bg-light: #f8f9fa;
  --card-radius: 16px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: #333;
}

.navbar {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand img {
  height: 100px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 10px;
}

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

.card {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.hero-section {
  padding: 80px 0;
  background: white;
}

.bg-accent {
  background-color: var(--primary-color) !important;
}

.bg-accent-subtle {
  background-color: rgba(127, 0, 0, 0.1) !important;
}

.text-accent {
  color: var(--primary-color) !important;
}

.badge-accent {
  background-color: var(--primary-color);
  color: white;
}

.nav-link {
  font-weight: 500;
  color: #555;
}

.nav-link:hover {
  color: var(--primary-color);
}

.footer {
  background: white;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

/* Stepper */
.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #eee;
  z-index: 1;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: bold;
  color: #999;
}

.step.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.step.completed {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Custom styles for tables */
.table-container {
  background: white;
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  min-height: 500px;
  /* Ensure space for dropdowns */
}

.table-responsive {
  overflow: visible !important;
  /* Allow dropdowns to overflow */
}

@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto !important;
    /* Restore scrolling on mobile */
  }
}

/* Scrollable dropdown for many options */
.dropdown-menu-scrollable {
  max-height: 400px;
  overflow-y: auto;
}

.table thead th {
  border-top: none;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

/* Public pages */
.event-banner {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: var(--card-radius);
  margin-bottom: -50px;
  background-color: #ddd;
}

.gift-item-img {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}

.gift-card.chosen {
  opacity: 0.7;
}

.gift-card.chosen .btn {
  display: none;
}

.gift-card.chosen .chosen-badge {
  display: block !important;
}

.chosen-badge {
  display: none;
}

/* Star Rating Component */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.5rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 2.5rem;
  color: #dee2e6;
  transition: color 0.2s ease-in-out;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
  color: #ffc107;
}

.star-rating label:active {
  transform: scale(0.9);
}