:root {
  --fh-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fh-bg: #f5f6fb;
  --fh-surface: #ffffff;
  --fh-border: rgba(148, 163, 184, 0.25);
  --fh-shadow: 0 20px 45px -24px rgba(15, 23, 42, 0.35);
  --fh-radius: 18px;
  --fh-primary: #2563eb;
  --fh-primary-soft: rgba(37, 99, 235, 0.12);
  --fh-muted: #6b7280;
  --fh-heading: #0f172a;
  --fh-body: #1f2937;
}

.fh-body {
  font-family: var(--fh-font-sans);
  background: linear-gradient(120deg, #eef1ff 0%, #f9fafc 35%, #f3f4f6 100%);
  color: var(--fh-body);
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 100vh;
}

.fh-navbar {
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.fh-navbar .navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--fh-heading);
}

.fh-navbar .navbar-brand .brand-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--fh-primary-soft);
  color: var(--fh-primary);
  font-size: 1.1rem;
}

.fh-navbar .nav-link {
  font-weight: 500;
  color: var(--fh-muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: all 0.2s ease;
}

.fh-navbar .nav-link:hover,
.fh-navbar .nav-link:focus {
  color: var(--fh-primary);
  background-color: rgba(37, 99, 235, 0.08);
}

.fh-navbar .nav-link.active {
  color: var(--fh-primary);
  background-color: rgba(37, 99, 235, 0.12);
}

.fh-navbar .navbar-text {
  font-weight: 500;
}

.fh-main {
  position: relative;
}

.fh-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.14), transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.fh-main > .container-xl {
  position: relative;
  z-index: 1;
}

.fh-content {
  background: var(--fh-surface);
  border-radius: 28px;
  padding: 2.5rem clamp(1.5rem, 2vw + 1rem, 3rem);
  box-shadow: 0 32px 80px -52px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 991.98px) {
  .fh-content {
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
  }
}

.fh-flash-stack {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.alert {
  border-radius: 16px;
  border: none;
  box-shadow: 0 22px 40px -28px rgba(15, 23, 42, 0.35);
}

.alert-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.alert-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.alert-warning {
  background: rgba(234, 179, 8, 0.12);
  color: #b45309;
}

.alert-info {
  background: rgba(14, 116, 144, 0.12);
  color: #0f766e;
}

.card {
  border-radius: var(--fh-radius);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--fh-shadow);
  background: var(--fh-surface);
}

.card-body {
  padding: 1.75rem;
}

.card-footer,
.card-header {
  background: transparent;
  border: none;
  padding: 1.25rem 1.75rem;
}

.table {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.table thead {
  background: rgba(148, 163, 184, 0.18);
}

.table tbody tr:nth-child(odd) {
  background: rgba(99, 102, 241, 0.02);
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, #2563eb, #4f46e5);
  border: none;
  box-shadow: 0 15px 30px -18px rgba(37, 99, 235, 0.8);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, #1d4ed8, #4338ca);
}

.btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.55);
  color: var(--fh-primary);
  background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.65);
  color: var(--fh-primary);
}

.btn-outline-secondary {
  border-color: rgba(100, 116, 139, 0.45);
  color: #475569;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: rgba(100, 116, 139, 0.12);
  color: #1e293b;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 12px;
}

.btn-icon i {
  transition: transform 0.2s ease;
}

.btn-icon[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.65rem 0.95rem;
  min-height: 44px;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.08);
}

label.form-label {
  font-weight: 600;
  color: var(--fh-heading);
}

.form-text {
  color: var(--fh-muted);
}

.table thead th,
label,
.card h2,
.card h3,
.card h4,
.card h5 {
  color: var(--fh-heading);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fh-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1.h3 {
  font-size: clamp(1.65rem, 2vw + 1rem, 2.1rem);
}

p.text-muted {
  color: var(--fh-muted) !important;
}

.badge {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.badge.text-bg-light {
  background: rgba(148, 163, 184, 0.18) !important;
  color: #334155 !important;
}

.badge.text-bg-secondary {
  background: rgba(100, 116, 139, 0.18) !important;
  color: #1f2937 !important;
}

.list-group:not(.list-group-flush) .list-group-item {
  border: none;
  border-radius: 14px !important;
  margin-bottom: 0.5rem;
  box-shadow: 0 12px 25px -20px rgba(15, 23, 42, 0.35);
}

.list-group:not(.list-group-flush) .list-group-item:last-child {
  margin-bottom: 0;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  background-color: rgba(37, 99, 235, 0.08);
}

.list-group-flush .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0 !important;
  box-shadow: none;
  padding: 0.85rem 1.1rem;
}

.list-group-flush .list-group-item:last-child {
  border-bottom: none;
}

.table-responsive {
  border-radius: 18px;
  box-shadow: var(--fh-shadow);
  background: var(--fh-surface);
}

@media (max-width: 575.98px) {
  .fh-navbar .navbar-nav {
    gap: 0.25rem !important;
  }

  .btn {
    width: 100%;
  }

  .fh-content {
    padding: 1.5rem 1.2rem;
  }
}

.modal-content {
  border-radius: 18px;
  border: none;
  box-shadow: 0 25px 60px -32px rgba(15, 23, 42, 0.45);
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-footer {
  border-top: none;
  padding-top: 0;
}

.table td,
.table th {
  padding: 0.9rem 1.1rem;
  vertical-align: middle;
}

small,
.small {
  color: var(--fh-muted);
}

fieldset {
  border: none;
}

hr {
  border-color: rgba(148, 163, 184, 0.25);
}

input[type="date"].form-control,
input[type="datetime-local"].form-control {
  min-height: 44px;
}

textarea.form-control {
  min-height: 140px;
}

.recipe-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-top-left-radius: var(--fh-radius);
  border-top-right-radius: var(--fh-radius);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.recipe-hero-img {
  width: 100%;
  max-height: 480px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--fh-radius);
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.fh-section-title {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
  font-weight: 600;
}

.fh-muted {
  color: var(--fh-muted);
}

.fh-card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .fh-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fh-stat-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(79, 70, 229, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.fh-stat-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--fh-muted);
}

.fh-stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--fh-heading);
}

.table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--fh-muted);
}
