/* Baseball Lineup Manager - High School (NFHS Rules) */

.blm-highschool .blm-header {
  border-bottom: 3px solid #d98a00;
  padding-bottom: 0.75rem;
}

/* DH position sits below field, above bench */
.blm-dh-section {
  background: #f8ead1;
  border: 2px solid #d98a00;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
}

.blm-dh-row,
.blm-dh-for-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Read-only DH name shown in each inning (the batter is set once, up top) */
.blm-dh-name {
  flex: 1;
  font-size: 12px;
  font-weight: bold;
  color: #5c3b00;
}

.blm-dh-for-self {
  flex: 1;
  font-size: 11px;
  font-weight: bold;
  color: #1f8a53;
}

/* DH setup block in the lineup area */
.blm-dh-setup {
  margin-top: 1rem;
  padding: 10px 12px;
  background: #f8ead1;
  border: 2px solid #d98a00;
  border-radius: 8px;
}

.blm-dh-setup-head {
  font-size: 1rem;
  font-weight: bold;
  color: #5c3b00;
  margin-bottom: 8px;
}

.blm-dh-optional {
  font-size: 11px;
  font-weight: normal;
  color: #8a6d3b;
}

.blm-dh-setup-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blm-dh-num {
  background: #d98a00;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 34px;
  text-align: center;
}

.blm-pdh-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #5c3b00;
  cursor: pointer;
}

.blm-pdh-label input {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.blm-dh-for-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e0c56a;
}

.blm-dh-label {
  font-weight: bold;
  font-size: 12px;
  color: #5c3b00;
  min-width: 28px;
}

.blm-dh-section select {
  flex: 1;
  padding: 4px 6px;
  font-size: 11px;
  border: 1px solid #d98a00;
  border-radius: 4px;
  background: white;
  font-weight: bold;
}

.blm-dh-section select:focus {
  outline: none;
  border-color: #e0a800;
}

/* Sub list section in the setup area */
.blm-sub-list-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #e0e0e0;
}

.blm-sub-list-section h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #555;
}

.blm-player-entry.blm-sub-entry li {
  border-color: #d98a00;
  background: #fffdf5;
}

.blm-sub-badge {
  background: #d98a00;
  color: #5c3b00;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Reentry status indicators */
.blm-status-eligible {
  color: #1f8a53;
}

.blm-status-out {
  color: #b20031;
}

.blm-status-in {
  color: #004da2;
}

/* Eligibility log within each inning */
.blm-eligibility-section {
  background: #f0f4ff;
  border: 1px solid #b8d0ff;
  border-radius: 6px;
  padding: 8px;
  margin-top: 8px;
  font-size: 11px;
}

.blm-eligibility-header {
  font-weight: bold;
  color: #004da2;
  margin-bottom: 4px;
  font-size: 12px;
}

.blm-eligibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blm-eligibility-list li {
  padding: 2px 0;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.blm-eligibility-list li .blm-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.blm-status-dot.active   { background: #1f8a53; }
.blm-status-dot.reentry  { background: #d98a00; }
.blm-status-dot.exhausted { background: #b20031; }

/* Warning / alert banner */
.blm-alert {
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
}

.blm-alert-warning {
  background: #f8ead1;
  border: 1px solid #d98a00;
  color: #5c3b00;
}

.blm-alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Rules reference panel */
.blm-rules-panel {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 1rem;
  font-size: 12px;
  line-height: 1.5;
}

.blm-rules-panel h4 {
  font-size: 13px;
  margin: 0 0 6px 0;
  color: #333;
}

.blm-rules-panel p {
  margin: 0 0 4px 0;
  color: #555;
}

.blm-rules-panel .blm-rule-item {
  padding-left: 12px;
  border-left: 3px solid #004da2;
  margin-bottom: 6px;
}
