body {
  background-color: #edf6f1;
  color: #152f2a;
  font-family: 'Source Sans Pro', sans-serif;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* User profile section */
.user-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-picture {
  margin-right: 20px;
}

.profile-picture img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid #28a745;
}

.user-details {
  text-align: left;
}

.user-details h2 {
  margin: 0;
  color: #152f2a;
  font-size: 24px;
}

.user-details h3 {
  margin: 5px 0 0;
  color: #666;
  font-size: 16px;
}

.edit-link {
  display: inline-block;
  margin-top: 10px;
  color: #28a745;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.edit-link:hover {
  color: #1e7e34;
}

/* Tab section */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.tab-button {
  padding: 10px 20px;
  border: 1px solid #28a745;
  border-radius: 4px;
  background-color: #ffffff;
  color: #28a745;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  background-color: #28a745;
  color: #ffffff;
}

.tabs-content {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tabs-content h3 {
  color: #152f2a;
  margin-bottom: 20px;
  font-size: 22px;
}

/* History section */
.history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  background-color: #ffffff;
  color: #152f2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.history-table th,
.history-table td {
  border: none;
  padding: 12px;
  text-align: left;
}

.history-table th {
  background-color: #28a745;
  color: #ffffff;
  font-weight: bold;
}

.history-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.history-table tr:hover {
  background-color: #e9ecef;
}

.plan-details {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* Chart section */
.chart-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.chart-tab {
  padding: 5px 15px;
  border: 1px solid #28a745;
  background-color: #ffffff;
  color: #28a745;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.chart-tab:hover,
.chart-tab.active {
  background-color: #28a745;
  color: #ffffff;
}

.chart {
  display: none;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart.active {
  display: block;
}

/* Address section */
.address-list {
  list-style: none;
  padding: 0;
}

.address-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.address-actions {
  display: flex;
  gap: 10px;
}

.button-edit,
.button-delete {
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.button-edit {
  background-color: #28a745;
}

.button-delete {
  background-color: #dc3545;
}

.button-edit:hover,
.button-delete:hover {
  opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
  .user-profile {
    flex-direction: column;
    text-align: center;
  }

  .profile-picture {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .user-details {
    text-align: center;
  }

  .tabs {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
  }

  .address-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .address-actions {
    margin-top: 10px;
  }
}

/* User Preferences Tab Styles */
.preferences-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.preference-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preference-type {
  color: #28a745;
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #28a745;
}

.preference-content {
  color: #152f2a;
}

.preference-item {
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #e9ecef;
}

.preference-item:last-child {
  border-bottom: none;
}

.no-preference,
.no-preferences {
  color: #6c757d;
  font-style: italic;
}

@media (max-width: 768px) {
  .preferences-container {
    grid-template-columns: 1fr;
  }
}