/* Scoped to random12-generator-widget */
.random12-generator-widget {
  font-family: Arial, sans-serif;
  max-width: 600px;
  width: 100%;
  background-color: #FAF7F0;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.random12-generator-widget__title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.random12-generator-widget__container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.random12-generator-widget__output {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  background-color: #fff;
  padding: 1rem 2rem;
  border-radius: 6px;
  flex: 1 1 100px;
  min-width: 120px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.random12-generator-widget__controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 150px;
}

.random12-generator-widget__btn {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.random12-generator-widget__btn:hover {
  background-color: #45a049;
}

.random12-generator-widget__btn:active {
  transform: scale(0.98);
}

/* Responsive layout */
@media (max-width: 600px) {
  .random12-generator-widget__container {
    flex-direction: column;
  }

  .random12-generator-widget__controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .random12-generator-widget__btn {
    flex: 1 1 45%;
    margin: 0.25rem;
  }
}