/* =========
   Auction Styles (Inter + Bootstrap friendly)
   ========= */
:root {
  --brand: #0d6efd;         /* Bootstrap primary */
  --brand-ink: #0b5ed7;     /* hover shade */
  --bg: #f6f7f9;            /* light cream background */
  --ink: #1f2937;
  --muted: #6c757d;
  --card-shadow: 0 6px 24px rgba(0,0,0,.06);
  --radius-lg: 14px;
}

/* Base + typography */
html, body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--ink);
  min-height: 100%;
}

.page-title {
  font-weight: 800;
  color: #000;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

/* Cards + containers */
.card, .pie-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,.06);
}

.card-header {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,.08);
  font-weight: 600;
}

/* Tables */
.table {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
}
.table td {
  vertical-align: middle;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,.02);
}
.table-hover tbody tr:hover {
  background-color: rgba(13,110,253,.05);
}

/* Buttons */
.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover {
  background-color: var(--brand-ink);
  border-color: var(--brand-ink);
}
.btn-outline-secondary {
  border-color: var(--muted);
  color: var(--muted);
}
.btn-outline-secondary:hover {
  background-color: var(--muted);
  color: #fff;
}

/* Search box */
.search-box {
  position: relative;
  margin-bottom: 1rem;
}
.search-box input {
  border-radius: var(--radius-lg);
  padding-right: 2.5rem;
}
.search-box .clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1.25rem;
  color: #888;
  cursor: pointer;
}
.search-box .clear-btn:hover {
  color: #000;
}

/* Totals box */
.total-box {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}
.total-box strong {
  color: #000;
  font-weight: 800;
}
.total-bid { color: #0d6efd; }
.total-recv { color: #198754; }

/* Status badges */
.badge-paid {
  background-color: #198754;
  color: #fff;
}
.badge-unpaid {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* Flash "Saved!" animation */
@keyframes flashSaved {
  from { background-color: #d1e7dd; }
  to   { background-color: transparent; }
}
.saved-flash {
  animation: flashSaved 1.2s ease-out;
}

/* Pagination */
.pagination .page-link {
  border-radius: 8px;
  font-weight: 600;
}
.pagination .page-item.active .page-link {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Floating Back to Top button */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: all 0.3s ease;
  z-index: 1000;
}
#backToTop:hover {
  background-color: var(--brand-ink);
  transform: translateY(-3px);
}

/* Volunteer and Admin sections */
.section-header {
  font-weight: 700;
  font-size: 1.25rem;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 1rem;
  padding-bottom: .25rem;
}

.editable-cell {
  cursor: text;
  background: rgba(255,255,255,0.6);
}
.editable-cell:focus {
  background: #fff;
  outline: 2px solid #0d6efd;
}

/* Alerts */
.alert-info {
  background-color: #e9f5ff;
  border-color: #b6e0fe;
  color: #055160;
}
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .pie-thumb {
    width: 120px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  .total-box {
    text-align: center;
  }
}
