/* ============================
   🎨 Root Variables
============================ */
:root {
  --primary-color: #3273dc;
  --text-color: #4a4a4a;
  --max-width: 960px;
}

/* ============================
   🧱 Main Layout
============================ */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ============================
   🔢 Number Display
============================ */
p#numbersLabel {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

p#additionalNumbersLabel {
  font-size: 1.75rem;
  color: gray;
  margin-bottom: 2rem;
}

/* ============================
   🧨 Flash Messages
============================ */
.flash-container {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #555;
}

.flash {
  padding: 0.5rem 1rem;
  border-left: 4px solid;
  background-color: #f9f9f9;
  border-radius: 4px;
  transition: opacity 1s ease;
}

.flash.info {
  border-color: #3b82f6;
}

.flash.warning {
  border-color: #f59e0b;
}

.flash.error {
  border-color: #ef4444;
}

.flash.removing {
  opacity: 0;
}

/* ============================
   🧾 Settings Summary
============================ */
.settings-summary {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666;
}

/* ============================
   🧮 Form Table Layout
============================ */
.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.form-table td {
  padding: 0.5rem;
  vertical-align: middle;
}

.form-table input[type="number"] {
  width: 4.5rem;
  padding: 0.5rem;
}

/* ============================
   💬 Hint Styling
============================ */
.hint {
  font-size: 0.85rem;
  color: #888;
  margin-left: 0.25rem;
}

/* ============================
   🔘 Buttons
============================ */

/* Base button style */
.button-base {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

/* Specific buttons */
#generateButton {
  background-color: #fb7185;
  color: #ffffff;
}

#generateButton:hover {
  background-color: #f43f5e;
}

#resetButton {
  background-color: #cfe8fc;
  color: #004c99;
  margin-left: 0.5rem;
}

#resetButton:hover {
  background-color: #b4dffc;
}

/* Press animation */
#generateButton:active,
#resetButton:active {
  transform: scale(0.97);
}

/* ============================
   📱 Responsive (Mobile)
============================ */
@media (max-width: 480px) {
  .container {
    padding: 1rem;
    margin: 1rem;
  }

  input[type="number"] {
    width: 100%;
    font-size: 1.1rem;
  }

  .flash-container,
  .settings-summary {
    word-wrap: break-word;
  }

  p#numbersLabel {
    font-size: 2rem;
  }

  p#additionalNumbersLabel {
    font-size: 1.25rem;
  }
}