/* mcq.css – for MCQ Generator

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fdfdfd;
  color: #222;
}

.tool-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.07);
  border-radius: 8px;
}

.tool-section h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  text-align: center;
}

.tool-section textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 150px;
}

.tool-section input[type="file"],
.tool-section select {
  font-size: 1rem;
  margin-top: 10px;
  padding: 8px;
}

.tool-section button {
  display: inline-block;
  background-color: #1e88e5;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
}

.tool-section button:hover {
  background-color: #1565c0;
}

#loading {
  margin-top: 15px;
  color: #e65100;
  font-style: italic;
}

#mcqOutput {
  margin-top: 25px;
  white-space: pre-wrap;
  background: #f9f9f9;
  border-left: 4px solid #2196f3;
  padding: 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.input-toggle {
  margin-bottom: 10px;
}
.input-toggle button {
  margin-right: 8px;
  padding: 8px 14px;
  font-weight: bold;
  border: 1px solid #aaa;
  background-color: #f5f5f5;
  cursor: pointer;
}
.input-toggle button:hover {
  background-color: #ddd;
} */

:root {
  /* Color Palette */
  --color-bg: #f5f7fa;
  --color-card: #ffffff;
  --color-primary: #4a90e2;
  --color-accent: #50e3c2;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-border: #e0e0e0;
  --color-btn-hover: #3fbfa1;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.tool-section {
  max-width: 800px;
  margin: 2rem auto;
  background-color: var(--color-card);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.tool-section h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.tool-section p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* Input Toggle Buttons */
.input-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.input-toggle button {
  flex: 1;
  background-color: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-toggle button.active,
.input-toggle button:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Sections */
#pasteSection,
#uploadSection {
  margin-bottom: 1.5rem;
}

#pasteSection label,
#uploadSection label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* File Input */
input[type="file"] {
  font-size: 1rem;
}

/* Select Dropdown */
select {
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Generate Button */
#generateBtn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

#generateBtn:hover {
  background-color: var(--color-btn-hover);
}

/* Loading State */
#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--color-primary);
  margin-top: 1rem;
}

/* Quiz Form & Results */
#quizForm {
  margin-top: 2rem;
}

.quiz-question {
  background-color: var(--color-bg);
  padding: 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.quiz-option {
  display: block;
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 600px) {
  .tool-section {
    padding: 1rem;
  }
  .input-toggle button {
    padding: 0.5rem;
  }
}