body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); display: flex; margin: 0; height: 100vh; }
#sidebar { width: 260px; background:var(--sidebar-bg); color: white; padding: 20px; box-shadow: 2px 0 5px rgba(0,0,0,0.1); }
#sidebar h2 { font-size: 1.2rem; border-bottom: 1px solid #444; padding-bottom: 10px; }
.nav-link { display: block; padding: 10px; color: #ccc; text-decoration: none; border-radius: 4px; transition: 0.2s; cursor: pointer; }
.nav-link:hover { background:var(--link-hover); color: white; }
#main { flex: 1; overflow-y: auto; padding: 40px; scroll-behavior: smooth; }
.component-section { background: var(--panel); border-radius: 12px; padding: 30px; margin-bottom: 60px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.tag-name { background: var(--primary); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.9rem; }
.preview-box { border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin: 20px 0; background: white; min-height: 150px; display: flex; align-items: center; justify-content: center; position: relative;}
.props-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; background: #f8f9fa; padding: 20px; border-radius: 8px; }
.prop-item { display: flex; flex-direction: column; gap: 8px; }
.prop-item label { font-weight: bold; font-size: 0.85rem; color: #666; }
.prop-item input, .prop-item select, .prop-item textarea {padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit;}
.code-container { position: relative; margin-top: 20px; }
pre { background: var(--code-bg); color: #abb2bf; padding: 20px; border-radius: 8px; overflow-x: auto; font-size: 0.9rem; }
.copy-btn { position: absolute; right: 10px; top: 10px; background: #444; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }
.copy-btn:hover { background: #666; }
.events-list-meta { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.events-list-meta code { background: #e9ecef; color: #0d6efd; padding: 4px 8px; border-radius: 4px; font-size: 0.9em; }
.events-console { background: #1a1a1a; color: #a6e22e; font-family: 'Courier New', monospace; padding: 12px; height: 150px; overflow-y: auto; border-radius: 6px; border: 1px solid #333; font-size: 13px; }
.event-entry { margin-bottom: 4px; border-bottom: 1px solid #2a2a2a; padding-bottom: 2px; }
.event-time { color: #75715e; margin-right: 10px; }
.event-detail { color: #66d9ef; margin-left: 10px; }
.events-placeholder { color: #555; font-style: italic; text-align: center; margin-top: 50px; }