.lms-user-reports {
  max-width: 100%;
}

.lms-reports-filters {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  margin: 20px 0;
}

.filter-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #1d2327;
}

.filter-group select,
.filter-group input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
}

.lms-reports-actions {
  background: #f6f7f7;
  padding: 15px 20px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  margin: 20px 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.lms-reports-table-container {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  overflow-x: auto;
}

.lms-reports-table {
  margin: 0;
}

.lms-reports-table th {
  background: #f6f7f7;
  font-weight: 600;
  padding: 12px 10px;
}

.lms-reports-table td {
  padding: 12px 10px;
  vertical-align: top;
}

.user-id-col {
  width: 80px;
}
.user-name-col {
  width: 200px;
}
.user-email-col {
  width: 250px;
}
.enrolled-courses-col {
  width: 250px;
}
.progress-col {
  width: 200px;
}
.enrolled-date-col {
  width: 120px;
}
.actions-col {
  width: 140px;
}

.user-meta {
  margin-top: 4px;
  color: #646970;
}

.course-item {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f1;
}

.course-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.course-title {
  color: #2271b1;
  text-decoration: none;
  font-weight: 500;
}

.course-title:hover {
  color: #135e96;
}

.progress-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f1;
}

.progress-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}

.progress-percentage {
  font-weight: 600;
  color: #1d2327;
}

.progress-details {
  color: #646970;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f1;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00a32a 0%, #4caf50 100%);
  transition: width 0.3s ease;
}

.enrollment-date {
  font-size: 13px;
  color: #646970;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f1;
}

.enrollment-date:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #646970;
}

.no-results p {
  font-size: 16px;
  margin-bottom: 10px;
}

.lms-reports-summary {
  background: #f6f7f7;
  padding: 20px;
  border-top: 1px solid #c3c4c7;
}

.lms-reports-summary h3 {
  margin: 0 0 20px 0;
  color: #1d2327;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #c3c4c7;
}

.stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: #2271b1;
  margin-bottom: 8px;
}

.stat-label {
  color: #646970;
  font-size: 14px;
  font-weight: 500;
}

.export-status {
  color: #646970;
  font-style: italic;
}

.export-status.success,
.demo-status.success {
  color: #00a32a;
}

.export-status.error,
.demo-status.error {
  color: #d63638;
}

.demo-status {
  color: #646970;
  font-style: italic;
}

.delete-all-status {
  color: #646970;
  font-style: italic;
}

.delete-all-status.success {
  color: #00a32a;
}

.delete-all-status.error {
  color: #d63638;
}

/* User Actions */
.user-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-actions .button {
  font-size: 11px;
  padding: 2px 6px;
  height: auto;
  line-height: 1.4;
}

/* Modal Styles */
.lms-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.lms-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.lms-modal-header {
  padding: 20px;
  border-bottom: 1px solid #c3c4c7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7f7;
}

.lms-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1d2327;
}

.lms-modal-close {
  color: #646970;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.lms-modal-close:hover {
  color: #d63638;
}

.lms-modal-body {
  padding: 20px;
}

.lms-modal-body ul {
  color: #646970;
  margin: 10px 0;
}

.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #1d2327;
}

.form-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
}

.form-field input:focus {
  border-color: #2271b1;
  outline: none;
  box-shadow: 0 0 0 1px #2271b1;
}

.form-field input[readonly] {
  background-color: #f6f7f7;
  color: #646970;
}

.form-field small {
  color: #646970;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.confirmation-field {
  margin: 20px 0;
  padding: 15px;
  background: #fff2cd;
  border: 1px solid #dba617;
  border-radius: 4px;
}

.confirmation-field label {
  font-weight: 600;
  color: #1d2327;
  margin-bottom: 8px;
  display: block;
}

.confirmation-field input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dba617;
  border-radius: 4px;
}

.lms-modal-footer {
  padding: 20px;
  border-top: 1px solid #c3c4c7;
  background: #f6f7f7;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
