.security-demo {
  border: 2px solid #e74c3c;
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
}

.demo-header {
  background: #e74c3c;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-header h4 {
  margin: 0;
  font-size: 16px;
}

.demo-type {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.demo-content {
  padding: 15px;
}

.demo-explanation {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.demo-playground {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
}

.demo-warning {
  background: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  font-size: 12px;
  border-top: 1px solid #e74c3c;
}

.demo-input {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
}

.demo-button {
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 5px 5px 5px 0;
}

.demo-button:hover {
  background: #0056b3;
}

.demo-output {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  min-height: 50px;
  font-family: monospace;
  font-size: 13px;
}

.vulnerable-output {
  border-color: #dc3545;
  background: #fff5f5;
}

.safe-output {
  border-color: #28a745;
  background: #f8fff8;
}

.demo-form-container {
  background: #f8f9fa;
  padding: 10px;
  border: 1px solid #dee2e6;
  margin: 10px 0;
}

.demo-input-small {
  width: 200px;
}

.demo-input-tiny {
  width: 100px;
}

.demo-error-text {
  color: #dc3545;
}

.demo-success-text {
  color: #28a745;
}

.demo-spacing {
  margin-top: 15px;
}

.demo-code-block {
  font-family: monospace;
  white-space: pre-line;
}

.demo-hidden {
  display: none;
}