:root {
  --tblr-primary: #287a5b;
  --tblr-primary-rgb: 40, 122, 91;
  --frigidus-deep: #153d31;
  --frigidus-green: #287a5b;
  --frigidus-mint: #dff4e9;
  --frigidus-warm: #fff6e8;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-sidebar {
  background:
    radial-gradient(circle at 10% 0%, rgba(89, 191, 143, 0.18), transparent 30%),
    linear-gradient(180deg, #173f33 0%, #102f27 100%);
  border: 0;
}

.admin-sidebar .navbar-brand {
  gap: 0.75rem;
  justify-content: flex-start !important;
  min-height: 5.25rem;
  padding-inline: 1rem;
}

.brand-symbol {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #fff7df, #e8d8aa);
  color: var(--frigidus-deep);
  box-shadow: 0 8px 24px rgba(2, 18, 13, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.brand-symbol-lg {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 1.7rem;
}

.brand-copy,
.showcase-brand > span:last-child,
.identity-copy,
.storage-copy,
.recipe-card > span:last-child {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 500;
}

.admin-sidebar .nav-link {
  margin: 0.2rem 0.7rem;
  border-radius: 0.7rem;
  color: rgba(255, 255, 255, 0.68);
}

.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-sidebar .nav-link.active {
  background: rgba(109, 218, 166, 0.15);
  color: #fff;
  box-shadow: inset 3px 0 #73d8aa;
}

.sidebar-footer {
  margin: 1.5rem 0.7rem 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-identity {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
  color: #fff;
}

.admin-identity .avatar {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.identity-copy strong {
  font-size: 0.82rem;
}

.identity-copy small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
}

.admin-topbar {
  min-height: 4rem;
  border-bottom: 1px solid var(--tblr-border-color);
  background: color-mix(in srgb, var(--tblr-bg-surface) 92%, transparent);
  backdrop-filter: blur(18px);
}

.status-indicator {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--tblr-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

.page-body {
  min-height: calc(100vh - 8rem);
}

.page-pretitle {
  color: var(--frigidus-green);
  letter-spacing: 0.14em;
}

.page-title {
  letter-spacing: -0.025em;
}

.card {
  border-color: color-mix(in srgb, var(--tblr-border-color) 75%, transparent);
  box-shadow: 0 10px 32px rgba(24, 55, 44, 0.045);
}

.stat-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stat-card-link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(24, 55, 44, 0.1);
}

.stat-card-body {
  min-height: 9.25rem;
}

.stat-icon {
  font-size: 0.74rem;
}

.stat-glyph {
  font-size: 0.72rem;
  font-weight: 800;
}

.empty-icon * {
  pointer-events: none;
}

.users-toolbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.metric-block {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0.5rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--frigidus-green) 6%, var(--tblr-bg-surface));
}

.metric-value {
  color: var(--frigidus-green);
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.metric-label {
  color: var(--tblr-secondary);
  font-size: 0.75rem;
}

.storage-card,
.recipe-card {
  display: flex;
  min-height: 5rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.storage-card:hover {
  border-color: rgba(var(--tblr-primary-rgb), 0.35);
  background: rgba(var(--tblr-primary-rgb), 0.04);
  color: inherit;
}

.storage-copy strong,
.recipe-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-copy small,
.recipe-card small {
  overflow: hidden;
  color: var(--tblr-secondary);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 2.25rem 1rem;
  color: var(--tblr-secondary);
  text-align: center;
}

.empty-state-icon,
.modal-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.75rem;
  place-items: center;
  border-radius: 0.9rem;
  background: rgba(var(--tblr-primary-rgb), 0.1);
  color: var(--frigidus-green);
  font-weight: 800;
}

.danger-card {
  border-color: rgba(var(--tblr-danger-rgb), 0.24);
  box-shadow: none;
}

.danger-icon {
  background: rgba(var(--tblr-danger-rgb), 0.1);
  color: var(--tblr-danger);
}

.tracking-wide {
  letter-spacing: 0.12em;
}

.login-page {
  min-height: 100vh;
  background: var(--tblr-bg-surface);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(28rem, 1.15fr) minmax(30rem, 0.85fr);
}

.login-showcase {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(11, 52, 41, 0.8), rgba(19, 77, 58, 0.98)),
    #174c3a;
  color: #fff;
}

.showcase-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.showcase-glow-one {
  top: -14rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, rgba(103, 222, 166, 0.22), transparent 68%);
}

.showcase-glow-two {
  bottom: -18rem;
  left: -12rem;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(255, 220, 153, 0.18), transparent 65%);
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 52rem;
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 5rem);
  flex-direction: column;
}

.showcase-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.showcase-brand strong {
  font-size: 1.02rem;
}

.showcase-brand small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.showcase-copy {
  margin: auto 0;
}

.showcase-copy h1 {
  max-width: 44rem;
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 4.3vw, 4.6rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.showcase-copy p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1.05rem;
  line-height: 1.8;
}

.showcase-points {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.showcase-points span {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.showcase-points i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #72dda8;
  box-shadow: 0 0 0 4px rgba(114, 221, 168, 0.12);
}

.login-form-side {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(var(--tblr-primary-rgb), 0.07), transparent 28%),
    var(--tblr-bg-surface);
}

.login-card-wrap {
  width: min(26rem, 100%);
}

.login-card-wrap .form-control-lg {
  min-height: 3.25rem;
}

.login-security-note {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  color: var(--tblr-secondary);
  font-size: 0.72rem;
}

.theme-icon-sun {
  display: none;
}

[data-bs-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-bs-theme="dark"] .theme-icon-sun {
  display: block;
}

@media (max-width: 991.98px) {
  .admin-sidebar .navbar-brand {
    min-height: auto;
  }

  .sidebar-footer {
    margin-bottom: 1rem;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    display: none;
  }

  .login-form-side {
    min-height: 100vh;
    padding: 1.5rem;
  }

  .login-form-side .showcase-brand small {
    color: var(--tblr-secondary);
  }
}

@media (max-width: 575.98px) {
  .page-body {
    padding-top: 1rem;
  }

  .stat-card-body {
    min-height: 8.25rem;
    padding: 1rem;
  }

  .user-avatar {
    width: 3rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.ai-prompt-field {
  min-height: 10rem;
  line-height: 1.65;
  resize: vertical;
}
