/* =========================================================
   pages/batch-lessons.css
   ---------------------------------------------------------
   Batch add lessons page styles.
   ========================================================= */

/* =========================================================
   18) BATCH ADD LESSONS
   --------------------------------------------------------- */

.nn-batch-add {
  display: grid;
  gap: 16px;
}

.nn-batch-add__title {
  margin: 0 0 6px;
}

.nn-batch-add__intro {
  margin: 0;
  color: var(--muted);
}

.nn-batch-add__intro code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f3f4f7;
}

.nn-batch-add__controls {
  display: grid;
  gap: 14px;
}

.nn-batch-add__date {
  display: grid;
  gap: 6px;
  max-width: 220px;
}

.nn-batch-add__date span {
  font-weight: 600;
}

.nn-batch-add__controls textarea,
.nn-batch-add__controls input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.nn-batch-add__controls textarea {
  min-height: 260px;
  resize: vertical;
  font-family: inherit;
}

.nn-batch-add__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nn-batch-add__resultsHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nn-batch-add__resultsHead h2 {
  margin: 0;
}

.nn-batch-add__message {
  margin-bottom: 12px;
  color: var(--muted);
}

.nn-batch-add__tableWrap {
  overflow-x: auto;
}

.nn-batch-table {
  width: 100%;
  border-collapse: collapse;
}

.nn-batch-table th,
.nn-batch-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.nn-batch-table th {
  font-weight: 700;
  color: var(--muted);
}

.nn-batch-table select {
  min-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.nn-batch-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.nn-batch-status--valid,
.nn-batch-status--resolved {
  background: #ecfdf3;
  color: #027a48;
}

.nn-batch-status--ambiguous {
  background: #fffaeb;
  color: #b54708;
}

.nn-batch-status--invalid {
  background: #fef3f2;
  color: #b42318;
}

.nn-batch-invalid {
  color: #b42318;
}

.nn-batch-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #f1b5ae;
  border-radius: 10px;
  background: #fff5f4;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nn-batch-remove:hover {
  background: #feeceb;
  border-color: #eaa39b;
}

@media (max-width: 767px) {
  .nn-batch-add__actions,
  .nn-batch-add__resultsHead {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nn-batch-add__actions .btn,
  .nn-batch-add__resultsHead .btn {
    width: 100%;
    justify-content: center;
  }
}

