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

body {
  background-color: #121212;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: 600px;
  margin-bottom: 24px;
  text-align: center;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

main {
  width: 100%;
  max-width: 600px;
}

#brief-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#brief-form div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #b3b3b3;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: #4a4a4a;
  background-color: #242424;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

select option {
  background-color: #1e1e1e;
  color: #ffffff;
}

button[type="submit"] {
  width: 100%;
  padding: 12px 16px;
  background-color: #ffffff;
  color: #121212;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
  margin-top: 6px;
}

button[type="submit"]:hover {
  background-color: #e0e0e0;
}

#result-section {
  background-color: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#result-section[hidden] {
  display: none;
}

#brief-output {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 16px;
  background-color: #171717;
  border: 1px solid #292929;
  border-radius: 8px;
}

/* Button container inside result section */
.result-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Base modern button styles */
#copy-btn,
#start-over-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-transform: capitalize;
  text-align: center;
}

/* Copy button - Vibrant modern blue with white text */
#copy-btn {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #3b82f6;
  flex: 1;
}

#copy-btn:hover {
  background-color: #1d4ed8;
  border-color: #2563eb;
}

/* Start over button - Dark grey with subtle border and crisp white text */
#start-over-btn {
  background-color: #2a2a2a;
  color: #f3f4f6;
  border: 1px solid #404040;
  flex: 1;
}

#start-over-btn:hover {
  background-color: #383838;
  border-color: #525252;
}
