/* TSASCE7 Styles */

body {
  background: #f5f6fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Tool cards on landing page */
.tool-card {
  border: 2px solid transparent;
  border-radius: 12px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: #212529;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
.tool-icon i {
  transition: transform 0.2s;
}
.tool-card:hover .tool-icon i {
  transform: scale(1.1);
}

/* Chapter accordion */
.accordion-button {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}
.accordion-button:not(.collapsed) {
  background: #212529;
  color: #fff;
}
.accordion-button:not(.collapsed) .badge {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
}

/* Function list items */
.func-item {
  border-left: 3px solid transparent;
  transition: border-color 0.1s;
}
.func-item:hover {
  border-left-color: #212529;
  background: #f8f9fa;
}
.func-name {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.78rem;
  color: #0d6efd;
}
.func-list {
  max-height: 300px;
  overflow-y: auto;
}

/* Result parameter tables */
.param-table {
  margin: 0;
}
.param-table th {
  background: #f8f9fa;
  font-weight: 600;
  width: 40%;
  white-space: nowrap;
}
.param-table td, .param-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.param-value {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-weight: 600;
  color: #212529;
}

/* SDC badges */
.sdc-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
}
.sdc-A { background: #28a745; }
.sdc-B { background: #5cb85c; }
.sdc-C { background: #ffc107; color: #212529; }
.sdc-D { background: #fd7e14; }
.sdc-E { background: #dc3545; }
.sdc-F { background: #721c24; }

/* Responsive */
@media (max-width: 768px) {
  .func-list { max-height: 200px; }
}
