/* FILE: assets/css/farmerp.css (copied from public/assets/css/farmerp.css) */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@500;600;700&display=swap');

:root {
  /* Color scheme for poultry farming management */
  --fp-bg: #f0f7f0;
  --fp-bg-2: #f8fbf8;
  --fp-surface: rgba(255, 255, 255, 0.95);
  --fp-surface-strong: #ffffff;
  --fp-surface-dark: #0b1320;
  --fp-ink: #1a2f2a;
  --fp-muted: #5a6b63;
  --fp-border: rgba(26, 47, 42, 0.12);
  --fp-shadow: 0 18px 44px rgba(10, 25, 20, 0.10);
  --fp-shadow-soft: 0 12px 26px rgba(10, 25, 20, 0.06);

  /* Primary colors - poultry themed */
  --fp-primary: #d2691e; /* Chicken/chocolate brown */
  --fp-primary-2: #cd853f; /* Peru brown */
  --fp-primary-light: #f4e4c1; /* Light cream/chicken color */
  --fp-accent: #ff8c00; /* Dark orange */
  --fp-warm: #ff6347; /* Tomato red */
  --fp-danger: #dc143c; /* Crimson red */

  /* Poultry specific colors */
  --fp-poultry-green: #228b22; /* Forest green */
  --fp-poultry-yellow: #ffd700; /* Gold */
  --fp-poultry-blue: #4682b4; /* Steel blue */

  /* Radius and spacing */
  --fp-radius-lg: 20px;
  --fp-radius-md: 16px;
  --fp-radius-sm: 12px;
  --fp-sidebar-width: 300px;

  /* Sidebar palette */
  --fp-sidebar-bg: #2c1810;
  --fp-sidebar-gradient-start: #3d2418;
  --fp-sidebar-gradient-end: #1f130b;
  --fp-sidebar-text: #d4a574; /* Warm brown */
  --fp-sidebar-text-active: #ffd700; /* Gold for active */
  --fp-sidebar-muted: #b8956a; /* Lighter brown */
  --fp-sidebar-accent: #ff8c00; /* Dark orange */

  /* Dashboard metric colors */
  --metric-chicken: #d2691e;
  --metric-feed: #228b22;
  --metric-health: #4682b4;
  --metric-profit: #ffd700;
  --metric-warning: #ff6347;
  --metric-success: #32cd32;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--fp-ink);
  background:
    radial-gradient(circle at top left, rgba(210, 105, 30, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 140, 0, 0.06), transparent 30%),
    radial-gradient(circle at bottom left, rgba(34, 139, 34, 0.05), transparent 28%),
    linear-gradient(180deg, #fff9f0, #f0f7f0);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 248, 240, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.15) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 92%);
  opacity: 0.22;
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
  font-family: 'IBM Plex Serif', 'IBM Plex Sans', serif;
  letter-spacing: -0.02em;
}

.text-muted,
.text-secondary,
.form-text,
.text-muted-small {
  color: var(--fp-muted) !important;
}

.text-muted,
.text-secondary,
.form-text,
.text-muted-small,
.small.text-muted {
  color: #4f625a !important;
}

.bi,
[class^='bi-'],
[class*=' bi-'] {
  display: inline-block;
  line-height: 1;
  color: currentColor;
  opacity: 1;
}

.btn .bi,
.nav-link .bi,
.dropdown-item .bi,
.fp-shell-tag .bi,
.sidebar-link .bi,
.fp-chip .bi,
.fp-badge .bi {
  flex: 0 0 auto;
}

/* Card enhancements for poultry farming */
.content-card:hover,
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.farm-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbf5 100%);
  border-left: 4px solid var(--metric-chicken);
}

.farm-card-feed {
  border-left-color: var(--metric-feed);
}

.farm-card-health {
  border-left-color: var(--metric-health);
}

.farm-card-finance {
  border-left-color: var(--metric-finance);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.app-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-logo-sm {
  width: 36px;
  height: 36px;
}

/* Custom color utilities for dashboard */
.text-purple {
  color: #6f42c1 !important;
}

.text-orange {
  color: #fd7e14 !important;
}

.text-teal {
  color: #009688 !important;
}

/* Enhanced card hover effects */
.dashboard-metric-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.dashboard-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Custom badge styles */
.badge-chicken {
  background-color: rgba(210, 105, 30, 0.12);
  color: #d2691e;
}

.badge-feed {
  background-color: rgba(34, 139, 34, 0.12);
  color: #228b22;
}

.badge-health {
  background-color: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

/* Sidebar Layout Stability */
.fp-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
  z-index: 1040;
  will-change: transform;
}

/* Prevent layout shifts */
.fp-sidebar .sidebar-panel {
  min-height: auto;
  contain: layout style;
}

.fp-sidebar .nav-link {
  position: relative;
  contain: layout style;
  min-height: 40px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

/* Active state styling without layout shift */
.fp-sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  border-left: 3px solid var(--chicken-accent);
  color: var(--fp-sidebar-text-active);
  font-weight: 600;
}

/* Hover state */
.fp-sidebar .nav-link:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
  color: var(--fp-sidebar-text-active);
  transform: translateX(2px);
}

/* Icon consistency */
.fp-sidebar .sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Prevent text wrapping issues */
.fp-sidebar .nav-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
  .fp-sidebar {
    transform: translateX(-100%);
  }

  .fp-sidebar.show {
    transform: translateX(0);
  }
}

/* Desktop - always visible */
@media (min-width: 992px) {
  .fp-sidebar {
    transform: translateX(0);
  }

  /* Main content area adjustment */
  .main-content {
    margin-left: 280px;
    min-height: 100vh;
    position: relative;
  }
}

/* Prevent flash of unstyled content */
.fp-sidebar {
  visibility: visible !important;
}

/* Footer positioning stability */
.fp-sidebar .sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  contain: layout style;
}

/* Sidebar menu item enhancements */
.sidebar-menu-item {
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sidebar-menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #ff8c00, #ffd700);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar-menu-item:hover::before,
.sidebar-menu-item.active::before {
  transform: translateX(0);
}

/* Chicken icon animation */
.farm-icon-chicken {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Dashboard chart container */
.chart-container {
  position: relative;
  height: 300px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile sidebar toggle button */
.sidebar-toggle {
  transition: all 0.2s ease;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle:hover {
  background-color: rgba(0, 0, 0, 0.2) !important;
  transform: scale(1.05);
}

.sidebar-toggle:focus {
  outline: 2px solid var(--chicken-accent);
  outline-offset: 2px;
}

/* Mobile sidebar behavior */
@media (max-width: 991.98px) {
  .fp-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh !important;
    width: 280px !important;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .fp-sidebar.mobile-open {
    transform: translateX(0);
  }

  .fp-app-shell.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    backdrop-filter: blur(4px);
  }

  .app-content {
    margin-left: 0 !important;
  }

  .fp-page-inner {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Ensure sidebar items maintain consistent size */
.sidebar-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-link:hover::before {
  left: 100%;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(4px);
}

.sidebar-link.active {
  background-color: var(--chicken-primary) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

/* Prevent layout shift in sidebar sections */
.sidebar-section-title {
  margin: 1rem 0 0.5rem 0;
  padding: 0.25rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  position: relative;
}

.sidebar-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--fp-sidebar-muted), transparent);
}

/* Smooth transitions for sidebar panels */
.sidebar-panel {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.performance-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.performance-indicator.good {
  background-color: rgba(40, 167, 69, 0.12);
  color: #28a745;
}

.performance-indicator.warning {
  background-color: rgba(255, 193, 7, 0.12);
  color: #e6a800;
}

.performance-indicator.critical {
  background-color: rgba(220, 53, 69, 0.12);
  color: #dc3545;
}

/* Fallback small-image styling when original src fails */
.img-fallback {
  display: inline-block;
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
}

/* Login-specific larger logo inside left panel */
.login-brand-pill .app-logo {
  width: 48px !important;
  height: 48px !important;
}

a {
  text-decoration-skip-ink: auto;
}

.transition-all {
  transition: all 180ms ease;
}

.fp-app {
  position: relative;
  min-height: 100vh;
  display: flex;
}

/* Dashboard Metrics Cards */
.metrics-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.metrics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.metrics-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.metrics-card-data {
  flex: 1;
}

.metrics-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.metrics-card-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.metrics-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metrics-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Metric Card Variants */
.metrics-card-danger .metrics-card-icon {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.metrics-card-success .metrics-card-icon {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.metrics-card-warning .metrics-card-icon {
  background-color: rgba(255, 193, 7, 0.1);
  color: #fd7e14;
}

.metrics-card-info .metrics-card-icon {
  background-color: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.metrics-card-primary .metrics-card-icon {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.metrics-card-danger .metrics-card-value {
  color: #dc3545;
}

.metrics-card-success .metrics-card-value {
  color: #28a745;
}

.metrics-card-warning .metrics-card-value {
  color: #fd7e14;
}

.metrics-card-info .metrics-card-value {
  color: #17a2b8;
}

.metrics-card-primary .metrics-card-value {
  color: #0d6efd;
}

/* Dashboard Cards Grid */
.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-row .dashboard-card {
  margin-bottom: 0;
}

/* Dashboard Cards Structure */
.dashboard-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--chicken-dark);
  margin: 0;
}

.dashboard-card-subtitle {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 4px;
}

.dashboard-card-full {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  margin-bottom: 24px;
}

.dashboard-card-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Table styling in dashboard */
.dashboard-table {
  margin-top: 16px;
}

.dashboard-table table {
  font-size: 0.875rem;
}

.dashboard-table th {
  background-color: rgba(0, 0, 0, 0.03);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 12px 8px;
  border: none;
}

.dashboard-table td {
  padding: 10px 8px;
  border-color: rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.dashboard-table .table-hover tbody tr:hover {
  background-color: rgba(210, 105, 30, 0.03);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .dashboard-card,
  .dashboard-card-full {
    padding: 16px;
    margin-bottom: 16px;
  }

  .dashboard-card-title {
    font-size: 1.1rem;
  }

  .dashboard-table {
    font-size: 0.8rem;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 8px 4px;
  }
}

/* Metrics Cards */
.metrics-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.metrics-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.metrics-card-content {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metrics-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.metrics-card-data {
  flex: 1;
  text-align: right;
}

.metrics-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.metrics-card-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.metrics-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Color variants for metrics */
.metrics-card-danger .metrics-card-icon {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.metrics-card-success .metrics-card-icon {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.metrics-card-warning .metrics-card-icon {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.metrics-card-info .metrics-card-icon {
  background-color: rgba(23, 162, 184, 0.1);
  color: #17a2b8;
}

.metrics-card-danger .metrics-card-value {
  color: #dc3545;
}

.metrics-card-success .metrics-card-value {
  color: #28a745;
}

.metrics-card-warning .metrics-card-value {
  color: #ffc107;
}

.metrics-card-info .metrics-card-value {
  color: #17a2b8;
}
  margin-bottom: 2rem;
}

/* Dashboard Metric Cards */
.dashboard-metric {
  background: linear-gradient(135deg, var(--fp-surface) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dashboard-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--chicken-primary);
  opacity: 0.8;
}

.dashboard-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dashboard-metric .metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.dashboard-metric .metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.dashboard-metric .metric-label {
  font-size: 0.875rem;
  color: var(--fp-muted);
  margin-bottom: 0.5rem;
}

.dashboard-metric .metric-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Hero Section */
.dashboard-hero {
  background: linear-gradient(135deg, var(--chicken-primary) 0%, var(--chicken-secondary) 100%);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-hero .hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-hero .hero-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Alert Styling */
.dashboard-alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.dashboard-alert .alert-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.dashboard-alert.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
  border-left: 4px solid #ffc107;
}

.dashboard-alert.alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.05) 100%);
  border-left: 4px solid #28a745;
}

.dashboard-alert.alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
  border-left: 4px solid #dc3545;
}

/* Table Cards */
.table-card {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.table-card .table-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.5);
}

.table-card .table-card-body {
  padding: 1.5rem;
}

/* Recent Activities */
.recent-activity {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-activity:last-child {
  border-bottom: none;
}

.recent-activity .activity-time {
  font-size: 0.75rem;
  color: var(--fp-muted);
  margin-bottom: 0.25rem;
}

.recent-activity .activity-content {
  font-size: 0.875rem;
  line-height: 1.4;
}

.recent-activity .activity-amount {
  font-weight: 600;
  color: var(--chicken-primary);
}
  position: relative;
}

.fp-app-shell,
.app-shell {
  display: grid;
  grid-template-columns: var(--fp-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.fp-page,
.app-content {
  min-width: 0;
  position: relative;
}

.fp-page-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fp-page-backdrop::before,
.fp-page-backdrop::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.5;
}

.fp-page-backdrop::before {
  width: 24rem;
  height: 24rem;
  top: -7rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(31, 127, 176, 0.12), transparent 70%);
}

.fp-page-backdrop::after {
  width: 18rem;
  height: 18rem;
  bottom: 5rem;
  left: -6rem;
  background: radial-gradient(circle, rgba(31, 122, 67, 0.1), transparent 68%);
}

.fp-page-inner {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.fp-shell-frame {
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--fp-shadow);
  backdrop-filter: blur(18px);
}

.content-card,
.card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-soft);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-card {
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), transparent 35%);
}

.dashboard-hero,
.dashboard-panel,
.dashboard-metric {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 249, 0.98));
  border: 1px solid rgba(20, 32, 51, 0.05);
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-soft);
  padding: 1.4rem 1.5rem;
}

