:root {
  --primary-color: #007bff;
  --primary-color-dark: #0056b3;
  --secondary-color: #6c757d;
  --secondary-color-dark: #5a6268;
  --background-color: #f8f9fa;
  --text-color: #212529;
  --card-background: #ffffff;
  --border-color: #dee2e6;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

#root {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.app-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.app-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  flex-grow: 1;
}

.btn-install {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #fff;
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.btn-install:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}


.form-step {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin-bottom: 1rem;
}

.form-step h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: center;
  white-space: nowrap;
}

th {
  background-color: var(--background-color);
  font-weight: 700;
}

td:first-child {
  text-align: left;
  font-weight: 500;
}

input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  -webkit-appearance: none;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-color-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-color-dark);
}

.summary-section {
  margin-bottom: 1.5rem;
}

.summary-section h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.summary-section p, .summary-section ul {
  margin-bottom: 1rem;
}

.summary-section li {
  list-style-position: inside;
}

.submit-container {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-submit {
  background-color: #28a745;
  color: white;
  width: 100%;
}
.btn-submit:hover:not(:disabled) {
    background-color: #218838;
}

.btn-reset {
  background-color: #dc3545;
  color: white;
  width: 100%;
}
.btn-reset:hover:not(:disabled) {
    background-color: #c82333;
}

/* PWA Update Notification Toast Styles */
#toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-color);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  opacity: 1;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.toast-hidden {
  opacity: 0;
  transform: translate(-50%, calc(100% + 20px));
  pointer-events: none;
}

#toast-notification span {
  font-weight: 500;
}

#toast-update-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

#toast-update-btn:hover:not(:disabled) {
  background-color: var(--primary-color-dark);
}

#toast-update-btn:disabled {
  opacity: 0.7;
  cursor: default;
}


@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (min-width: 600px) {
  .app-header h1 {
    font-size: 1.8rem;
  }
  .form-step {
    padding: 2.5rem;
  }
  .submit-container {
      flex-direction: row;
  }
}