/* DTC Card Styles */
.dtc-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Manufacturer Warning */
.manufacturer-warning {
  background: #fffae5;
  border: 1px solid #ffc107;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.manufacturer-warning-text {
  color: #f57c00;
  font-weight: 600;
}

/* Manufacturer Badge */
.manufacturer-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  margin-left: 8px;
  display: inline-block;
}

/* Manufacturer Info */
.manufacturer-info {
  color: #666;
  font-size: 0.9em;
  margin-top: 4px;
}

/* OBD Code Info */
.obd-code-info {
  color: #666;
  font-size: 0.85em;
}

/* Requires Manufacturer Note */
.requires-manufacturer-note {
  background: #fff3cd;
  padding: 8px;
  border-radius: 4px;
  margin-top: 12px;
}

.requires-manufacturer-text {
  color: #856404;
}

.dtc-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.dtc-card__code-section {
  flex: 1;
}

.dtc-card__code {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
}

.dtc-card__description {
  font-size: 16px;
  color: #666;
  margin: 8px 0;
}

.dtc-card__severity {
  text-align: right;
}

.dtc-card__severity-text {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.dtc-card__severity-level {
  font-size: 12px;
  color: #888;
}

.dtc-card__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 4px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item__icon {
  font-size: 20px;
}

.info-item__label {
  font-weight: 600;
  color: #555;
  min-width: 100px;
}

.info-item__value {
  color: #333;
  flex: 1;
}

.dtc-card__section {
  margin: 20px 0;
  padding: 16px;
  background: #fafafa;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

.dtc-card__section h4 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.dtc-card__section ul {
  margin: 0;
  padding-left: 24px;
  list-style: none;
}

.dtc-card__section li {
  margin: 8px 0;
  position: relative;
  padding-left: 20px;
  color: #555;
  line-height: 1.5;
}

.dtc-card__section li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}

/* Severity Classes */
.severity--critical {
  border-left: 4px solid #dc3545;
}

.severity--critical .dtc-card__header {
  border-bottom-color: #ffebee;
}

.severity--medium {
  border-left: 4px solid #ffc107;
}

.severity--medium .dtc-card__header {
  border-bottom-color: #fff3cd;
}

.severity--low {
  border-left: 4px solid #28a745;
}

.severity--low .dtc-card__header {
  border-bottom-color: #d4edda;
}

.severity--unknown {
  border-left: 4px solid #6c757d;
}

/* Loading and Error States */
.loading-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.error-state {
  background: #ffebee;
  color: #c62828;
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
}

.success-state {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
  text-align: center;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-codes {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-codes .success-icon {
  color: #28a745;
  font-size: 48px;
  margin-bottom: 16px;
}