.farm-profile-grid {
  max-width: 90vw;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  justify-content: space-between;
}

.farm-details-card,
.farm-users-card {
  height: 100%;
  box-sizing: border-box;
}

.farm-title {
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.farm-profile-section {
  gap: 30px;
  width: 55%;
}

.farm-details-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.farm-details-header,
.farm-users-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 8px;
}
.farm-details-header {
  align-items: center;
}

.farm-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.farm-detail {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9em;
  margin-bottom: 3px;
}

.detail-value {
  color: #2c3e50;
  font-size: 1em;
}

.farm-action-buttons {
  width: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.farm-users-section {
  width: 40%;
  gap: 30px;
}

.farm-users-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.users-title {
  color: #2c3e50;
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  align-self: center;
}

.users-list {
  list-style: none;
  padding: 0;
  margin: 0;
  bottom: 0;
}

.user-item {
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
  color: #2c3e50;
}

.user-item:last-child {
  border-bottom: none;
}

.farm-users-actions {
  position: relative;
  top:0;
  width: 120px;
}

/* Isolated Button Styles (won't affect other parts of the site) */
.farm-profile-btn {
  display: block;
  width: 100%;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.farm-profile-btn-primary {
  background-color: #3498db;
  color: white;
}

.farm-profile-btn-primary:hover {
  background-color: #2980b9;
}

.farm-profile-btn-secondary {
  background-color: #f8f9fa;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
}

.farm-profile-btn-secondary:hover {
  background-color: #e9ecef;
}

@media (max-width: 768px) {

  .farm-profile-section,
  .farm-users-section {
    flex-direction: column;
  }

  .farm-action-buttons,
  .farm-users-actions {
    width: 100%;
    flex-direction: row;
    display: flex;
    gap: 10px;
  }

  .farm-profile-btn {
    width: auto;
    flex: 1;
  }
}
/* here down */
.projections-container {
  max-width: 90vw;
  margin: 0 auto;
  padding: 20px;
}

.projections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  z-index: 1;
}

@media (min-width: 1200px) {
  .projections-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projection-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  grid-column: span 1 !important;
}

.projection-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}
.primary-projection .projection-card-header {
  background: linear-gradient(0deg, #f8f9fa 0%, #bbdefb 90%);
}
.future-projection .projection-card-header {
  background: linear-gradient(0deg, #f8f9fa   0%, #d7faf2  100%);
}
.inner-card {
  padding: 15px;
}

/* Settings Toggle */
.toggle-settings {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
  width: 100%;
  text-align: left;
  margin-top: 10px;
}

.collapse-icon {
  display: none;
}

.settings-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Expanded state */
.projection-card.expanded .settings-content {
  max-height: 1000px;
}

.projection-card.expanded .collapse-icon {
  display: inline;
}

.projection-card.expanded .expand-icon {
  display: none;
}

.settings-list, .costs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.settings-list li, .costs-list li {
  padding: 5px 0;
}

.settings-list li:last-child, .costs-list li:last-child {
  border-bottom: none;
}

.settings-list strong, 
.costs-list strong {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9em;
  margin-bottom: 3px;
}


.settings-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.settings-section:first-child {
  border-top: none;
}

.spark {
  display: inline-block;
  margin: 5px 0;
}

.metric-value {
  font-weight: bold;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .projections-grid {
    grid-template-columns: 1fr;
  }
  
  .projection-card.expanded {
    grid-column: span 1;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding-left: 20px; 
  margin: 0; }

.dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  min-width: 160px;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none; 
  margin-top: 2px;
}

.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: #69baf0;
  color: white; 
  text-decoration: none;
}