/* Results Component Styles */
.results-container {
  min-height: 100vh;
  background-color: #F3F4F6;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.results-content {
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 20px;
  text-align: center;
}

.back-button {
  position: absolute;
  left: 20px;
  top: 20px;
  background: none;
  border: none;
  color: #6B7280;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 10;
}

.back-button:hover {
  color: #3B82F6;
  background-color: #F3F4F6;
}

.results-title {
  font-size: 2.5rem;
  color: #1F2937;
  margin-bottom: 10px;
  font-weight: 700;
}

.results-subtitle {
  font-size: 1.1rem;
  color: #6B7280;
  margin-bottom: 40px;
}

.parsed-info-section {
  margin-bottom: 40px;
  text-align: left;
}

.parsed-info-section h2 {
  font-size: 1.5rem;
  color: #1F2937;
  margin-bottom: 15px;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 10px;
}

.parsed-text-box {
  background-color: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: #4B5563;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.option-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  border: 1px solid #E5E7EB;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.option-card h3 {
  font-size: 1.25rem;
  color: #1F2937;
  margin-bottom: 10px;
  font-weight: 600;
}

.option-card p {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.5;
}

.important-terms-section {
  text-align: left;
}

.important-terms-section h2 {
  font-size: 1.5rem;
  color: #1F2937;
  margin-bottom: 15px;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 10px;
}

.terms-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.terms-list li {
  background-color: #E0F2FE;
  color: #1E40AF;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #BFDBFE;
}

/* Export Section */
.export-section {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.export-section h4 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 16px;
}

.export-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.export-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.json-btn {
  background: #28a745;
  color: white;
}

.json-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.text-btn {
  background: #17a2b8;
  color: white;
}

.text-btn:hover {
  background: #138496;
  transform: translateY(-1px);
}

.save-btn {
  background: #6f42c1;
  color: white;
}

.save-btn:hover {
  background: #5a32a3;
  transform: translateY(-1px);
}

/* Metadata Section */
.metadata-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #007bff;
}

.metadata-section p {
  margin: 5px 0;
  font-size: 14px;
  color: #6c757d;
}

.metadata-section strong {
  color: #495057;
}

/* Enhanced Results Styling */
.results-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.results-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.summary-content, .questions-content, .terms-content, .parsed-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e9ecef;
}

.question-item, .term-item {
  background: white;
  padding: 15px;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid #007bff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.question-item h4, .term-item h4 {
  color: #2c3e50;
  margin: 0 0 8px 0;
  font-size: 16px;
}

.question-item p, .term-item p {
  margin: 0;
  color: #6c757d;
  line-height: 1.5;
}

/* Loading Animation */
.loading-section {
  text-align: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Section */
.error-section {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.error-section h2 {
  color: #721c24;
  margin-bottom: 10px;
}

.error-section p {
  color: #6B7280;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Analytics Section */
.analytics-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.analytics-section h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  text-align: center;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.analytics-item {
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.analytics-value {
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.analytics-label {
  font-size: 12px;
  opacity: 0.9;
}

/* Keyboard Shortcuts */
.shortcuts-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-size: 14px;
}

.shortcuts-info p {
  margin: 5px 0;
  color: #6c757d;
}

kbd {
  background: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  font-family: monospace;
  color: #495057;
}

/* Enhanced Option Cards */
.option-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  margin: 15px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  border-color: #007bff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.option-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.option-card p {
  color: #6c757d;
  margin-bottom: 10px;
  line-height: 1.5;
}

.option-card small {
  color: #28a745;
  font-size: 12px;
  font-weight: 500;
}

/* Enhanced Export Buttons */
.export-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.export-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .results-content {
    padding: 30px 20px;
  }
  
  .back-button {
    left: 10px;
    top: 10px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .results-title {
    font-size: 2rem;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .results-section h2 {
    font-size: 1.5rem;
  }
  
  .summary-content,
  .parsed-content {
    padding: 20px;
    font-size: 0.9rem;
  }

  .analytics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .analytics-value {
    font-size: 20px;
  }
  
  .export-buttons {
    flex-direction: column;
  }
  
  .export-btn {
    width: 100%;
  }
} 

/* Concept Graph Styles */
.concept-graph-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.graph-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
  flex-shrink: 0;
}

.graph-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.graph-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.concept-graph-view {
  flex: 1;
  min-height: 350px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.graph-info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  flex-shrink: 0;
}

.graph-info p {
  margin: 5px 0;
  color: #333;
}

/* Simple Graph Layout */
.simple-graph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  height: 100%;
  padding: 20px;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.graph-node {
  background: white;
  border: 2px solid #667eea;
  border-radius: 25px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
  min-width: 120px;
  max-width: 200px;
  word-wrap: break-word;
}

.graph-node:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.graph-node.main {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 25px;
}

.graph-node.sub {
  border-color: #764ba2;
  background: white;
  color: #333;
  font-size: 14px;
}

.graph-connection {
  width: 3px;
  height: 25px;
  background: linear-gradient(to bottom, #667eea, #764ba2);
  margin: 0 auto;
  border-radius: 2px;
}

/* Graph loading state */
.graph-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
}

.graph-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 

/* Interactive Quiz Styles */
.quiz-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.quiz-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.quiz-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.quiz-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quiz-view {
  min-height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 15px 0;
  padding: 20px;
  color: white;
}

.quiz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
}

.quiz-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.quiz-error {
  text-align: center;
  color: white;
  padding: 40px;
}

/* Quiz Questions */
.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.question-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 20px;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.question-title {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 18px;
}

.question-text {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 14px;
}

.option-btn:hover:not(.answered) {
  border-color: #667eea;
  background: #f8f9ff;
  transform: translateX(5px);
}

.option-btn.answered {
  cursor: not-allowed;
  opacity: 0.7;
}

.option-btn.correct {
  border-color: #28a745;
  background: #d4edda;
  color: #155724;
}

.option-btn.incorrect {
  border-color: #dc3545;
  background: #f8d7da;
  color: #721c24;
}

.option-letter {
  background: #667eea;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
}

.explanation {
  margin-top: 15px;
  padding: 15px;
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  border-radius: 4px;
  color: #1565c0;
}

/* Quiz Results */
.quiz-results {
  text-align: center;
  color: white;
  padding: 20px;
}

.score-display {
  margin: 30px 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.score-circle.excellent {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.score-circle.good {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.score-circle.needs-improvement {
  background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.score-text {
  font-size: 18px;
  margin-bottom: 20px;
}

.results-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.result-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

.result-item.correct {
  border-left: 4px solid #28a745;
}

.result-item.incorrect {
  border-left: 4px solid #dc3545;
}

.question-number {
  font-weight: bold;
}

.result-status {
  font-size: 14px;
}

.quiz-info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}

.quiz-info p {
  margin: 5px 0;
  color: #333;
} 

/* Quizlet-style Questions & Answers */
.quizlet-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
}

.quizlet-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.quizlet-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.quizlet-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quizlet-btn.generate-new {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
}

.quizlet-btn.generate-new:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.quizlet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
}

.quizlet-loading .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.quizlet-questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quizlet-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 20px;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.quizlet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.question-side {
  margin-bottom: 15px;
}

.question-side h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 18px;
}

.question-text {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.answer-side {
  background: #f8f9ff;
  border-left: 4px solid #667eea;
  border-radius: 4px;
  padding: 15px;
  margin: 15px 0;
  color: #333;
}

.answer-side h3 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 16px;
}

.answer-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.toggle-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.toggle-btn:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.quizlet-info {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}

.quizlet-info p {
  margin: 5px 0;
  color: #333;
} 