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

/* Body & fonts */
body {
  font-family: 'Inter', sans-serif;
  background: #121212;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  
}

/* Container card */
#container {
  background: linear-gradient(145deg, #1e1e1e, #282828);
  border-radius: 16px;
  box-shadow:
    4px 4px 8px #0a0a0a,
    -4px -4px 8px #2f2f2f;
  max-width: 720px;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

/* Headings */
h1 {
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  color: #f5f5f5;
  letter-spacing: 1.5px;
  user-select: none;
}

h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #90caf9;
}

/* Sections */
section {
  width: 100%;
}

/* Cards */
.card {
  background: #292929;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: inset 2px 2px 4px #1b1b1b, inset -2px -2px 6px #3a3a3a;
  line-height: 1.5;
  font-size: 1.125rem;
  color: #cfd8dc;
  user-select: text;
  
}

/* Input Section */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Labels */
label {
  font-weight: 600;
  font-size: 1.1rem;
  color: #bbdefb;
  align-self: flex-start;
}

/* Select box */
select {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: #1f1f1f;
  border: 1.5px solid #3f51b5;
  color: #e3f2fd;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

select:hover,
select:focus {
  border-color: #90caf9;
  outline: none;
}

/* Textarea */
textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 12px;
  border: 1.5px solid #3f51b5;
  background-color: #222222;
  color: #e3f2fd;
  resize: vertical;
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

textarea:focus {
  border-color: #90caf9;
  outline: none;
}

/* Buttons group */
.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Buttons */
button {
  padding: 0.65rem 1.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 3px 8px rgba(144, 202, 249, 0.5);
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

/* Primary button */
.primary-btn {
  background: linear-gradient(145deg, #42a5f5, #1e88e5);
  color: white;
  box-shadow: 0 5px 15px rgba(30, 136, 229, 0.6);
}

.primary-btn:hover {
  background: linear-gradient(145deg, #1e88e5, #1565c0);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.8);
  transform: translateY(-2px);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.5);
}

/* Secondary button */
.secondary-btn {
  background: #37474f;
  color: #b0bec5;
  box-shadow: 0 3px 10px rgba(55, 71, 79, 0.6);
}

.secondary-btn:hover {
  background: #455a64;
  box-shadow: 0 5px 15px rgba(69, 90, 100, 0.7);
  transform: translateY(-2px);
}

.secondary-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(55, 71, 79, 0.5);
}

/* Accessibility: hide text but readable by screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Responsive */
@media (max-width: 600px) {
  #container {
    padding: 1.5rem 2rem;
  }

  button {
    font-size: 1rem;
  }
}


#toggleSavedBtn {
  background-color: #0066cc;
  color: white;
  padding: 10px 20px;
  border: none;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#toggleSavedBtn:hover {
  background-color: #0051a3;
}

#savedQuestionsSection {
  margin-top: 15px;
  padding: 15px;
  background: #f0f4f8;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
}

#savedQuestionsSection h3 {
  margin-bottom: 10px;
  color: #333;
}

#savedQuestionsList {
  list-style-type: decimal;
  padding-left: 20px;
  font-size: 15px;
  color: #444;
}


#viewSavedLink {
  display: inline-block;
  margin-top: 20px;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}
#viewSavedLink:hover {
  text-decoration: underline;
}
