.breadcrumb-container {
  background: linear-gradient(to right, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

.page-header {
  margin-bottom: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title::before {
  content: "📊";
  font-size: 32px;
}

.page-description {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.stat-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-icon {
  font-size: 32px;
  opacity: 0.8;
}

.stat-card-value {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-card-description {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.stat-card-progress {
  margin-top: 16px;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.stat-card-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1s ease-out;
}

.staff-report-table {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.staff-report-table:hover {
  box-shadow: var(--shadow-xl);
}

.table-header {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.header-cell {
  padding: 20px 24px;
  display: flex;
  align-items: center;
}

.badges-header {
  justify-content: center;
}

.action-header {
  justify-content: center;
}

.table-body {
  background: var(--bg-primary);
}

.staff-row {
  display: grid;
  grid-template-columns: 300px 1fr 200px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  min-height: 100px;
  align-items: center;
}

.staff-row:last-child {
  border-bottom: none;
}

.staff-row:hover {
  background: linear-gradient(to right, rgba(0, 102, 204, 0.02) 0%, var(--bg-secondary) 100%);
  transform: translateX(4px);
}

.staff-cell {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.staff-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.staff-row:hover .staff-avatar {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.staff-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.staff-position {
  font-size: 13px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  letter-spacing: 0.3px;
}

.badges-cell {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-item {
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  animation: badgeFadeIn 0.5s ease-out backwards;
}

.badge-item:nth-child(1) { animation-delay: 0.1s; }
.badge-item:nth-child(2) { animation-delay: 0.2s; }
.badge-item:nth-child(3) { animation-delay: 0.3s; }
.badge-item:nth-child(4) { animation-delay: 0.4s; }
.badge-item:nth-child(5) { animation-delay: 0.5s; }

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

.badge-item:hover {
  transform: scale(1.15) rotate(5deg);
}

.badge-item.badge-completed:hover {
  animation: badgePulse 0.6s ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.25); }
}

.badge-icon {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.badge-completed .badge-icon {
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
  background: radial-gradient(circle, #ffffff 0%, #f0f7ff 100%);
}

.badge-icon svg {
  width: 75px;
  height: 75px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.badge-completed {
  filter: none;
}

.badge-completed .badge-icon::after {
  content: "✓";
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00c97a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

.badge-incomplete {
  filter: grayscale(100%) brightness(1.2);
  opacity: 0.35;
  cursor: default;
}

.badge-incomplete:hover {
  transform: scale(1.05);
}

.badge-incomplete .badge-icon {
  box-shadow: var(--shadow-sm);
}

.action-cell {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.completion-badge {
  padding: 16px 28px;
  border: 3px solid var(--border-color);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-width: 120px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  letter-spacing: 1px;
}

.completion-badge::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  border-radius: 2px;
  opacity: 0.6;
}

.completion-badge.complete {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.1) 0%, rgba(0, 200, 122, 0.15) 100%);
  color: var(--secondary-color);
  box-shadow: 0 4px 20px rgba(0, 168, 107, 0.2);
}

.completion-badge.complete::before {
  background: var(--secondary-color);
  width: 80%;
}

.completion-badge.partial {
  border-color: #f39c12;
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(255, 177, 66, 0.15) 100%);
  color: #f39c12;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.2);
}

.completion-badge.partial::before {
  background: linear-gradient(to right, #f39c12 0%, #f39c12 var(--progress, 50%), transparent var(--progress, 50%));
  width: 80%;
}

.completion-badge.none {
  border-color: #95a5a6;
  background: var(--bg-secondary);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.completion-badge.none::before {
  background: #95a5a6;
  width: 20%;
}

.completion-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(0, 102, 204, 0.1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 40px 40px 28px;
  border-bottom: 3px solid var(--border-color);
  position: relative;
}

.modal-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 40px;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.modal-body {
  padding: 40px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 102, 204, 0.02) 100%);
}

.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.assessment-title-section {
  flex: 1;
}

.assessment-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.assessment-name::before {
  content: "🎯";
  font-size: 28px;
}

.assessment-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.assessment-tag {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.assessment-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tag-level {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 138, 101, 0.2) 100%);
  color: #ff6b35;
  border-color: rgba(255, 107, 53, 0.3);
}

.tag-type {
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.15) 0%, rgba(0, 200, 122, 0.2) 100%);
  color: var(--secondary-color);
  border-color: rgba(0, 168, 107, 0.3);
}

.assessment-score {
  text-align: right;
}

.score-number {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00c97a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0, 168, 107, 0.2);
  position: relative;
}

.score-number::after {
  content: "👍";
  position: absolute;
  top: -10px;
  right: -35px;
  font-size: 28px;
}

.score-time {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.assessment-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.detail-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.detail-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 17px;
  color: var(--primary-color);
  font-weight: 700;
}

.attempts-table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
}

.attempts-table-header {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 20px 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.attempts-table-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr 120px;
  padding: 20px 24px;
  border-bottom: 2px solid var(--border-color);
  align-items: center;
  transition: var(--transition);
  background: white;
}

.attempts-table-row:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.attempts-table-row:last-child {
  border-bottom: none;
}

.attempts-table-row > div {
  font-size: 16px;
  font-weight: 600;
}

.result-pass {
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #00c97a 100%);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-fail {
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkmark {
  color: var(--secondary-color);
  font-size: 18px;
}

@media (max-width: 1024px) {
  .table-header,
  .staff-row {
    grid-template-columns: 250px 1fr 150px;
  }

  .badges-cell {
    gap: 12px;
  }

  .badge-icon {
    width: 60px;
    height: 60px;
  }

  .badge-icon svg {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .table-header,
  .staff-row {
    grid-template-columns: 1fr;
  }

  .table-header {
    display: none;
  }

  .staff-row {
    flex-direction: column;
    display: flex;
    padding: 24px;
  }

  .staff-cell,
  .badges-cell,
  .action-cell {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0;
  }

  .badges-cell {
    justify-content: flex-start;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    margin: 12px 0;
  }

  .action-cell {
    justify-content: flex-start;
  }

  .assessment-header {
    flex-direction: column;
    gap: 20px;
  }

  .assessment-score {
    text-align: left;
  }

  .score-time {
    justify-content: flex-start;
  }

  .assessment-details {
    grid-template-columns: 1fr;
  }

  .attempts-table-header,
  .attempts-table-row {
    grid-template-columns: 80px 1fr 100px 80px;
    font-size: 12px;
    padding: 12px;
  }

  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .stat-card-value {
    font-size: 40px;
  }

  .modal-content {
    max-width: 95%;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 24px;
    padding: 28px 24px 20px;
  }

  .modal-title::after {
    left: 24px;
  }

  .modal-body {
    padding: 24px;
  }

  .score-number {
    font-size: 48px;
  }

  .score-number::after {
    display: none;
  }

  .assessment-name {
    font-size: 20px;
  }
}
