/* =======================================================
   📓 PLAYNAVAGA — NOTEBOOK STYLES
   ======================================================= */

.shell-main--notebook {
  max-width: 920px;
  padding-bottom: 48px;
}

.nb-quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.nb-quick-card--smart {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, #f5f3ff, #fff);
}

.nb-quick-card--smart .nb-quick-count { color: #7c3aed; }

.nb-insights {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.95));
}

.nb-insights-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: #312e81;
}

.nb-insights-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.nb-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 12px;
  color: #334155;
}

.nb-insights-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nb-insights-btn {
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  background: #4f46e5;
  color: #fff;
}

.nb-insights-btn--ghost {
  background: #fff;
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.nb-weak-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.nb-weak-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.nb-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.nb-quick-card--review {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, #eef2ff, #fff);
}

.nb-quick-card--errors {
  border-color: rgba(239, 68, 68, 0.32);
  background: linear-gradient(180deg, #fef2f2, #fff);
}

.nb-quick-card--slow {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(180deg, #f0fdf4, #fff);
}

.nb-quick-card.is-empty {
  opacity: 0.55;
}

.nb-quick-icon {
  font-size: 1.45rem;
}

.nb-quick-label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

.nb-quick-count {
  font-size: 18px;
  font-weight: 900;
  color: #4f46e5;
}

.nb-quick-card--errors .nb-quick-count { color: #dc2626; }
.nb-quick-card--slow .nb-quick-count { color: #15803d; }

.notebook-page-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.notebook-page-lead {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

.nb-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nb-chip {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
}

.nb-chip.is-on {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
}

.nb-chip--ghost {
  background: transparent;
  border-style: dashed;
}

@media (max-width: 720px) {
  .nb-quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nb-insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nb-quick-strip {
    grid-template-columns: 1fr;
  }
  .nb-quick-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 14px;
  }
  .nb-quick-icon {
    width: 2rem;
    text-align: center;
  }
  .nb-quick-count {
    margin-left: auto;
  }
}

.notebook-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 20px 40px;
}

/* =======================================================
   HEADER
   ======================================================= */

.notebook-header {
  margin-bottom: 20px;
}

.notebook-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.notebook-filters-row {
  max-width: 100%;
}

.notebook-filters input[type="text"] {
  flex: 1 1 200px;
  min-width: 160px;
}

.notebook-filters input,
.notebook-filters select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.nb-filter-label {
  font-size: 13px;
  color: #475569;
}

.nb-fav {
  border: none;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.nb-fav.is-on {
  background: rgba(245, 158, 11, 0.25);
}

.nb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

/* =======================================================
   NOTE CARD
   ======================================================= */

.notebook-card {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.nb-question {
  font-weight: 600;
  margin-bottom: 6px;
}

.nb-meta {
  font-size: 13px;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.nb-empty {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
  font-weight: 600;
}

.nb-note {
  background: #f5f7fb;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.nb-explanation {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #6366f1;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.nb-explanation-title {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.nb-explanation-text {
  color: #1e293b;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* =======================================================
   ACTIONS
   ======================================================= */

.nb-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.nb-review {
  background: #5b6cff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.nb-delete {
  background: #ffeaea;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
}

.nb-edit{

background:#eef1ff;
color:#4452ff;
border:none;
padding:6px 12px;
border-radius:6px;
cursor:pointer;

}

.nb-toggle{
  margin-right:4px;
  font-size:14px;
}

.nb-toggle-hint{
  margin-right:6px;
  font-size:15px;
  opacity:.72;
  user-select:none;
}

/* =======================================================
   SUBJECT GROUPING
   ======================================================= */

.nb-subject {
  margin-bottom: 24px;
}

.nb-subject--favorites {
  border-left: 3px solid rgba(245, 158, 11, 0.85);
  padding-left: 12px;
  margin-left: -2px;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.06),
    transparent 40%
  );
}

.nb-subject-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #444;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
}

.nb-subject-questions.collapsed {
  display: none;
}