/* SCORM My Profile Styles */

.scorm-my-profile,
.scorm-my-courses {
  margin: 0 auto;
  /* background-color: var(--scorm-background-color, #ffffff); */
  color: var(--scorm-text-color, #333333);
}

/* Profile Header */
.scorm-profile-header {
  margin-bottom: 40px;
  padding: 30px;
  background: var(--scorm-surface-muted-color, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--scorm-border-color, #e2e8f0);
}

.profile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.profile-actions {
  flex-shrink: 0;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--scorm-primary-color, #0073aa);
  box-shadow: 0 4px 15px var(--scorm-shadow-color, rgba(0, 0, 0, 0.1));
}

.profile-details {
  flex: 1;
}

.profile-name {
  margin: 0 0 10px;
  font-size: 2.2em;
  font-weight: 700;
  color: var(--scorm-heading-color, #1e293b);
}

.profile-email {
  margin: 0 0 5px;
  font-size: 16px;
  color: var(--scorm-muted-text-color, #64748b);
}

.profile-member-since {
  margin: 0;
  font-size: 14px;
  color: var(--scorm-muted-text-color, #64748b);
}

/* Legacy header support */
.scorm-my-courses-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--scorm-border-color, #e2e8f0);
}

.scorm-my-courses-header h2 {
  margin: 0 0 20px;
  font-size: 2.5em;
  color: var(--scorm-heading-color, #1e293b);
  font-weight: 600;
}

/* User Statistics */
.scorm-my-profile-stats,
.scorm-user-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--scorm-surface-color, #ffffff);
  border-radius: 8px;
  min-width: 140px;
  flex: 1;
  box-shadow: 0 2px 8px var(--scorm-shadow-color, rgba(0, 0, 0, 0.05));
  border: 1px solid var(--scorm-border-color, #e2e8f0);
  transition: all 0.3s ease;
}

.stat-item:hover {
  box-shadow: 0 4px 12px var(--scorm-shadow-color, rgba(0, 0, 0, 0.1));
}

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--scorm-primary-color, #0073aa);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--scorm-muted-text-color, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  text-align: center;
}

/* Section Titles */
.section-title {
  margin: 40px 0 20px;
  font-size: 1.8em;
  font-weight: 600;
  color: var(--scorm-heading-color, #1e293b);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--scorm-border-color, #e2e8f0);
}

/* Courses Grid */
.scorm-my-courses-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.scorm-my-profile[data-columns="1"] .scorm-my-courses-grid,
.scorm-my-courses[data-columns="1"] .scorm-my-courses-grid {
  grid-template-columns: 1fr;
}

.scorm-my-profile[data-columns="2"] .scorm-my-courses-grid,
.scorm-my-courses[data-columns="2"] .scorm-my-courses-grid {
  grid-template-columns: repeat(2, 1fr);
}

.scorm-my-profile[data-columns="3"] .scorm-my-courses-grid,
.scorm-my-courses[data-columns="3"] .scorm-my-courses-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Certificates Section */
.scorm-my-certificates-section {
  margin-top: 50px;
}

.scorm-certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.scorm-certificate-item {
  background: var(--scorm-surface-color, #ffffff);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px var(--scorm-shadow-color, rgba(0, 0, 0, 0.08));
  border: 1px solid var(--scorm-border-color, #e2e8f0);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
  justify-content: space-between;
}

.scorm-certificate-item:hover {
  box-shadow: 0 8px 30px
    var(--scorm-shadow-strong-color, rgba(0, 0, 0, 0.15));
  border-color: var(--scorm-info-border, #bdd9eb);
}

.certificate-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--scorm-certification-color, #17a2b8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scorm-button-text-color, #ffffff);
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(var(--scorm-certification-rgb, 23, 162, 184), 0.3);
}

.certificate-icon .dashicons {
  font-size: 40px;
  width: 40px;
  height: 40px;
}

.certificate-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certificate-title {
  margin: 0 0 15px;
  font-size: 1.3em;
  font-weight: 600;
  color: var(--scorm-heading-color, #1e293b);
  line-height: 1.3;
  text-align: center;
}

.certificate-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.certificate-type {
  font-size: 13px;
  color: var(--scorm-muted-text-color, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  background: var(--scorm-info-surface, rgba(0, 115, 170, 0.08));
  padding: 4px 12px;
  border-radius: 12px;
}

.certificate-date {
  font-size: 13px;
  color: var(--scorm-muted-text-color, #64748b);
  display: flex;
  align-items: center;
  gap: 5px;
}

.certificate-date::before {
  content: "📅";
  font-size: 12px;
}

.certificate-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.scorm-btn-small {
  padding: 10px 20px;
  font-size: 13px;
  min-width: auto;
  flex: 1;
  max-width: 120px;
  font-weight: 600;
}

.scorm-btn-small .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Course Item */
.scorm-my-course-item {
  background: var(--scorm-surface-color, #ffffff);
  color: var(--scorm-text-color, #333333);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--scorm-shadow-color, rgba(0, 0, 0, 0.08));
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--scorm-border-color, #e2e8f0);
  display: flex;
  flex-direction: column;
}

.scorm-my-course-item:hover {
  box-shadow: 0 8px 30px
    var(--scorm-shadow-strong-color, rgba(0, 0, 0, 0.12));
}

.course-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-placeholder {
  width: 100%;
  height: 100%;
  background: var(--scorm-surface-muted-color, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scorm-muted-text-color, #64748b);
}

.course-placeholder .dashicons {
  font-size: 60px;
  width: 60px;
  height: 60px;
}

.course-status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.badge-completed {
  background: var(--scorm-completed-color, #28a745);
  color: var(--scorm-button-text-color, #ffffff);
}

.badge-in-progress {
  background: var(--scorm-in-progress-color, #ffc107);
  color: var(--scorm-button-text-color, #ffffff);
}

.badge-not-started {
  background: var(--scorm-not-started-color, #6c757d);
  color: var(--scorm-button-text-color, #ffffff);
}

.badge-expired {
  background: var(--scorm-in-progress-color, #ffc107);
  color: var(--scorm-button-text-color, #ffffff);
}

.badge-attempted {
  background: var(--scorm-in-progress-color, #ffc107);
  color: var(--scorm-button-text-color, #ffffff);
}

.badge-failed {
  background: var(--scorm-failed-color, #dc3545);
  color: var(--scorm-button-text-color, #ffffff);
}

/* Course Content */
.course-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-title {
  margin: 0 0 15px;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.3;
}

.course-title a {
  color: var(--scorm-heading-color, #333333);
  text-decoration: none;
  transition: color 0.3s ease;
}

.course-title a:hover {
  color: var(--scorm-primary-color, #0073aa);
}

.course-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.course-level {
  background: var(--scorm-info-surface, rgba(0, 115, 170, 0.08));
  color: var(--scorm-text-color, #333333);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.course-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--scorm-muted-text-color, #64748b);
  font-size: 12px;
}

.course-duration .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* Progress Bar */
.course-progress {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  background: var(--scorm-info-surface, rgba(0, 115, 170, 0.08));
}

.course-progress.status-completed {
  background: rgba(var(--scorm-completed-rgb, 40, 167, 69), 0.1);
}

.course-progress.status-in-progress {
  background: rgba(var(--scorm-in-progress-rgb, 255, 193, 7), 0.1);
}

.course-progress.status-failed {
  background: rgba(var(--scorm-failed-rgb, 220, 53, 69), 0.1);
}

.course-progress.status-attempted {
  background: rgba(var(--scorm-in-progress-rgb, 255, 193, 7), 0.1);
}

.course-progress.status-not-started {
  background: rgba(var(--scorm-not-started-rgb, 108, 117, 125), 0.1);
}

.course-progress.status-expired {
  background: rgba(var(--scorm-in-progress-rgb, 255, 193, 7), 0.1);
}

.course-progress.status-expired .progress-fill {
  background: var(--scorm-in-progress-color, #ffc107);
}

.course-progress.status-expired .progress-text {
  color: var(--scorm-in-progress-color, #ffc107);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--scorm-progress-track-color, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  width: 100%; /* Always full width */
  border-radius: 4px;
  transition: background 0.3s ease;
}

.course-progress.status-completed .progress-fill {
  background: var(--scorm-completed-color, #28a745);
}

.course-progress.status-in-progress .progress-fill {
  background: var(--scorm-in-progress-color, #ffc107);
}

.course-progress.status-failed .progress-fill {
  background: var(--scorm-failed-color, #dc3545);
}

.course-progress.status-attempted .progress-fill {
  background: var(--scorm-in-progress-color, #ffc107);
}

.course-progress.status-not-started .progress-fill {
  background: var(--scorm-not-started-color, #6c757d);
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--scorm-heading-color, #1e293b);
}

.course-progress.status-completed .progress-text {
  color: var(--scorm-completed-color, #28a745);
}

.course-progress.status-in-progress .progress-text {
  color: var(--scorm-in-progress-color, #ffc107);
}

.course-progress.status-failed .progress-text {
  color: var(--scorm-failed-color, #dc3545);
}

.course-progress.status-attempted .progress-text {
  color: var(--scorm-in-progress-color, #ffc107);
}

.course-progress.status-not-started .progress-text {
  color: var(--scorm-not-started-color, #6c757d);
}

/* Course Dates */
.course-dates {
  margin-bottom: 20px;
}

.course-dates div {
  margin-bottom: 3px;
}

.course-dates small {
  color: var(--scorm-muted-text-color, #64748b);
  font-size: 11px;
}

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

.scorm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

.scorm-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.scorm-btn-primary {
  background: var(--scorm-primary-color, #0073aa);
  color: var(--scorm-button-text-color, #ffffff);
}

.scorm-btn-primary:hover {
  background: var(--scorm-secondary-color, #005177);
  color: var(--scorm-button-text-color, #ffffff);
  text-decoration: none;
}

.scorm-btn-secondary {
  background: var(--scorm-secondary-color, #005177);
  color: var(--scorm-button-text-color, #ffffff);
}

.scorm-btn-secondary:hover {
  background: var(--scorm-primary-color, #0073aa);
  color: var(--scorm-button-text-color, #ffffff);
  text-decoration: none;
}

.scorm-btn-certification {
  background: var(--scorm-certification-color, #17a2b8);
  color: var(--scorm-button-text-color, #ffffff);
}

.scorm-btn-certification:hover {
  background: var(--scorm-completed-color, #28a745);
  color: var(--scorm-button-text-color, #ffffff);
  text-decoration: none;
}

.scorm-btn-logout {
  background: var(--scorm-failed-color, #dc3545);
  color: var(--scorm-button-text-color, #ffffff);
  padding: 12px 24px;
  font-size: 14px;
  min-width: auto;
}

.scorm-btn-logout:hover {
  background: var(--scorm-failed-color, #dc3545);
  color: var(--scorm-button-text-color, #ffffff);
  text-decoration: none;
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--scorm-failed-color, #dc3545) 30%, transparent);
}

/* Login Notice */
.scorm-login-notice,
.scorm-no-courses {
  text-align: center;
  padding: 60px 20px;
  background: var(--scorm-surface-muted-color, #f8fafc);
  border: 1px solid var(--scorm-border-color, #e2e8f0);
  border-radius: 12px;
  margin: 40px 0;
}

.scorm-login-notice h3,
.scorm-no-courses h3 {
  margin: 0 0 15px;
  color: var(--scorm-heading-color, #1e293b);
  font-size: 1.5em;
}

.scorm-login-notice p,
.scorm-no-courses p {
  color: var(--scorm-muted-text-color, #64748b);
  margin: 0 0 25px;
  font-size: 16px;
}

/* Pagination */
.scorm-my-courses-pagination {
  text-align: center;
  margin-top: 40px;
}

.load-more-courses {
  padding: 15px 30px;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .scorm-my-profile[data-columns="3"] .scorm-my-courses-grid,
  .scorm-my-courses[data-columns="3"] .scorm-my-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scorm-certificates-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .scorm-my-profile,
  .scorm-my-courses {
    padding: 15px;
  }

  .scorm-profile-header {
    padding: 20px;
  }

  .profile-header-top {
    flex-direction: column;
    align-items: center;
  }

  .profile-info {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .profile-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .scorm-btn-logout {
    width: 100%;
    max-width: 300px;
  }

  .profile-avatar img {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 1.8em;
  }

  .scorm-my-courses-header h2 {
    font-size: 2em;
  }

  .scorm-my-profile-stats,
  .scorm-user-stats {
    gap: 15px;
    justify-content: center;
  }

  .stat-item {
    min-width: 100px;
    padding: 15px;
  }

  .stat-number {
    font-size: 2em;
  }

  .scorm-my-profile[data-columns="2"] .scorm-my-courses-grid,
  .scorm-my-profile[data-columns="3"] .scorm-my-courses-grid,
  .scorm-my-courses[data-columns="2"] .scorm-my-courses-grid,
  .scorm-my-courses[data-columns="3"] .scorm-my-courses-grid {
    grid-template-columns: 1fr;
  }

  .scorm-my-courses-grid {
    gap: 20px;
  }

  .scorm-certificates-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .certificate-icon {
    width: 70px;
    height: 70px;
  }

  .certificate-icon .dashicons {
    font-size: 35px;
    width: 35px;
    height: 35px;
  }

  .certificate-title {
    font-size: 1.2em;
  }

  .course-content {
    padding: 15px;
  }

  .course-actions {
    flex-direction: column;
  }

  .scorm-btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .scorm-my-profile-stats,
  .scorm-user-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 100%;
    max-width: 200px;
  }

  .profile-avatar img {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 1.5em;
  }

  .profile-email {
    font-size: 14px;
  }

  .profile-member-since {
    font-size: 12px;
  }

  .section-title {
    font-size: 1.4em;
    margin: 30px 0 15px;
  }

  .scorm-certificate-item {
    padding: 20px;
    min-height: 180px;
  }

  .certificate-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .certificate-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
  }

  .certificate-title {
    font-size: 1.1em;
    margin-bottom: 12px;
  }

  .certificate-meta {
    margin-bottom: 15px;
  }

  .certificate-actions {
    flex-direction: column;
    gap: 8px;
  }

  .scorm-btn-small {
    max-width: none;
    padding: 12px 16px;
  }

  .course-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Loading states */
.scorm-my-profile.loading .scorm-my-courses-grid,
.scorm-my-profile.loading .scorm-certificates-grid,
.scorm-my-courses.loading .scorm-my-courses-grid {
  opacity: 0.6;
  pointer-events: none;
}

.scorm-my-profile.loading::after,
.scorm-my-courses.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid var(--scorm-border-color, #e2e8f0);
  border-top: 4px solid var(--scorm-primary-color, #0073aa);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

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

/* ========================================
   Profile Editor
   ======================================== */

.scorm-profile-editor {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--scorm-border-color, #e2e8f0);
}

.scorm-profile-editor__toggle .scorm-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
}

.scorm-profile-editor__toggle .scorm-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

.scorm-profile-editor__toggle .scorm-btn-active {
  background: var(--scorm-primary-color, #0073aa);
  color: var(--scorm-button-text-color, #ffffff);
  border-color: var(--scorm-primary-color, #0073aa);
}

.scorm-profile-editor__fields {
  margin-top: 24px;
}

.scorm-profile-editor__section {
  background: var(--scorm-surface-color, #ffffff);
  border: 1px solid var(--scorm-border-color, #e2e8f0);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

.scorm-profile-editor__section-title {
  margin: 0 0 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--scorm-heading-color, #1e293b);
}

.scorm-profile-editor__section .scorm-form-row {
  display: flex;
  gap: 15px;
}

.scorm-profile-editor__section .scorm-form-group {
  margin-bottom: 16px;
}

.scorm-profile-editor__section .scorm-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--scorm-heading-color, #1e293b);
  font-size: 14px;
}

.scorm-profile-editor__section .scorm-form-group input[type="text"],
.scorm-profile-editor__section .scorm-form-group input[type="email"],
.scorm-profile-editor__section .scorm-form-group input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--scorm-border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  background: var(--scorm-surface-color, #ffffff);
  color: var(--scorm-text-color, #333333);
}

.scorm-profile-editor__section .scorm-form-group input:focus {
  outline: none;
  border-color: var(--scorm-primary-color, #0073aa);
  box-shadow: 0 0 0 3px
    color-mix(
      in srgb,
      var(--scorm-primary-color, #0073aa) 12%,
      transparent
    );
}

.scorm-profile-editor__section .scorm-form-group input.error {
  border-color: var(--scorm-failed-color, #dc3545);
}

.scorm-profile-editor__section .scorm-form-group input.success {
  border-color: var(--scorm-completed-color, #28a745);
}

.scorm-profile-editor__section .scorm-form-group small {
  display: block;
  margin-top: 4px;
  color: var(--scorm-muted-text-color, #64748b);
  font-size: 12px;
}

.scorm-profile-editor__actions {
  margin-top: 8px;
}

.scorm-profile-editor__actions .scorm-btn {
  width: auto;
  padding: 10px 24px;
  font-size: 14px;
}

.scorm-profile-editor__actions .btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.scorm-profile-editor__actions .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid
    color-mix(
      in srgb,
      var(--scorm-button-text-color, #ffffff) 30%,
      transparent
    );
  border-top: 2px solid var(--scorm-button-text-color, #ffffff);
  border-radius: 50%;
  animation: profile-spin 1s linear infinite;
}

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

/* Password strength (inline in profile editor) */
.scorm-profile-editor .password-strength {
  margin-top: 5px;
  height: 4px;
  background: var(--scorm-progress-track-color, #e2e8f0);
  border-radius: 2px;
  overflow: hidden;
}

.scorm-profile-editor .password-strength-bar {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.scorm-profile-editor .password-strength.weak .password-strength-bar {
  width: 33%;
  background: var(--scorm-failed-color, #dc3545);
}

.scorm-profile-editor .password-strength.medium .password-strength-bar {
  width: 66%;
  background: var(--scorm-in-progress-color, #ffc107);
}

.scorm-profile-editor .password-strength.strong .password-strength-bar {
  width: 100%;
  background: var(--scorm-completed-color, #28a745);
}

/* Message styles */
.scorm-profile-editor__message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.scorm-profile-editor__message.success {
  background: var(--scorm-success-surface, #e7f6ec);
  border: 1px solid var(--scorm-success-border, #b4dfc0);
  color: var(--scorm-completed-color, #28a745);
}

.scorm-profile-editor__message.error {
  background: var(--scorm-error-surface, #fdecec);
  border: 1px solid var(--scorm-error-border, #f3b9be);
  color: var(--scorm-failed-color, #dc3545);
}

/* Responsive */
@media (max-width: 600px) {
  .scorm-profile-editor__section .scorm-form-row {
    flex-direction: column;
    gap: 0;
  }

  .scorm-profile-editor__section {
    padding: 16px;
  }
}
