# Final CSS Implementation All CSS styles to be added to `/assets/css/sidebar.css` or `/assets/css/admin.css` --- ## Writing Mode Empty State Styles ```css /* Writing Mode Empty State */ .wpaw-writing-empty-state { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 2rem; background: #f9f9f9; border-radius: 8px; margin: 1rem 0; } .wpaw-empty-state-content { text-align: center; max-width: 400px; } .wpaw-empty-state-icon { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.8; } .wpaw-empty-state-content h3 { margin: 0 0 0.5rem 0; font-size: 1.5rem; color: #1e1e1e; font-weight: 600; } .wpaw-empty-state-content p { color: #666; margin: 0.5rem 0; line-height: 1.5; font-size: 0.95rem; } .wpaw-empty-state-button { margin: 1.5rem 0 1rem 0 !important; font-size: 1rem !important; } .wpaw-empty-state-hint { font-size: 0.9rem !important; margin-top: 1rem !important; color: #888 !important; } .wpaw-link-button { background: none; border: none; color: #2271b1; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: inherit; } .wpaw-link-button:hover { color: #135e96; } ``` --- ## Context Indicator Styles ```css /* Context Indicator */ .wpaw-context-indicator { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #f0f6fc; border: 1px solid #d0e3f0; border-radius: 6px; margin: 0.5rem 0 1rem 0; font-size: 0.85rem; } .wpaw-context-info { display: flex; gap: 1rem; align-items: center; } .wpaw-context-count { color: #0066cc; font-weight: 500; } .wpaw-context-tokens { color: #666; } .wpaw-context-clear { background: none; border: none; color: #cc0000; cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.85rem; transition: background-color 0.2s; } .wpaw-context-clear:hover { background: #ffe6e6; } ``` --- ## Contextual Action Card Styles ```css /* Contextual Action Cards */ .wpaw-contextual-action { display: flex; gap: 1rem; padding: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px; margin: 1rem 0; color: white; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .wpaw-action-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; } .wpaw-action-content { flex: 1; } .wpaw-action-content h4 { margin: 0 0 0.25rem 0; font-size: 1rem; font-weight: 600; color: white; } .wpaw-action-content p { margin: 0 0 0.75rem 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); line-height: 1.4; } .wpaw-action-content .components-button { background: white !important; color: #667eea !important; border: none !important; font-weight: 600 !important; padding: 0.5rem 1rem !important; font-size: 0.9rem !important; } .wpaw-action-content .components-button:hover { background: #f0f0f0 !important; color: #5568d3 !important; } /* Variant for different intent types */ .wpaw-contextual-action.intent-create-outline { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .wpaw-contextual-action.intent-start-writing { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); } .wpaw-contextual-action.intent-refine-content { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); } ``` --- ## Info Message Styles (for Writing mode notes warning) ```css /* System Info Messages */ .wpaw-ai-item[data-type="info"] { background: #e7f3ff; border-left: 4px solid #2271b1; padding: 0.75rem 1rem; margin: 0.5rem 0; border-radius: 4px; } .wpaw-ai-item[data-type="info"] .wpaw-ai-content { color: #1e1e1e; font-size: 0.9rem; line-height: 1.5; } ``` --- ## Additional Utility Styles ```css /* Mode Indicator Badge */ .wpaw-mode-indicator { display: inline-block; padding: 0.25rem 0.5rem; background: #f0f0f0; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 0.5rem; } .wpaw-mode-indicator.mode-chat { background: #e7f3ff; color: #0066cc; } .wpaw-mode-indicator.mode-planning { background: #fff3e0; color: #e65100; } .wpaw-mode-indicator.mode-writing { background: #f3e5f5; color: #6a1b9a; } /* Smooth transitions */ .wpaw-writing-empty-state, .wpaw-context-indicator, .wpaw-contextual-action { animation: fadeInUp 0.3s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } ``` --- All CSS styles are now documented and ready to be added to the stylesheet.