/* calculator-activities-fat/css/activities-fat.css */

:root {
  --primary: #FF8000;
  --primary-dark: #FB4C06;
  --success: #28a745;
  --surface: #ffffff;
  --text: #333333;
}

.calc-wrapper {
  background-color: var(--surface);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
}

.calc-wrapper h1, 
.calc-wrapper h2, 
.calc-wrapper h3 {
  color: var(--primary);
}

/* Formulaire */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #444;
}

input, select {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: white;
  box-sizing: border-box;
}

/* Custom Select Arrow */
.select-wrapper {
  position: relative;
}
.select-wrapper select { appearance: none; }
.select-wrapper i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
}

input:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1);
}

/* Selecteur d'unité (Kg/Lbs) */
.unit-toggle-container {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.unit-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  color: #777;
  transition: all 0.2s;
}

.unit-btn:hover { border-color: var(--primary); }
.unit-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* Boutons Principaux */
.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background-color: #e0e0e0; color: #333; }

/* Résultat */
.result-box {
  margin-top: 2rem;
  padding: 2rem;
  background: #f9fff9;
  border: 2px solid var(--success);
  border-radius: 12px;
  text-align: center;
  display: none;
  animation: slideUp 0.5s ease;
}

.result-main { margin-bottom: 1.5rem; }

.result-main span#result-value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--success);
  display: block;
  line-height: 1;
}

.result-main .unit { font-size: 1.5rem; color: #666; }
.label-result { font-weight: bold; color: #444; margin-top: 5px; }

.stats-grid { display: flex; justify-content: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-item i { color: var(--primary); font-size: 1.5rem; margin-bottom: 5px; }
.stat-item span { font-weight: bold; font-size: 1.4rem; }
.stat-item small { color: #777; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .result-main span#result-value { font-size: 3rem; }
}