/* PantryRx crisp component layer (Bootstrap-compatible) */

/* Typography hierarchy */
.prx-h1 {
  font-size: 40px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prx-subtitle {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: var(--prx-text-muted);
  max-width: 52ch;
}

/* Cards */
.prx-card {
  background: var(--prx-surface) !important;
  border: 1px solid var(--prx-border) !important;
  border-radius: var(--prx-radius-card) !important;
  box-shadow: var(--prx-shadow-1) !important;
}

.prx-card-pad {
  padding: 20px;
}

.prx-card-pad-lg {
  padding: 24px;
}

@media (hover: hover) {
  .prx-card.prx-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--prx-shadow-2);
    transition: transform var(--prx-med) var(--prx-ease), box-shadow var(--prx-med) var(--prx-ease);
  }
}

/* Buttons */
.btn-prx {
  border: 0;
  color: #fff;
  border-radius: var(--prx-radius-control) !important;
  background: linear-gradient(180deg, var(--prx-brand-2), var(--prx-brand));
  padding: 10px 16px;
  font-weight: 600;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  transition: transform var(--prx-fast) var(--prx-ease), box-shadow var(--prx-fast) var(--prx-ease),
    filter var(--prx-fast) var(--prx-ease);
}

@media (hover: hover) {
  .btn-prx:hover {
    transform: translateY(-1px);
    box-shadow: var(--prx-shadow-1);
    filter: brightness(1.02);
  }
}

.btn-prx:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-prx-outline {
  border: 1px solid var(--prx-border);
  border-radius: var(--prx-radius-control) !important;
  background: transparent;
  color: var(--prx-text);
  font-weight: 600;
  padding: 10px 16px;
}

@media (hover: hover) {
  .btn-prx-outline:hover {
    background: var(--prx-bg-subtle);
  }
}

/* Form controls */
.prx-search.form-control {
  height: 44px;
  border-radius: 999px !important;
  background: var(--prx-bg-subtle);
  border: 1px solid var(--prx-border);
}

.prx-search.form-control:focus {
  border-color: var(--prx-brand);
  box-shadow: 0 0 0 4px var(--prx-focus);
}

.prx-search-addon.input-group-text {
  border-radius: 999px 0 0 999px;
  background: var(--prx-bg-subtle);
  border: 1px solid var(--prx-border);
  border-right: 0;
  color: var(--prx-text-muted);
}

.prx-search-group .prx-search.form-control {
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

/* Sidebar nav */
.prx-nav-item {
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--prx-text);
  transition: background var(--prx-fast) var(--prx-ease);
}

/* Override existing sidebar nav-link rules that use !important */
.sidebar-card .prx-nav-item {
  border-radius: 12px !important;
  padding: 10px 12px !important;
  color: var(--prx-text) !important;
  font-weight: 600;
}

@media (hover: hover) {
  .prx-nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
  }
}

.prx-nav-item.active {
  background: var(--prx-brand-soft);
  color: var(--prx-brand);
  position: relative;
  font-weight: 600;
}

.prx-nav-item.active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--prx-brand);
}

/* “Today on PantryRx” stats */
.prx-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.prx-stat-label {
  color: var(--prx-text-muted);
  font-size: 13px;
}

.prx-stat-value {
  font-weight: 700;
}

/* List rows */
.prx-list-row {
  border-radius: 12px;
  padding: 10px 12px;
  transition: background var(--prx-fast) var(--prx-ease);
}

@media (hover: hover) {
  .prx-list-row:hover {
    background: rgba(0, 0, 0, 0.02);
  }
}
