/* Basic styling for StoryShort clone */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  color: #333;
}

header {
  background-color: #111;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1 {
  margin-top: 0;
  font-size: 2rem;
}

nav {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

nav a {
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  padding: 1rem 2rem;
  margin: 0 1rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

nav a:hover {
  background-color: #0056b3;
}

form > div {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

textarea {
  width: 100%;
  height: 120px;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

select, input[type="text"], input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button {
  background-color: #28a745;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #1e7e34;
}

.credit-output {
  font-weight: bold;
  margin-top: 0.5rem;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.multi-select label {
  display: inline-block;
  margin-right: 0.5rem;
  font-weight: normal;
}

/* Specific styling for accounts and frequency section */
.account-options,
.frequency-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-options .option,
.frequency-options .option {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.75rem;
  flex: 1 1 120px;
  text-align: center;
  position: relative;
}

.account-options .option.disabled::after,
.frequency-options .option.disabled::after {
  content: "Upgrade Required";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}