.note-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.badge-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.badge-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.badge-primary { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.badge-secondary { background: linear-gradient(135deg, #6b7280, #4b5563); color: white; }
.badge-light { background: linear-gradient(135deg, #f5f5f5, #e5e5e5); color: var(--text-primary); }

.note-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--border-color);
  margin-bottom: 2rem;
  min-height: 200px;
}

.content-text,
.rich-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-wrap: break-word;
  text-indent: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  margin: 1.5rem 0 1rem 0;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.rich-content h1 { font-size: 2rem; }
.rich-content h2 { font-size: 1.75rem; }
.rich-content h3 { font-size: 1.5rem; }
.rich-content h4 { font-size: 1.25rem; }
.rich-content h5 { font-size: 1.1rem; }
.rich-content h6 { font-size: 1rem; }

.rich-content p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
}

.rich-content ul,
.rich-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.rich-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.rich-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
  border-radius: 0.25rem;
  font-style: italic;
}

.rich-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.rich-content a:hover {
  border-bottom-color: var(--primary-color);
}

.rich-content strong {
  font-weight: 600;
  color: var(--text-primary);
}

.rich-content em {
  font-style: italic;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rich-content th,
.rich-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.rich-content th {
  background: rgba(102, 126, 234, 0.1);
  font-weight: 600;
  color: var(--text-primary);
}

.rich-content tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.code-container {
  background: #1e1e1e;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #333;
}

.code-header {
  background: #2d2d2d;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.code-language {
  color: #e5e5e5;
  font-weight: 500;
  font-size: 0.9rem;
}

.copy-btn {
  background: #4a5568;
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.copy-btn:hover {
  background: #2d3748;
  transform: translateY(-1px);
}

.copy-btn.is-copied {
  background: #10b981;
}

.code-block {
  margin: 0;
  padding: 1rem;
  background: #1e1e1e;
  overflow-x: auto;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.code-block code {
  background: none;
  padding: 0;
  color: #e5e5e5;
}

.note-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.share-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-actions,
.guest-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .note-meta {
    flex-direction: column;
  }

  .note-footer {
    flex-direction: column;
    text-align: center;
  }

  .owner-actions,
  .guest-actions {
    justify-content: center;
  }

  .owner-actions .btn,
  .guest-actions .btn {
    width: 100%;
  }

  .code-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
