/* Additional custom styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {
  .navbar,
  .sidebar,
  .code-copy-button {
    display: none !important;
  }
  
  .page-columns {
    display: block !important;
  }
}

/* Code highlighting enhancements */
pre.sourceCode {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

code {
  font-size: 0.9em;
}

/* Table styling */
table {
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

th {
  background-color: #f5f5f5;
}

/* Image styling */
figure {
  margin: 1.5rem 0;
}

figcaption {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Definition list for glossary */
dt {
  font-weight: bold;
  color: #8B0000;
  margin-top: 1rem;
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Exercise box */
.exercise-box {
  background-color: #e8f4f8;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.exercise-box h4 {
  color: #0c5460;
  margin-top: 0;
}

/* Hint box */
.hint-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

/* Solution box (initially hidden) */
.solution-box {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
}

/* Resource link cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.resource-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: #8B0000;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.1);
}

.resource-card h4 {
  color: #8B0000;
  margin-top: 0;
}

/* Progress indicator for labs */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
}

.progress-step:first-child::before {
  display: none;
}

.step-number {
  width: 30px;
  height: 30px;
  background: #e0e0e0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  position: relative;
  z-index: 1;
}

.progress-step.active .step-number {
  background: #8B0000;
  color: white;
}

.progress-step.completed .step-number {
  background: #27ae60;
  color: white;
}

/* Keyboard shortcuts */
kbd {
  background-color: #f8f9fa;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  color: #333;
  display: inline-block;
  font-size: 0.85em;
  font-family: monospace;
  padding: 2px 6px;
}

/* Remove list bullets for cleaner course cards */
.course-card ul,
.feature-box ul {
  list-style: none;
  padding-left: 0;
}

.course-card ul li,
.feature-box ul li {
  padding-left: 0;
  margin-bottom: 0.5rem;
}

/* Custom bullet replacement for course cards */
.course-card ul li::before,
.feature-box ul li::before {
  content: none;
}
