body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 60px; 
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.step {
  display: none;
}

.step.active {
  display: block;
}

h2 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.nutrient-input, .analysis-input {
  margin-bottom: 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.range-inputs {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.range-inputs > div {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #666;
}

input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #45a049;
}

button[type="button"] {
  background-color: #666;
}

button[type="button"]:hover {
  background-color: #555;
}

#results {
  margin: 20px 0;
}

.result-item {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.deficit {
  background-color: #ffe6e6;
  border-left: 4px solid #ff4444;
}

.excess {
  background-color: #fff3e6;
  border-left: 4px solid #ff9933;
}

.optimal {
  background-color: #e6ffe6;
  border-left: 4px solid #4CAF50;
}

.parameters-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.nutrient-input {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 0;
}

.analysis-input {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 0;
}

.result-category {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

.result-category h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.edit-parameters {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.edit-parameters:hover {
  background-color: #45a049;
}

.parameters-section {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #4CAF50;
  padding: 10px;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-menu li {
  display: inline;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-menu a:hover {
  background-color: #45a049;
}

.producer-info {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.info-input {
  background-color: white;
  padding: 15px;
  border-radius: 5px;
}

.info-input input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.producer-info h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.save-message {
  background-color: #e6ffe6;
  color: #4CAF50;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.save-message p {
  margin: 0;
}

.client-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-card h3 {
  color: #333;
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.analyses-list {
  margin-top: 15px;
}

.analysis-item {
  background-color: #f9f9f9;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
}

.analysis-item p {
  margin: 5px 0;
}

.analysis-item button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.analysis-item button:hover {
  background-color: #45a049;
}

#clientsList {
  margin-top: 20px;
}

.parameter-set-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.parameter-set-controls select {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.add-parameter-set {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.add-parameter-set:hover {
  background-color: #45a049;
}

.parameter-set-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.parameter-set-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  margin: 50px auto;
}

.parameter-set-modal-content h3 {
  margin-top: 0;
}

.parameter-set-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.products-controls {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: flex;
  justify-content: flex-end;
}

.add-product {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.add-product:hover {
  background-color: #45a049;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.product-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-card h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.product-info {
  margin: 10px 0;
}

.product-input {
  margin-bottom: 15px;
}

.product-input label {
  display: block;
  margin-bottom: 5px;
  color: #666;
}

.product-input input,
.product-input select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.fertilizer-recommendation {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.fertilizer-recommendation select {
  width: 100%;
  padding: 8px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.recommendation-results {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.upload-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.upload-area {
  text-align: center;
  padding: 30px;
  border: 2px dashed #4CAF50;
  border-radius: 8px;
  background-color: white;
}

.upload-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.upload-btn:hover {
  background-color: #45a049;
}

.upload-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
}

.upload-status.processing {
  background-color: #FFF3E0;
  color: #F57C00;
}

.upload-status.success {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.upload-status.error {
  background-color: #FFEBEE;
  color: #C62828;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
}

.divider span {
  background-color: white;
  padding: 0 15px;
  position: relative;
  color: #666;
}

.history-list {
  margin-top: 20px;
}

.history-item {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-info h3 {
  margin-top: 0;
  color: #333;
}

.history-info p {
  margin: 5px 0;
  color: #666;
}

.history-actions {
  display: flex;
  gap: 10px;
}

.history-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.history-actions button:first-child {
  background-color: #4CAF50;
  color: white;
}

.history-actions button:first-child:hover {
  background-color: #45a049;
}

.history-actions button:last-child {
  background-color: #2196F3;
  color: white;
}

.history-actions button:last-child:hover {
  background-color: #1976D2;
}

@media print {
  .button-group {
    display: none;
  }
}