/* Training Pages Styles */

/* General layout */
.training-container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Card styling */
.card {
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem;
}

.card-body {
  padding: 1.5rem;
}

/* Code block styling */
pre {
  position: relative;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

pre code {
  display: block;
  padding: 0.5em;
  color: #333;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* API endpoint styling */
.api-info {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.api-info .api-method,
.api-info .api-endpoint {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .api-info .api-method,
  .api-info .api-endpoint {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.api-info pre {
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.api-method pre code {
  font-weight: bold;
  color: #e83e8c;
}

.api-endpoint pre code {
  color: #0056b3;
}

/* Image placeholders */
.image-placeholder {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #6c757d;
}

.video-placeholder {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #6c757d;
}

/* Figure captions */
.figure-caption {
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Tables */
.table-bordered {
  border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  vertical-align: top;
}

.table-bordered thead th {
  background-color: #f8f9fa;
  border-bottom-width: 2px;
}

/* Alerts */
.alert {
  border-radius: 6px;
  margin-bottom: 2rem;
}

/* Copy button for code blocks */
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #6c757d;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.copy-btn:hover {
  background-color: #e9ecef;
  color: #212529;
}

.copy-btn.copied {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}
