/* Modern, Minimal AI Answer Generator UI for Stay Uplifted V1.1 */

/* Overall Page & Background */
body {
  background: #f0f2f5;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

/* Unique Container to Override Theme Styles */
.stay-uplifted-container {
  max-width: 600px;
  margin: 50px auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Input Labels */
.input-label {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 3px; /* Reduced spacing between label and input */
  text-align: left;
}

/* Input Subgroups: space each group slightly */
.input-subgroup {
  margin-bottom: 15px;
}

/* Input Group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Overall group gap */
  margin-bottom: 20px;
}

.stay-uplifted-container input[type="text"],
.stay-uplifted-container textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.stay-uplifted-container input[type="text"]:focus,
.stay-uplifted-container textarea:focus {
  border-color: #FF0F47;
  outline: none;
}

/* Checkboxes: show selected in main color */
.stay-uplifted-container input[type="checkbox"] {
  accent-color: #FF0F47;
}

/* Textarea Specifics */
.stay-uplifted-container textarea {
  height: 100px;
  resize: vertical;
}

/* Sources Label */
.source-label {
  font-size: 0.8em;
  color: #555;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 5px;
}

/* Source Options */
.source-container {
  margin-bottom: 20px;
}

.source-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Source Options - ensure each label (checkbox + text) is aligned horizontally centered */
.source-options label {
  display: flex;
  align-items: center;
  gap: 3px;  /* Optional: space between checkbox and text */
  font-size: 0.9em;
  color: #555;
  /* text-align: left;  Remove if not needed because flex aligns content naturally */
}

/* Uplift Button using main color */
.stay-uplifted-container button#upliftButton {
  background: #FF0F47;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.stay-uplifted-container button#upliftButton:hover {
  background: #e00e3d;
}

/* Response Container */
.response-container {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: left;
  font-size: 1em;
  line-height: 1.6;
}

.response-container p {
  margin: 10px 0;
}

/* Quote Styling: Italic, Bold, and in color #d30434 */
.response-container .quote {
  font-style: italic;
  color: #d30434;
  font-weight: bold;
}

/* Copy Button as an outline button with grey border and main color text.
   On hover, the border changes to black. */
.stay-uplifted-container button#copyButton {
  background: transparent;
  border: 2px solid #ccc;
  color: #FF0F47;
  padding: 12px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: border-color 0.3s;
  width: 100%;
  margin-top: 15px;
}

.stay-uplifted-container button#copyButton:hover {
  border-color: #000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .stay-uplifted-container {
    margin: 20px auto; /* Changed from margin: 20px to margin: 20px auto */
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .source-options label {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }
}
