/* ObedGenerate design system — Telegram-blue palette, light + auto dark theme. */

:root {
  --brand-500: #2AABEE;
  --brand-600: #229ED9;
  --brand-700: #1B87BD;
  --brand-gradient: linear-gradient(135deg, var(--brand-500), var(--brand-600));

  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-bg: #eef3f7;
  --bs-body-color: #16202a;
  --bs-secondary-color: #5b6b78;

  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 34, 158, 217;
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-700);
  --bs-focus-ring-color: rgba(34, 158, 217, 0.25);

  --bs-border-radius: 0.85rem;
  --bs-border-radius-sm: 0.6rem;
  --bs-border-radius-lg: 1.1rem;
  --bs-border-radius-xl: 1.35rem;
  --bs-card-border-radius: 1rem;
  --bs-card-box-shadow: 0 2px 14px rgba(15, 45, 66, 0.07);

  --shadow-soft: 0 2px 14px rgba(15, 45, 66, 0.07);
  --shadow-lift: 0 8px 28px rgba(15, 45, 66, 0.12);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-bs-theme="dark"] {
  --bs-body-bg: #0e1621;
  --bs-body-color: #e8eef3;
  --bs-secondary-color: #93a4b3;
  --bs-tertiary-bg: #17212b;
  --bs-border-color: #23303c;

  --bs-card-bg: #17212b;
  --bs-card-box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);

  --bs-primary: var(--brand-500);
  --bs-primary-rgb: 42, 171, 238;
  --bs-link-color: var(--brand-500);
  --bs-link-hover-color: #57bcf2;

  --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { font-variant-numeric: tabular-nums; }

html {
  background-color: var(--bs-body-bg);
}

body {
  min-height: 100vh;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.brand-gradient {
  background: var(--brand-gradient) !important;
  color: #fff !important;
  border: none !important;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.navbar {
  padding-top: calc(0.6rem + var(--safe-top));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.6rem;
  padding: 0.45rem 0.75rem !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-weight: 600;
}

.container {
  padding-bottom: calc(3rem + var(--safe-bottom));
}

.card {
  border: none;
  box-shadow: var(--shadow-soft);
}

.btn {
  font-weight: 500;
}

.btn-primary {
  background: var(--brand-gradient);
  border: none;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}

.stat-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-tile .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: rgba(var(--bs-primary-rgb), 0.12);
  color: var(--bs-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.colleague-row {
  border-bottom: 1px solid var(--bs-border-color, #e9ecef);
  padding: 0.85rem 0;
  transition: opacity 0.15s ease;
}

.colleague-row:last-child {
  border-bottom: none;
}

.colleague-row:not(.is-included) {
  opacity: 0.6;
}

.colleague-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), 0.14);
  color: var(--bs-primary);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dish-block {
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: 0.75rem;
  padding: 0.85rem;
  margin-top: 0.6rem;
}

.line-preview {
  font-variant-numeric: tabular-nums;
}

pre.card-number {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.5rem;
  background: #16202a;
  color: #fff;
  border-radius: 0.4rem;
}

.total-badge {
  font-size: 1.15rem;
  padding: 0.55rem 0.9rem;
}

.table {
  --bs-table-hover-bg: rgba(var(--bs-primary-rgb), 0.06);
}

.collapsible-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.collapsible-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.collapsible-header[aria-expanded="true"] .collapsible-chevron {
  transform: rotate(180deg);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--bs-secondary-color);
}

.empty-state .empty-icon {
  font-size: 2.2rem;
  color: var(--bs-primary);
  opacity: 0.55;
  margin-bottom: 0.75rem;
}
