/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #004d99;
  --primary-dark: #003366;
  --primary-light: #1a75c9;
  --accent: #ffcc00;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffa600;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --card-shadow: 0 8px 16px rgba(0,0,0,0.15);
  --transition-speed: 0.3s;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding: 0;
}

/* Header Branding */
header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

/* Navigation Tabs */
nav {
  background: var(--primary-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tabs {
  list-style: none;
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.tab {
  cursor: pointer;
  padding: 1rem 1.5rem;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab:hover, .tab.active {
  border-bottom: 3px solid var(--accent);
  background: rgba(255,255,255,0.1);
}

.tab i {
  font-size: 1.25rem;
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Tab Content Containers */
.tab-content {
  display: none;
  min-height: calc(100vh - 160px);
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-top: 2rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tinder-Style Card Container */
.card-deck {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  height: 65vh;
  perspective: 1000px;
  overflow: visible;
}

/* Card Styles */
.card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform var(--transition-speed) ease;
  cursor: text;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
}

.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  transform: rotateY(180deg);
}

.card-content {
  flex: 1;
  gap: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.card-question {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.card-content p {
  color: var(--dark);
  line-height: 1.6;
}

.card-content ul, .card-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.card-content li {
  margin-bottom: 0.5rem;
}

.card h2 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-size: 1.75rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.25rem;
}

.card p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Card Actions */
.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-actions button {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(0, 77, 153, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.card-actions button:hover {
  background: var(--primary);
  color: var(--white);
}

/* Card Controls - Tinder Style */
.card-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.control-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.skip-btn {
  background: var(--danger);
  color: var(--white);
}

.flip-btn {
  background: var(--warning);
  color: var(--white);
}

.save-btn {
  background: var(--success);
  color: var(--white);
}

.control-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Highlighted Text */
.highlighted {
  background-color: rgba(255, 204, 0, 0.3);
  border-radius: 3px;
  padding: 0 3px;
}

/* Article highlights */
.article-highlight {
  background-color: rgba(255, 204, 0, 0.3);
  border-radius: 3px;
  padding: 0 3px;
  cursor: pointer;
  position: relative;
}

.article-highlight:hover {
  background-color: rgba(255, 204, 0, 0.5);
}

/* Highlight tools */
.highlight-tools {
  display: flex;
  gap: 10px;
  margin: 1rem 0;
}

.highlight-tools button {
  background: var(--primary-light);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Highlight confirmation */
.highlight-confirmation {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: slide-in 0.3s ease-out;
  z-index: 100;
}

.highlight-confirmation button {
  background: white;
  color: var(--success);
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
}

@keyframes slide-in {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Highlights log */
.highlights-log {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.highlights-log h4 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.highlight-entry {
  background: white;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.highlight-text {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.highlight-time {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.remove-highlight {
  align-self: flex-end;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.full-article {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.full-article h2, .full-article h3, .full-article h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.full-article p {
  margin-bottom: 1rem;
}

.full-article ul, .full-article ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.full-article li {
  margin-bottom: 0.5rem;
}

/* Cloze Deletion */
.cloze {
  display: inline;
  background-color: rgba(0, 77, 153, 0.1);
  border-bottom: 2px dashed var(--primary);
  border-radius: 3px;
  padding: 0 3px;
  cursor: pointer;
  position: relative;
  color: var(--primary);
  font-weight: 600;
}

.cloze-hidden {
  color: transparent;
}

.cloze-hidden:hover {
  color: rgba(0, 0, 0, 0.5);
}

/* Dashboard Styles */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.dashboard-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-container {
  height: 300px;
  position: relative;
}

/* Saved Cards Grid */
.saved-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.saved-card-item {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.saved-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Progress Bar */
.progress-container {
  height: 10px;
  background: var(--light-gray);
  border-radius: 5px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* Heatmap */
.heatmap-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 1rem;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.heatmap-cell:hover {
  transform: scale(1.1);
}

/* Animation for swipe */
@keyframes swipeRight {
  to { transform: translateX(1000px) rotate(30deg); opacity: 0; }
}

@keyframes swipeLeft {
  to { transform: translateX(-1000px) rotate(-30deg); opacity: 0; }
}

.swipe-right {
  animation: swipeRight 0.5s forwards;
}

.swipe-left {
  animation: swipeLeft 0.5s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }
  
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .card-deck {
    height: 55vh;
  }
  
  .control-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .card-img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .tab {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
  
  .tab i {
    font-size: 1rem;
  }
  
  .card-deck {
    height: 50vh;
  }
  
  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Virtual Exam Styles */
#exam-container {
  padding: 2rem;
  width: 100%;
}

.exam-question {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exam-image-container {
  max-width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.exam-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-caption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

.question-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.answer-option {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-option:hover {
  background-color: #e9ecef;
}

.answer-option.selected {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.answer-option input[type="radio"] {
  margin-right: 0.75rem;
}

.text-answer {
  width: 100%;
}

.text-answer textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
}

.exam-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.exam-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.score-summary {
  text-align: center;
  font-size: 1.2rem;
  margin: 1.5rem 0;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.exam-review {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-question {
  margin-bottom: 1rem;
}

.review-image-container {
  max-width: 100%;
  text-align: center;
  margin: 1rem 0;
}

.review-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
}

.review-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.correct-answer {
  border-left: 4px solid var(--success);
}

.incorrect-answer {
  border-left: 4px solid var(--danger);
}

.correct-option {
  color: var(--success);
  font-weight: 500;
  margin-top: 0.5rem;
}

.answer-explanation {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Advanced Dashboard Insights Styles */
.full-width {
  grid-column: 1 / -1;
}

.insight-demo {
  margin: 1rem 0;
}

.insight-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.insight-label {
  width: 100px;
  font-weight: 500;
}

.insight-value {
  margin-left: 0.75rem;
  font-weight: 500;
}

.insight-suggestion {
  font-size: 0.9rem;
  color: var(--primary);
  font-style: italic;
  margin-top: 0.75rem;
}

/* Knowledge Gap Analysis */
.gap-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.gap-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.gap-details h4 {
  margin: 0 0 0.25rem 0;
}

.gap-details p {
  margin: 0;
  font-size: 0.9rem;
}

.gap-item.critical {
  background-color: rgba(220, 53, 69, 0.1);
}

.gap-item.critical i {
  color: var(--danger);
}

.gap-item.warning {
  background-color: rgba(255, 193, 7, 0.1);
}

.gap-item.warning i {
  color: var(--warning);
}

.gap-item.good {
  background-color: rgba(40, 167, 69, 0.1);
}

.gap-item.good i {
  color: var(--success);
}

/* Peer Comparison */
.comparison-stat {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.stat-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-weight: bold;
  color: white;
}

.stat-circle.above {
  background-color: var(--success);
}

.stat-circle.below {
  background-color: var(--danger);
}

.stat-circle.average {
  background-color: var(--primary);
}

.comparison-stat p {
  margin: 0;
}

/* Cards Section Navigation */
.cards-section-nav {
  display: flex;
  margin: 2rem 0 1rem;
  background: var(--light-gray);
  border-radius: 50px;
  padding: 0.5rem;
}

.section-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.section-tab:hover {
  background: rgba(0, 77, 153, 0.1);
  color: var(--primary);
}

.section-tab.active {
  background: var(--primary);
  color: var(--white);
}

.cards-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.cards-section.active {
  display: block;
}

/* Retention Metrics */
.retention-chart {
  margin: 1.5rem 0;
  height: 200px;
  position: relative;
}

.retention-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 100%;
}

.retention-bar {
  width: 30px;
  background-color: var(--primary);
  border-radius: 4px 4px 0 0;
  position: relative;
}

.retention-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 500;
}

.retention-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 0.5rem;
}

.retention-labels span {
  font-size: 0.85rem;
  color: #666;
}

/* Learning Velocity */
.velocity-meter {
  width: 200px;
  height: 100px;
  background-color: #f5f5f5;
  border-radius: 100px 100px 0 0;
  margin: 2rem auto 1rem;
  position: relative;
  overflow: hidden;
}

.velocity-indicator {
  width: 100px;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: bottom center;
}

.velocity-scale {
  position: absolute;
  bottom: 5px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.velocity-stats {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0 0.5rem;
}

.velocity-stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: 600;
  font-size: 1.1rem;
}

/* OSCE Performance Metrics */
.performance-metrics {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
}

.performance-metric {
  text-align: center;
}

.circular-chart {
  width: 80px;
  height: 80px;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3.8;
  stroke-linecap: round;
}

.percentage {
  fill: var(--primary-dark);
  font-size: 0.5rem;
  text-anchor: middle;
  font-weight: bold;
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Personalized Recommendations */
.recommendations {
  margin: 1.5rem 0 0.5rem;
}

.recommendation-item {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.recommendation-item:last-child {
  border-bottom: none;
}

.recommendation-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.recommendation-content {
  flex: 1;
}

.recommendation-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-dark);
}

.recommendation-content p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}

/* Anki-Style Quiz Styles */
.quiz-controls {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.quiz-container {
  display: none;
  margin: 2rem 0;
}

.quiz-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  min-height: 300px;
  transform-style: preserve-3d;
  transition: transform var(--transition-speed) ease;
}

.quiz-card.flipped {
  transform: rotateY(180deg);
}

.quiz-card-front, .quiz-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quiz-card-back {
  transform: rotateY(180deg);
}

.quiz-question {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.quiz-content {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.quiz-answer {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.quiz-difficulty {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.difficulty-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  flex: 1;
}

.difficulty-btn.easy {
  background: rgba(40, 167, 69, 0.2);
  color: var(--success);
}

.difficulty-btn.medium {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning);
}

.difficulty-btn.hard {
  background: rgba(220, 53, 69, 0.2);
  color: var(--danger);
}

.difficulty-btn:hover {
  filter: brightness(0.9);
}

.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  margin: 0 1rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.quiz-results {
  display: none;
  margin: 2rem 0;
}

.results-summary {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.results-score {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  margin: 1rem 0;
}

.results-message {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Quiz Settings Modal */
.quiz-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
}

.form-group select, .form-group input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Premium Features Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--primary);
}

/* Premium Features Styles */
.premium-feature {
  display: flex;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.feature-icon {
  flex: 0 0 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.feature-details {
  flex: 1;
}

.feature-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.feature-details p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.premium-cta {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 1rem;
}

.premium-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.pricing {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gray);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.guarantee {
  font-size: 0.9rem;
  color: var(--gray);
}

/* AI Patient Simulator Styles */
.ai-simulator {
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.simulation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.patient-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.patient-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.patient-vitals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vital-card {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

.vital-value {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.vital-label {
  font-size: 0.8rem;
  color: var(--gray);
}

.simulation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.action-btn {
  padding: 0.5rem 1rem;
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background: var(--primary-light);
  color: var(--white);
  border-color: var(--primary-light);
}

.chat-container {
  height: 400px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f8f9fa;
}

.message {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  position: relative;
}

.message-user {
  background: var(--primary-light);
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.message-patient {
  background: #e9ecef;
  color: var(--dark);
  margin-right: auto;
  border-bottom-left-radius: 0;
}

.chat-input {
  display: flex;
  padding: 0.75rem;
  background: var(--white);
  border-top: 1px solid #e1e4e8;
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #d0d7de;
  border-radius: 50px;
  font-size: 0.95rem;
}

.chat-input button {
  margin-left: 0.5rem;
}

/* Video Assessment Styles */
.video-assessment {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  height: 400px;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: #1a1a1a;
}

.video-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.assessment-feedback {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
}

.feedback-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.feedback-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.feedback-icon {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.feedback-positive {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.feedback-negative {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

.feedback-neutral {
  background: rgba(108, 117, 125, 0.1);
  color: var(--gray);
}

/* Adaptive Learning Path Styles */
.learning-path {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: thin;
}

.learning-path::-webkit-scrollbar {
  height: 6px;
}

.learning-path::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.learning-path::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}

.path-node {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 30px;
}

.path-node::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #d0d7de;
  z-index: 1;
}

.path-node:first-child::before {
  left: 50%;
  width: 50%;
}

.path-node:last-child::before {
  width: 50%;
}

.node-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #d0d7de;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.node-complete .node-indicator {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.node-complete .node-card {
  border-left-color: var(--success);
}

.node-current .node-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.node-current .node-card {
  border-left-color: var(--primary);
}

.path-node:not(:last-child) .node-indicator::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background-color: #d0d7de;
}

.node-complete:not(:last-child) .node-indicator::after {
  background-color: var(--success);
}

/* Expert Clinician Network Styles */
.expert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.expert-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.expert-header {
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
}

.expert-avatar {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--white);
  overflow: hidden;
}

.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-info {
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.expert-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.expert-specialty {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.expert-rating {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.9rem;
}

.expert-rating span {
  color: var(--gray);
  margin-left: 0.25rem;
}

.expert-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.expert-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.expert-actions {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
}

/* Basic card specific styles */
.card[data-type="basic"] .card-content.basic-front {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card[data-type="basic"] .card-content.basic-back {
  font-size: 1rem;
  line-height: 1.6;
  padding: 1rem;
  background-color: #f5f9ff;
  border-radius: 8px;
  border-left: 4px solid #4285f4;
  margin-bottom: 1.5rem;
}

.card[data-type="basic"] .card-back {
  padding: 1.5rem;
}

/* Table styling for basic cards (used in SQL vs NoSQL example) */
.card[data-type="basic"] table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.card[data-type="basic"] th,
.card[data-type="basic"] td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

.card[data-type="basic"] th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.card[data-type="basic"] tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* --- Premium Features --- */
.premium-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #f5a623, #f8e71c);
  color: #333;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.premium-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.premium-badge i {
  margin-right: 5px;
  color: #333;
}

.premium-teaser {
  border: 2px solid #f5a623 !important;
  background: linear-gradient(to bottom, #fffcf2, #fff) !important;
}

.premium-teaser h3 {
  color: #f5a623;
}

.premium-features-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.premium-features-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.premium-features-list li i {
  color: #4caf50;
  margin-right: 8px;
}

.cards-limit-note {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.cards-limit-note p {
  margin: 0;
}

.cards-limit-note i {
  color: #6c757d;
  margin-right: 8px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #333;
}

.premium-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  border-radius: 8px;
  text-align: center;
}

.premium-cta h3 {
  margin-top: 0;
  color: #333;
}

.premium-cta p {
  margin-bottom: 1rem;
  color: #666;
}

/* AI Patient Simulator */
.ai-simulator {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.simulation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simulation-header h3 {
  margin: 0;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.badge-primary {
  background-color: #4299e1;
  color: white;
}

.badge-secondary {
  background-color: #a0aec0;
  color: white;
}

.patient-info {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  gap: 1rem;
}

.patient-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.patient-vitals {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.vital-card {
  min-width: 100px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.vital-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
}

.vital-label {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

.simulation-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 120px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: #e9ecef;
}

.action-btn i {
  margin-right: 8px;
}

.chat-container {
  height: 300px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #f8fafc;
}

.message {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  max-width: 80%;
}

.message-system {
  background-color: #edf2f7;
  align-self: center;
  color: #4a5568;
  border-radius: 8px;
  max-width: 90%;
  font-style: italic;
}

.message-patient {
  background-color: #e9d8fd;
  align-self: flex-start;
  color: #553c9a;
  border-top-left-radius: 4px;
}

.message-doctor {
  background-color: #bee3f8;
  align-self: flex-end;
  color: #2b6cb0;
  border-top-right-radius: 4px;
}

.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #fff;
  border-top: 1px solid #e1e4e8;
}

.chat-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  outline: none;
}

/* Video Assessment */
.video-assessment {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-container {
  background-color: #1a202c;
  border-radius: 8px;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-placeholder {
  color: #a0aec0;
  text-align: center;
}

.video-placeholder i {
  margin-bottom: 1rem;
  opacity: 0.6;
}

.video-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.assessment-feedback {
  background-color: #f8fafc;
  padding: 1.5rem;
  border-radius: 10px;
}

.feedback-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.feedback-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.feedback-icon {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.feedback-positive {
  background-color: #48bb78;
}

.feedback-negative {
  background-color: #f56565;
}

.feedback-neutral {
  background-color: #4299e1;
}

.feedback-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.feedback-item p {
  margin: 0;
  color: #4a5568;
}

/* Adaptive Learning Path */
.learning-path {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.path-node {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.node-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #4a5568;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  position: relative;
}

.node-card {
  flex: 1;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #e9ecef;
}

.node-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.node-meta {
  font-size: 0.85rem;
  color: #718096;
}

.node-complete .node-indicator {
  background-color: #48bb78;
  color: white;
}

.node-complete .node-card {
  border-left-color: #48bb78;
}

.node-current .node-indicator {
  background-color: #4299e1;
  color: white;
}

.node-current .node-card {
  border-left-color: #4299e1;
}

.path-node:not(:last-child) .node-indicator::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background-color: #e9ecef;
}

.node-complete:not(:last-child) .node-indicator::after {
  background-color: #48bb78;
}

/* Expert Clinician Network */
.expert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.expert-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.expert-header {
  height: 80px;
  background: linear-gradient(135deg, #4299e1, #667eea);
  position: relative;
}

.expert-avatar {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid white;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert-info {
  padding: 2rem 1rem 1rem;
}

.expert-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.expert-specialty {
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.expert-rating {
  color: #f6ad55;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.expert-rating span {
  color: #4a5568;
  margin-left: 0.25rem;
}

.expert-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.expert-meta-item {
  font-size: 0.85rem;
  color: #718096;
}

.expert-meta-item i {
  margin-right: 5px;
  color: #4a5568;
}

.expert-actions {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .patient-vitals {
    flex-wrap: wrap;
  }
  
  .vital-card {
    min-width: calc(50% - 0.5rem);
  }
  
  .simulation-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .expert-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .modal-content {
    padding: 1rem;
  }
  
  .vital-card {
    min-width: 100%;
  }
  
  .video-controls {
    flex-direction: column;
  }
}

/* OSCE Peer Scheduling Styles */
.date-grid {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.date-grid-row {
  display: flex;
  gap: 0.5rem;
}

.date-item {
  min-width: 90px;
  height: 90px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.date-item.today {
  border-color: var(--primary);
}

.date-item.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.date-day {
  font-size: 0.9rem;
  font-weight: 500;
}

.date-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.25rem 0;
}

.date-month {
  font-size: 0.9rem;
}

.time-slot-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.time-slot {
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 2px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-slot:hover {
  border-color: var(--primary-light);
}

.time-slot.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.peer-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.peer-card {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  background: white;
}

.peer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.peer-card.selected {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.peer-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.peer-info {
  padding: 0.75rem;
  flex: 1;
}

.peer-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.peer-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--gray);
}

.peer-rating {
  font-size: 0.85rem;
  color: var(--warning);
}

.schedule-summary {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.summary-item {
  display: flex;
}

.summary-label {
  font-weight: 600;
  width: 60px;
}

.schedule-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Booked session display */
#peer-session-display {
  margin-bottom: 2rem;
  border-left: 4px solid var(--success);
}

.session-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1rem 0;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.session-item i {
  font-size: 1.25rem;
  color: var(--primary);
}

.session-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Notification */
.notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.active {
  transform: translateY(0);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.notification-content i {
  font-size: 1.5rem;
  color: var(--success);
}

.notification-content p {
  margin: 0;
}

/* Multiple choice exam options */
.exam-options-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.exam-option {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.exam-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.exam-option i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.exam-option h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.exam-option p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

/* Quiz styles */
.quiz-header {
  margin-bottom: 2rem;
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.quiz-question {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
}

.quiz-question.correct {
  background: rgba(40, 167, 69, 0.1);
  border-left: 4px solid var(--success);
}

.quiz-question.incorrect {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid var(--danger);
}

.question-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.question-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-item label {
  flex: 1;
  padding: 0.75rem;
  border-radius: 5px;
  background: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.option-item label:hover {
  background: #e9ecef;
}

.option-item input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.quiz-score {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.score-percent {
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

/* Responsive styles for new components */
@media (max-width: 768px) {
  .date-grid-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .date-item {
    min-width: 80px;
    height: 80px;
  }
  
  .date-number {
    font-size: 1.5rem;
  }
  
  .time-slot-container {
    flex-direction: column;
  }
  
  .time-slot {
    width: 100%;
  }
  
  .peer-container {
    grid-template-columns: 1fr;
  }
  
  .session-details {
    flex-direction: column;
    gap: 1rem;
  }
  
  .session-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .exam-options-container {
    grid-template-columns: 1fr;
  }
}

/* Various modal animations */
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-in {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content {
  animation: modal-slide-in 0.3s ease;
}

/* Anki Spaced Repetition System Styles */
.anki-header {
  margin-bottom: 2rem;
}

.anki-info {
  background-color: rgba(0, 77, 153, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.anki-stats {
  margin: 2rem 0;
}

.anki-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.anki-stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.2s ease;
}

.anki-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.anki-accuracy-chart {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.accuracy-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.accuracy-bar-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accuracy-label {
  width: 60px;
  font-weight: 500;
}

.accuracy-bar-container {
  flex: 1;
  height: 12px;
  background: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
}

.accuracy-bar {
  height: 100%;
  border-radius: 10px;
}

.accuracy-bar.easy {
  background: #4caf50;
}

.accuracy-bar.good {
  background: #2196f3;
}

.accuracy-bar.hard {
  background: #ff9800;
}

.accuracy-bar.again {
  background: #f44336;
}

.accuracy-value {
  width: 40px;
  text-align: right;
  font-weight: 500;
}

.anki-forecast {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
}

.forecast-chart-container {
  height: 300px;
  margin-top: 1.5rem;
}

.anki-review-container {
  max-width: 700px;
  margin: 0 auto;
}

.anki-review-progress {
  margin-bottom: 2rem;
}

.progress-text {
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.anki-card {
  position: relative;
  height: 350px;
  perspective: 1000px;
  margin-bottom: 2rem;
}

.anki-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.anki-card.flipped .anki-card-inner {
  transform: rotateY(180deg);
}

.anki-card-front, .anki-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.anki-card-back {
  transform: rotateY(180deg);
}

.anki-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.anki-card-question {
  font-size: 1.25rem;
  color: var(--dark);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.anki-card-content {
  font-size: 1rem;
  line-height: 1.6;
}

.anki-card-image {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-top: 1rem;
}

.anki-reveal-button {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.anki-rating-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.rating-btn {
  flex: 1;
  border-radius: 8px;
  padding: 1rem 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  color: white;
}

.rating-btn.again {
  background: #f44336;
}

.rating-btn.hard {
  background: #ff9800;
}

.rating-btn.good {
  background: #2196f3;
}

.rating-btn.easy {
  background: #4caf50;
}

.rating-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.rating-btn small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.hidden {
  display: none;
}

.anki-review-summary {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.summary-stat {
  text-align: center;
}

.review-distribution {
  margin: 1.5rem 0;
}

.distribution-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.distribution-date {
  width: 100px;
  font-size: 0.9rem;
}

.distribution-bar-container {
  flex: 1;
  height: 12px;
  background: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
}

.distribution-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}

.distribution-count {
  width: 70px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 500;
}

.summary-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* Responsive styles for Anki system */
@media (max-width: 768px) {
  .anki-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .anki-rating-buttons {
    flex-wrap: wrap;
  }
  
  .rating-btn {
    min-width: calc(50% - 0.5rem);
  }
  
  .anki-card {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .anki-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .distribution-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .distribution-date {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .distribution-count {
    width: 100%;
    text-align: left;
    margin-top: 0.25rem;
  }
}
