/* SCORM Wrapper CSS */

.scorm-course-section{
  background-color: #FBF5E4;
}

.scorm-container {
  position: relative;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scorm-iframe {
  display: block;
  border: none;
  width: 100%;
  height: calc(100vh - 126px);
  background-color: #fff;
}

.scorm-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.scorm-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.scorm-loading-text {
  font-size: 16px;
  color: #333;
}

.scorm-status {
  padding: 10px;
  text-align: center;
  border-top: 1px solid #ddd;
  font-weight: bold;
}

.scorm-status-not-attempted,
.scorm-status-incomplete,
.scorm-status-browsed {
  background-color: #f8f9fa;
  color: #6c757d;
}

.scorm-status-completed,
.scorm-status-passed {
  background-color: #d4edda;
  color: #155724;
}

.scorm-status-failed {
  background-color: #f8d7da;
  color: #721c24;
}

.scorm-error {
  padding: 15px;
  margin: 20px 0;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  background-color: #f8d7da;
}