.result-display {
  max-height: 100rem;
  overflow-y: auto;
}

.validation-container {
  max-height: 50rem;
  overflow-y: auto;
  padding: 8px;
}

.validation-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px;
  border-radius: 4px;
  background: #f8f9fa;
  font-size: 1.3rem;
  text-transform: capitalize;
  word-break: break-word;
  overflow-wrap: break-word;
}

.validation-item i {
  font-size: 1.5rem;
  margin-right: 8px;
}

.validation-item.success i {
  color: #27ae60;
}

.validation-item.warning i {
  color: #f39c12;
}

.validation-item.error i {
  color: #e74c3c;
}

.error-details {
  display: flex;
  flex-direction: column;
}

.error-header {
  font-weight: bold;
  margin-bottom: 8px;
}

.error-context {
  overflow-x: auto;
  background: #f4f4f4;
  padding: 8px;
  border-radius: 4px;
}

pre.context-pre {
  margin: 0;
  line-height: 0.9;
  white-space: pre-wrap;
  word-break: break-word;
}

.context-line {
  display: block;
  color: #2c3e50;
}

.error-line {
  display: block;
  font-weight: bold;
  color: #e74c3c;
}

@media (max-width: 768px) {
  .validation-item {
    font-size: 1.1rem;
    padding: 6px;
  }

  pre.context-pre {
    font-size: 1.2rem;
  }

  .error-header {
    font-size: 1rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.stat-card {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.stat-label {
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 5px;
}

.pattern-detail .pattern-list {
  list-style: none;
}
