/* Nút truy cập nhanh Notepad nổi góc dưới hoặc trên thanh công cụ */
.dhp-notepad-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent, #0d9488);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.32);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dhp-notepad-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.38);
}

/* Giao diện không gian Notepad Online */
.dhp-notepad-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg-page, #f8fafc);
  display: flex;
  flex-direction: column;
}

.dhp-notepad-overlay.hidden {
  display: none;
}

.dhp-np-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.dhp-np-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dhp-np-slug-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-page, #f8fafc);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 10px;
  padding: 4px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
}

.dhp-np-slug-prefix {
  color: var(--text-secondary, #64748b);
  user-select: none;
}

.dhp-np-slug-input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark, #0f766e);
  width: 130px;
  outline: none;
}

.dhp-np-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dhp-np-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-page, #f1f5f9);
}

.dhp-np-status.saving {
  color: #b45309;
  background: #fef3c7;
}

.dhp-np-status.saved {
  color: #0f766e;
  background: #ccfbf1;
}

.dhp-np-editor-wrap {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.dhp-np-title-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: transparent;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  outline: none;
}

.dhp-np-textarea {
  flex: 1;
  width: 100%;
  resize: none;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  background: #ffffff;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary, #1e293b);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  outline: none;
}

.dhp-np-textarea:focus {
  border-color: var(--accent, #0d9488);
}

.dhp-np-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  padding: 0 4px;
}

@media (max-width: 640px) {
  .dhp-np-topbar {
    padding: 10px 12px;
  }
  .dhp-np-slug-prefix {
    display: none;
  }
  .dhp-np-slug-input {
    width: 105px;
  }
  .dhp-np-editor-wrap {
    padding: 12px;
  }
}
