/* Keto Kalkulator - Główny kontener */
.keto-kalkulator {
  max-width: 500px;
  margin: 30px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.keto-kalkulator h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Formularz */
.keto-kalkulator form label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
}

.keto-kalkulator input,
.keto-kalkulator select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.keto-kalkulator input:focus,
.keto-kalkulator select:focus {
  outline: none;
  border-color: #2ecc71;
}

.keto-kalkulator button {
  width: 100%;
  padding: 12px;
  background: #2ecc71;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.keto-kalkulator button:hover {
  background: #27ae60;
}

.keto-kalkulator button:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

/* Wyniki */
#ketoResult {
  margin-top: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  display: none;
}

#ketoResult h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
}

.keto-results-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 3px solid #2ecc71;
}

.result-item strong {
  display: block;
  margin-bottom: 5px;
  color: #34495e;
  font-size: 14px;
}

.result-value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #2ecc71;
}

/* Komunikaty błędów */
.keto-error {
  margin-top: 20px;
  padding: 15px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 10px;
  color: #c33;
  display: none;
}

.keto-error p {
  margin: 0;
  font-weight: bold;
}

/* Responsywność */
@media (max-width: 600px) {
  .keto-kalkulator {
    margin: 15px;
    padding: 15px;
  }

  .keto-kalkulator h2 {
    font-size: 20px;
  }

  .result-value {
    font-size: 16px;
  }
}
