:root {
  --bg: #f6f4f0;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --accent: #0b6e4f;
  --accent-2: #1e90ff;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(17, 25, 40, 0.1);
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7e6 0%, #f6f4f0 55%, #eef2f7 100%);
  min-height: 100vh;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  background: linear-gradient(120deg, #1d1d1f 0%, #0b6e4f 60%, #1e90ff 100%);
  color: white;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.brand-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.brand-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.user-pill {
  display: flex;
  flex-direction: column;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.user-name {
  font-weight: 600;
}

.user-role {
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 1px;
}

.app-nav {
  background: #ffffffb0;
  border-bottom: 1px solid #e5e5e5;
  backdrop-filter: blur(10px);
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e2e2;
  font-weight: 500;
}

.nav-link:hover {
  background: #1d1d1f;
  color: #fff;
}

.app-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.login-card,
.form-card,
.card,
.stat-card,
.vendor-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.login-card,
.form-card {
  max-width: 520px;
  margin: 2rem auto;
  padding: 2rem;
}

.login-header h1,
.form-header h1 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  border: 1px solid #e9e9e9;
}

.stat-card.accent {
  background: linear-gradient(120deg, #0b6e4f 0%, #1e90ff 100%);
  color: white;
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: inherit;
  opacity: 0.7;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.vendor-card {
  padding: 1rem 1.2rem;
  border: 1px solid #f0f0f0;
}

.vendor-total {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.vendor-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fdfdfd;
}

.vendor-email {
  font-size: 0.85rem;
  color: var(--muted);
}

.alert {
  border-radius: 14px;
}

@media (max-width: 768px) {
  .stat-value {
    font-size: 2rem;
  }

  .vendor-input {
    flex-direction: column;
    align-items: flex-start;
  }
}
