/* Edit Knowledge Base Page */ .edit-kb-page { background-color: #f8fafc; min-height: 100vh; padding: 2rem; } .edit-header { max-width: 800px; margin: 0 auto 1.5rem auto; } .back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #475569; text-decoration: none; font-weight: 500; transition: color 0.3s ease; } .back-link:hover { color: #667eea; } .edit-content { max-width: 800px; margin: 0 auto; } .edit-card { background: white; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); overflow: hidden; } .edit-card-header { padding: 2rem; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border-bottom: 1px solid #e2e8f0; text-align: center; } .edit-card-header h1 { font-size: 2rem; font-weight: 700; color: #1e293b; margin: 0 0 0.5rem 0; } .edit-card-header p { color: #64748b; margin: 0; font-size: 1rem; } .edit-form { padding: 2rem; } .form-group { margin-bottom: 2rem; } .form-group label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #334155; margin-bottom: 0.75rem; font-size: 0.95rem; } .form-group input[type="text"] { width: 100%; padding: 0.75rem 1rem; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; box-sizing: border-box; } .form-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } /* Content Section */ .content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; } .markdown-hint { margin-top: 0.5rem; color: #64748b; } /* Error Message */ .error-message { background: #fef2f2; color: #ef4444; padding: 0.75rem 1rem; border-radius: 6px; border: 1px solid #fecaca; font-size: 0.9rem; margin-bottom: 1rem; } /* Loading State */ .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50vh; color: #64748b; } .loading-spinner { width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Form Actions */ .form-actions { display: flex; gap: 1rem; justify-content: flex-end; padding-top: 2rem; border-top: 1px solid #e2e8f0; } .btn-cancel { display: inline-flex; align-items: center; padding: 0.75rem 1.5rem; background: #f1f5f9; color: #475569; text-decoration: none; border-radius: 8px; font-weight: 500; transition: all 0.3s ease; } .btn-cancel:hover { background: #e2e8f0; } .btn-submit { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); } .btn-submit:hover:not(:disabled) { transform: none; box-shadow: 0 3px 12px rgba(16, 185, 129, 0.32); } .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; } /* Markdown Editor */ .markdown-editor-container { margin-top: 0.5rem; } .markdown-editor-container .w-md-editor { background-color: white; } .markdown-editor-container .w-md-editor-text-input, .markdown-editor-container .w-md-editor-text-textarea, .markdown-editor-container .w-md-editor-text { font-size: 0.9rem !important; line-height: 1.6 !important; caret-color: #667eea !important; } .markdown-editor-container .w-md-editor-text-input { resize: none !important; } .markdown-editor-container .w-md-editor-text-textarea { resize: none !important; outline: none !important; border: none !important; box-shadow: none !important; } .markdown-editor-container .w-md-editor-toolbar { background-color: #f8fafc; border-bottom: 1px solid #e2e8f0; } .markdown-editor-container .w-md-editor-toolbar button { color: #64748b; text-align: left; } .markdown-editor-container .w-md-editor-toolbar button:hover { background-color: #e2e8f0; color: #334155; text-align: left; } /* Responsive Design */ @media (max-width: 768px) { .edit-kb-page { padding: 1rem; } .edit-card-header { padding: 1.5rem; } .edit-form { padding: 1.5rem; } .form-actions { flex-direction: column; } .content-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }