body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
}

.navbar {
  background-color: #198754;
}

.navbar-brand {
  font-weight: 600;
}

main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.dashboard-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.07);
}

.plan-wrapper {
  width: 100%;
}

.plan-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  background: #002635;
  color: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  background: #01364a;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.table-photo-thumb img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.zone-photo-thumb img {
  width: 100%;
  max-width: 320px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.zone-photo-actions {
  margin-top: 0.5rem;
}

.hint {
  font-size: 0.85rem;
  color: #666;
}

.plant-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  align-items: center;
  cursor: pointer;
}

.plant-thumb img {
  width: 60px;
  height: 60px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.plant-info {
  flex: 1;
}

.plant-name {
  font-weight: 600;
}

.plant-latin {
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
}

.plant-variety {
  font-size: 0.85rem;
  color: #666;
}

.tags-global-group {
  margin-bottom: 1rem;
}

.tags-global-group h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tags-global-group ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.plant-detail-container {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.07);
}

.plant-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plant-main-photo {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.plant-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.plant-title-block h3 {
  margin: 0;
}

.plant-title-block .latin {
  font-style: italic;
  color: #555;
  margin-top: 0.2rem;
}

.plant-title-block .variety {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.2rem;
}

.plant-section {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.plant-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  font-size: 0.95rem;
}

.plant-meta-grid dt {
  font-weight: 600;
  color: #444;
}

.plant-meta-grid dd {
  margin: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  background: #e5f0f7;
  color: #004567;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  margin: 0.15rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.photo-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #eee;
}

.photo-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-meta {
  font-size: 0.8rem;
  color: #666;
  padding: 0.25rem 0.5rem;
}

.photo-meta .btn {
  font-size: 0.7rem;
  padding: 0.1rem 0.3rem;
}

.breadcrumb-small {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.breadcrumb-small a {
  text-decoration: none;
}

.breadcrumb-small span {
  color: #555;
}

@media (min-width: 768px) {
  .plant-header-row {
    flex-direction: row;
    align-items: flex-start;
  }
  .plant-main-photo {
    width: 50%;
    max-width: 360px;
  }
}

@media (min-width: 1200px) {
  .plant-main-photo {
    width: 33%;
  }
}

@media (max-width: 576px) {
  .zones-nb-plants-col,
  .zones-nb-plants-cell {
    display: none;
  }
}

/* Plants cards view */
#plants-cards-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  #plants-cards-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plant-card-tile {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.plant-card-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.plant-card-tile-body {
  padding: 0.5rem 0.75rem 0.6rem;
}

.plant-card-tile-body .name {
  font-weight: 600;
}

.plant-card-tile-body .latin {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
}

.plant-card-tile-body .meta {
  font-size: 0.8rem;
  color: #777;
}

/* Sticky filters on plants page */
.plants-filter-bar {
  position: sticky;
  top: 3.5rem;
  z-index: 10;
  background: #f5f5f5;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