.dashboard-hero {
  background:
    radial-gradient(circle at top right, rgba(31, 127, 176, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(31, 122, 67, 0.09), rgba(31, 127, 176, 0.06));
  color: var(--fp-ink);
}

.dashboard-hero h1,
.dashboard-hero h2,
.dashboard-hero h3,
.dashboard-hero h4,
.dashboard-hero h5,
.dashboard-hero h6,
.dashboard-panel h1,
.dashboard-panel h2,
.dashboard-panel h3,
.dashboard-panel h4,
.dashboard-panel h5,
.dashboard-panel h6,
.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5,
.content-card h6 {
  color: var(--fp-ink);
}

.dashboard-hero .text-muted,
.dashboard-hero .text-secondary,
.dashboard-hero .text-muted-small,
.dashboard-hero .form-text,
.dashboard-panel .text-muted,
.dashboard-panel .text-secondary,
.dashboard-panel .text-muted-small,
.dashboard-panel .form-text,
.content-card .text-muted,
.content-card .text-secondary,
.content-card .text-muted-small,
.content-card .form-text {
  color: #4f625a !important;
}

.content-card > *,
.card > * {
  position: relative;
  z-index: 1;
}

.dashboard-hero h2,
.dashboard-metric .display-6,
.dashboard-panel h2 {
  line-height: 1.12;
}

.dashboard-hero .text-muted-small,
.dashboard-hero .fp-badge,
.dashboard-metric .fp-badge {
  line-height: 1.35;
}

.dashboard-metric .display-6 {
  margin-bottom: 0.35rem;
}

.dashboard-panel .vstack > * + * {
  margin-top: 0.75rem !important;
}

.dashboard-hero-filter {
  width: 100%;
  max-width: 100%;
}

.dashboard-hero-field {
  flex: 1 1 0;
  min-width: 0;
}

.dashboard-hero-select,
.dashboard-hero-input {
  width: 100%;
  min-width: 0;
}

/* Accessibility: visible focus for keyboard users */
input:focus, select:focus, textarea:focus, button:focus, a:focus {
  outline: 3px solid rgba(20,92,68,0.18);
  outline-offset: 2px;
}

/* Ensure sufficient contrast for primary buttons */
.btn-primary {
  background-color: var(--fp-primary);
  border-color: var(--fp-primary);
  color: #fff;
}

.dashboard-hero-button {
  flex: 0 0 auto;
  min-width: 112px;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .dashboard-hero-filter {
    max-width: 420px;
  }
}

@media (max-width: 575.98px) {
  .dashboard-hero-filter,
  .dashboard-hero-field,
  .dashboard-hero-select,
  .dashboard-hero-input,
  .dashboard-hero-button {
    width: 100%;
  }
}

/* ...rest of farmerp.css omitted for brevity in this patch; full file copied in workspace... */

/* Layout Fixes for PWA and Full-Screen Experience */
html,
body {
  height: 100%; /* Ensure body takes full viewport height */
  overflow: hidden; /* Prevent body scrolling */
}

.fp-app {
  height: 100vh; /* Make app container take full viewport height */
  display: flex;
  flex-direction: column;
}

.fp-app-shell {
  display: flex;
  flex-grow: 1; /* Allow app shell to grow and fill available space */
  position: relative;
  overflow: hidden; /* Hide overflow of app shell */
}

.fp-sidebar {
  flex-shrink: 0;
  width: var(--fp-sidebar-width); /* Fixed width for sidebar */
  height: 100%; /* Take full height of its parent */
  position: sticky; /* Sticky positioning for sidebar */
  top: 0;
  overflow-y: auto; /* Enable scrolling for sidebar content */
  transition: transform 0.3s ease-in-out;
  z-index: 10; /* Ensure sidebar is above content */
  background-color: var(--fp-sidebar-bg); /* Use theme variable */
}

@media (max-width: 991.98px) {
  .fp-sidebar {
    position: fixed;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }
  .fp-sidebar.is-open {
    transform: translateX(0%);
  }
}

.fp-page {
  flex-grow: 1; /* Allow page content to grow and fill available space */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Enable scrolling for main page content */
  height: 100%; /* Ensure page takes full height of its parent */
}

.fp-page-inner {
  flex-grow: 1; /* Make main content area fill available space */
}

/* Ensure images and media fit within their containers */
img,
video {
  max-width: 100%;
  height: auto;
}
