:root {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #121212;
  background-color: #f7f8fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f6 100%);
}

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
  color: #1d2736;
}

.page-header p {
  margin: 0;
  color: #5a6575;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(18, 24, 32, 0.08);
}

.stat-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #64748b;
}

.stat-card strong {
  font-size: 1.8rem;
  color: #1d2736;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: #8895a7;
  font-size: 0.9rem;
}

.panels {
  display: grid;
  gap: 24px;
}

.panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  color: #1d2736;
}

.offers-table {
  width: 100%;
  border-collapse: collapse;
}

.offers-table th,
.offers-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e9f1;
}

.offers-table th {
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offers-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.08);
}

.table-responsive {
  overflow-x: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-open {
  background-color: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-reserved {
  background-color: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.bid-form {
  display: grid;
  gap: 16px;
}

.bid-form label {
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

.bid-form input,
.bid-form select,
.bid-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d9e6;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f9fbff;
}

.bid-form button {
  justify-self: flex-start;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.bid-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(99, 102, 241, 0.3);
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  background-color: rgba(99, 102, 241, 0.05);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 18px;
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  #app {
    padding: 32px 16px 48px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .offers-table th,
  .offers-table td {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}
