/** * Designer Panel CSS * * Right-side panel styling for Designer conversation examples in documentation. * This represents Designer as an accessory panel, not a WhatsApp-style chat. * * Usage: *
*
* Designer * ● Online *
*
*
User message
*
Assistant response
*
*
*/ /* ============================================ Panel Container ============================================ */ .designer-panel { background-color: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); margin: 20px 0; max-width: 420px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; overflow: hidden; } /* Dark mode */ @media (prefers-color-scheme: dark) { .designer-panel { background-color: #1e293b; border-color: #334155; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } } /* ============================================ Panel Header ============================================ */ .designer-header { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; } .designer-title { color: #ffffff; font-weight: 600; font-size: 14px; letter-spacing: 0.3px; } .designer-status { color: rgba(255, 255, 255, 0.9); font-size: 12px; } .designer-file { color: rgba(255, 255, 255, 0.85); font-size: 11px; font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; background: rgba(255, 255, 255, 0.15); padding: 2px 8px; border-radius: 4px; } /* ============================================ Messages Container ============================================ */ .designer-messages { padding: 16px; display: flex; flex-direction: column; gap: 12px; } /* ============================================ Individual Messages ============================================ */ .designer-msg { padding: 10px 14px; border-radius: 10px; line-height: 1.5; max-width: 95%; } /* User message - right aligned, purple tint */ .designer-msg.user { background-color: #eef2ff; color: #3730a3; align-self: flex-end; border-bottom-right-radius: 4px; } /* Assistant message - left aligned, gray */ .designer-msg.assistant { background-color: #f8fafc; color: #334155; align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid #e2e8f0; } /* Dark mode messages */ @media (prefers-color-scheme: dark) { .designer-msg.user { background-color: #3730a3; color: #e0e7ff; } .designer-msg.assistant { background-color: #0f172a; color: #e2e8f0; border-color: #334155; } } /* ============================================ Message Content ============================================ */ .designer-msg p { margin: 0 0 6px 0; } .designer-msg p:last-child { margin-bottom: 0; } .designer-msg strong { font-weight: 600; } .designer-msg code { background-color: rgba(0, 0, 0, 0.06); padding: 2px 6px; border-radius: 4px; font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; } @media (prefers-color-scheme: dark) { .designer-msg code { background-color: rgba(255, 255, 255, 0.1); } } /* Success indicator */ .designer-msg .success { color: #10b981; } /* Warning indicator */ .designer-msg .warning { color: #f59e0b; } /* Error indicator */ .designer-msg .error { color: #ef4444; } /* ============================================ Action Buttons in Messages ============================================ */ .designer-msg .designer-action { display: inline-block; background-color: #6366f1; color: #ffffff; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; margin: 6px 4px 0 0; cursor: pointer; transition: background-color 0.15s ease; } .designer-msg .designer-action:hover { background-color: #4f46e5; } .designer-msg .designer-action.secondary { background-color: #e2e8f0; color: #475569; } .designer-msg .designer-action.secondary:hover { background-color: #cbd5e1; } @media (prefers-color-scheme: dark) { .designer-msg .designer-action.secondary { background-color: #334155; color: #e2e8f0; } .designer-msg .designer-action.secondary:hover { background-color: #475569; } } /* ============================================ Typing Indicator ============================================ */ .designer-typing { display: flex; gap: 4px; padding: 10px 14px; } .designer-typing span { width: 8px; height: 8px; background-color: #94a3b8; border-radius: 50%; animation: typing 1.4s infinite ease-in-out both; } .designer-typing span:nth-child(1) { animation-delay: -0.32s; } .designer-typing span:nth-child(2) { animation-delay: -0.16s; } @keyframes typing { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } } /* ============================================ Variants ============================================ */ /* Full width variant */ .designer-panel.full-width { max-width: 100%; } /* Compact variant */ .designer-panel.compact { max-width: 360px; } .designer-panel.compact .designer-header { padding: 10px 14px; } .designer-panel.compact .designer-messages { padding: 12px; gap: 8px; } .designer-panel.compact .designer-msg { padding: 8px 12px; font-size: 13px; }