/* questionnaire.css */

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1004;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #ffffff;
  margin: 0;
  padding: 30px;
  border: none;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
}

.close {
  color: #80215A;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover,
.close:focus {
  color: #9C3872;
  text-decoration: none;
}

/* Question styles */
.question {
  margin-bottom: 25px;
}

.question label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.question select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f7;
  transition: border-color 0.2s ease;
}

.question select:focus {
  outline: none;
  border-color: #80215A;
}

#submit-questionnaire {
  display: block;
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #80215A;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#submit-questionnaire:hover {
  background-color: #9C3872;
}

/* Learning path select styles */
#learning-path-select {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f5f5f7;
  transition: border-color 0.2s ease;
}

#learning-path-select:focus {
  outline: none;
  border-color: #80215A;
}

#path-descriptions {
  margin-top: 20px;
  padding: 15px;
  background-color: #f5f5f7;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.6;
}

#path-descriptions p {
  margin: 0 0 10px 0;
}

#path-descriptions strong {
  color: #80215A;
  font-weight: 600;
}

/* Path panel styles */
#path-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: none;
}

#path-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow-y: auto;
  z-index: 1004;
  display: none;
}

#path-name {
  margin-top: 0;
  color: #80215A;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

#path-description {
  margin-bottom: 25px;
  text-align: center;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

#step-content {
  margin-bottom: 25px;
}

#step-title {
  color: #80215A;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

#step-description {
  font-style: italic;
  color: #666;
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

#step-details {
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

#path-progress-bar {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

#path-progress {
  height: 100%;
  background-color: #80215A;
  width: 0;
  transition: width 0.3s ease;
}

#path-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#prev-step, #next-step {
  padding: 10px 20px;
  background-color: #80215A;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#prev-step:hover, #next-step:hover {
  background-color: #9C3872;
}

#prev-step:disabled, #next-step:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#step-counter {
  font-size: 16px;
  color: #666;
}

#close-path {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #80215A;
  transition: color 0.2s ease;
}

#close-path:hover {
  color: #9C3872;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
  .modal-content, #path-panel {
    width: 95%;
    padding: 20px;
  }

  #path-name {
    font-size: 24px;
  }

  #step-title {
    font-size: 20px;
  }

  #prev-step, #next-step {
    padding: 8px 16px;
    font-size: 14px;
  }
}
#step-details ul {
  list-style-type: none;
  padding: 0;
}

#step-details li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#step-details svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

#step-details a {
  flex-grow: 1;
  color: #80215A;
  text-decoration: none;
  transition: color 0.2s ease;
}

#step-details a:hover {
  color: #9C3872;
  text-decoration: underline;
}

.asset-time {
  margin-left: 10px;
  font-size: 0.8em;
  color: #666;
  white-space: nowrap;
}