/* Base styles */
body {
  font-family: Arial, sans-serif;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.6;
}

h1 {
  border-bottom: 3px solid #333;
  padding-bottom: 10px;
}

h2 {
  margin-top: 30px;
  color: #444;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Test results section */
#test-results {
  margin-top: 20px;
}

/* Test case styles */
.test-case {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.test-case.pass {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.test-case.fail {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.test-case.pending {
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

/* Test list styles (for index pages) */
.test-list {
  list-style: none;
  padding: 0;
}

.test-item {
  margin: 15px 0;
  padding: 15px;
  border-left: 4px solid #007bff;
  background: #f8f9fa;
}

.test-item h3 {
  margin: 0 0 10px 0;
}

.test-item a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.test-item a:hover {
  text-decoration: underline;
}

.test-item p {
  margin: 5px 0;
  color: #666;
}

/* Instructions section */
.instructions {
  background: #fff3cd;
  padding: 20px;
  border-radius: 5px;
  margin: 20px 0;
}

/* Status badges */
.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: bold;
}

.status.basic {
  background: #d4edda;
  color: #155724;
}

.status.intermediate {
  background: #fff3cd;
  color: #856404;
}

.status.advanced {
  background: #f8d7da;
  color: #721c24;
}

.status.connected {
  background-color: #d4edda;
  color: #155724;
  padding: 5px 10px;
  margin: 5px 0;
}

.status.disconnected {
  background-color: #f8d7da;
  color: #721c24;
  padding: 5px 10px;
  margin: 5px 0;
}

/* Messages display */
#messages {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  min-height: 100px;
  max-height: 300px;
  background-color: #f8f9fa;
  overflow-y: auto;
  border-radius: 3px;
}

.message {
  padding: 5px;
  margin: 5px 0;
  background-color: white;
  border-left: 3px solid #4CAF50;
  padding-left: 10px;
}

/* Container for test content */
#container {
  margin: 20px 0;
  padding: 10px;
  border: 2px solid #007bff;
  min-height: 50px;
}

/* Test section (for Cable and other multi-section tests) */
.test-section {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.test-section h3 {
  margin-top: 0;
}

/* Pass/Fail indicators */
.pass {
  color: green;
  font-weight: bold;
}

.fail {
  color: red;
  font-weight: bold;
}

/* Form elements */
button {
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  border: none;
  border-radius: 3px;
  background-color: #4CAF50;
  color: white;
  font-size: 14px;
}

button:hover {
  background-color: #45a049;
}

input[type="text"],
input[type="limit"] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
}

input[type="text"] {
  width: 300px;
}

/* Pre-formatted text */
pre {
  background-color: #f5f5f5;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  overflow-x: auto;
}

code {
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
}

pre code {
  padding: 0px;
  background-color: transparent;
}
