/* dashboard-classes.css
   Styles for creating and managing classes inside the "My classes" card.
   Own file so the feature can change without touching dashboard.css.
   Colour variables come from dashboard.css. */

/* Create form ------------------------------------------------------------ */
.cls-create {
  border: 1px solid var(--line, #1F2733);
  border-radius: 12px;
  background: var(--bg-2, #0B0F16);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.cls-create h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink, #F4F6FA);
}
.cls-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 10px;
}
.cls-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cls-field-name { flex: 1 1 240px; }
.cls-field-code { flex: 0 1 150px; }
.cls-field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint, #909AAB);
}
.cls-input {
  width: 100%;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #F4F6FA);
  background: var(--card, #131926);
  border: 1px solid var(--line-2, #2B3543);
  border-radius: 9px;
}
.cls-input:focus {
  outline: 2px solid var(--red-2, #FF6A45);
  outline-offset: 1px;
}
/* Join codes are always upper case, so show them that way while typing. */
.cls-input-code {
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.cls-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted, #A7B0BE);
  padding-bottom: 9px;
  cursor: pointer;
}
.cls-hint {
  font-size: 12.5px;
  color: var(--faint, #909AAB);
  line-height: 1.45;
  margin-top: 8px;
}

/* Row actions ------------------------------------------------------------ */
.cls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.btn-xs {
  padding: 5px 10px;
  font-size: 12.5px;
  border-radius: 8px;
  line-height: 1.2;
}
.btn-danger {
  background: var(--red, #E8431F);
  color: #fff;
  border-color: transparent;
}
.cls-del:hover {
  color: var(--red-2, #FF6A45);
  border-color: var(--red-2, #FF6A45);
}
.cls-warn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red-2, #FF6A45);
  margin-right: 2px;
}
.cls-muted {
  color: var(--faint, #909AAB);
}

/* Status line ------------------------------------------------------------ */
.cls-status {
  font-size: 12.5px;
  color: var(--faint, #909AAB);
}
.cls-status-err {
  color: var(--red-2, #FF6A45);
}
