/* app/assets/stylesheets/food_entries.css */
nav.flex {
  display: flex;
  justify-content: space-between;
  justify-items: space-between;
  align-content: center;
  align-items:center;
}

.text-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ccc;
}

/* Food Entry Card */
.entry-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
  gap: 1rem;
  text-decoration: none;
  transition: 0.5s;
}

.entry-card:hover {
  background-color: rgb(211, 211, 250);
}

.entry-main {
  flex: 1;
  min-width: 0; /* Prevents text overflow */
  text-decoration: none;  
}

.entry-text {
  margin: 0;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
  text-decoration: none;
}

.nutrition-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-decoration: none;
}

.nutrition-info span {
  white-space: nowrap;
  text-decoration: none;
}

.entry-time {
  white-space: nowrap;
  color: #718096;
  text-decoration: none;
}

.no-decoration {
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .entry-card {
    padding: 0.5rem 0.75rem;
  }
  
  .nutrition-info {
    font-size: 0.75rem;
  }
  
  .nutrition-info span {
    display: flex;
    gap: 0.5rem;
  }
}

/* Dashboard */
.progress-card {
  border: 1px solid #102c56;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-stats {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 1rem;
  padding: 0.5rem;
}

@media (min-width: 640px) {
  .progress-stats {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on larger screens */
  }
}

/* Wrapper for the text input and icon */
.input-group-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

/* Text input field styling */
.input-group-with-icon .text-input {
  width: 100%;
  padding-right: 40px; /* Space for the icon */
  box-sizing: border-box;
}

/* Icon inside the input field */
.input-group-with-icon .input-icon {
  position: absolute;
  right: 6px; /* Adjust to align inside the text field */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

