/* css/dashboard.css — neuronbim — the logged-in /dashboard page (B12) */

.dash-gate {
  padding: 48px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.dash-section { margin-bottom: 44px; }

.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.dash-section-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.dash-open-tool {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.dash-open-tool:hover { color: var(--accent-dark); }

.dash-empty {
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 6px 0 2px;
}

.dash-upload-btn { cursor: pointer; }
.dash-upload-status {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.dash-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.dash-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  line-height: 1.3;
}
.dash-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.dash-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 5px;
}

.dash-card-actions { display: flex; gap: 8px; }
.btn-dash-open, .btn-dash-del {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-decoration: none;
}
.btn-dash-open { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-dash-open:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-dash-del { background: var(--white); color: var(--text-muted); }
.btn-dash-del:hover { color: #c0392b; border-color: #c0392b; }

@media (max-width: 600px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* ── Insights editor (admin) — Quill + cover preview ── */
#in-quill .ql-editor,
#in-quill-id .ql-editor { min-height: 240px; font-size: 15px; line-height: 1.5; }
#in-quill .ql-editor p,
#in-quill-id .ql-editor p { margin: 0; }
#in-quill.ql-container,
#in-quill-id.ql-container { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
#in-cover-preview img { max-width: 280px; border-radius: 6px; border: 1px solid var(--border, #E5E7EB); display: block; }
.in-status-chip { display:inline-block; padding:2px 8px; border-radius:99px; font-size:11.5px; font-weight:600; }
.in-status-chip.published { background:#D1FAE5; color:#065F46; border:1px solid #10B981; }
.in-status-chip.draft     { background:#FEF3C7; color:#92400E; border:1px solid #F59E0B; }
#in-quill .ql-editor img,
#in-quill-id .ql-editor img { cursor: pointer; max-width: 100%; }
#in-quill .ql-editor img.in-img-active,
#in-quill-id .ql-editor img.in-img-active { outline: 2px solid var(--accent, #FF6F00); outline-offset: 2px; }

/* ── Admin view switcher (Access & Billing ↔ Insights) ── */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 18px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 99px;
  background: #fff;
  color: var(--text-muted, #6B7280);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-tab:hover { border-color: var(--accent, #FF6F00); color: var(--accent-dark, #C85A00); }
.admin-tab.is-active {
  background: var(--accent, #FF6F00);
  border-color: var(--accent, #FF6F00);
  color: #fff;
}

/* ── Insights editor: language sub-tabs (English | Indonesia) ── */
.in-lang-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.in-lang-tab {
  padding: 5px 14px; border: 1px solid var(--border, #E5E7EB); border-radius: 5px;
  background: #fff; color: var(--text-muted, #6B7280);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.in-lang-tab:hover { border-color: var(--accent, #FF6F00); color: var(--accent-dark, #C85A00); }
.in-lang-tab.is-active { background: var(--accent, #FF6F00); border-color: var(--accent, #FF6F00); color: #fff; }
.in-lang-note { font-size: 11.5px; color: var(--text-muted, #6B7280); margin-left: 4px; }
/* ENG / IDN chips in the posts table */
.in-lang-chip {
  display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 4px;
  font-family: var(--font-mono, monospace); font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0;
}
