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

.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;
}