.property-inspector { padding: 8px; display: flex; flex-direction: column; gap: 1px; overflow: visible; } .property-field { display: flex; flex-direction: row; align-items: center; min-height: 24px; padding: 4px 8px; background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border-subtle); gap: 8px; transition: background-color var(--transition-fast); overflow: hidden; } .property-field:hover { background: rgba(255, 255, 255, 0.03); } .property-field:last-child { border-bottom: none; } .property-label { flex: 0 0 40%; font-size: 11px; font-weight: 500; color: var(--color-text-secondary); margin: 0; user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.02em; display: flex; align-items: center; gap: 4px; } .property-controlled-icon { color: var(--color-text-muted); opacity: 0.6; display: flex; align-items: center; } .property-asset-drop.controlled { opacity: 0.6; cursor: not-allowed; } .property-label-draggable { cursor: ew-resize; position: relative; } .property-label-draggable::before { content: ''; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); width: 3px; height: 3px; background: var(--color-text-tertiary); border-radius: 50%; opacity: 0.5; } .property-label-draggable:hover::before { opacity: 1; background: var(--color-primary); } .property-input { flex: 1; background: var(--color-bg-inset); border: 1px solid var(--color-border-default); border-radius: 3px; padding: 3px 6px; color: var(--color-text-primary); font-size: 11px; font-family: var(--font-family-mono); min-width: 0; transition: all var(--transition-fast); } .property-input:hover { border-color: var(--color-border-hover); background: var(--color-bg-base); } .property-input:focus { outline: none; border-color: var(--color-primary); background: var(--color-bg-base); box-shadow: 0 0 0 1px var(--color-primary); } .property-input:disabled { opacity: 0.4; cursor: not-allowed; background: var(--color-bg-inset); } .property-input-number, .property-input-text { text-align: right; } /* Custom Dropdown */ .property-dropdown { flex: 1; position: relative; min-width: 0; } .property-dropdown-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--color-bg-inset); border: 1px solid var(--color-border-default); border-radius: 3px; padding: 3px 6px; color: var(--color-text-primary); font-size: 11px; font-family: var(--font-family-mono); cursor: pointer; transition: all var(--transition-fast); } .property-dropdown-trigger:hover { border-color: var(--color-border-hover); background: var(--color-bg-base); } .property-dropdown-trigger.open { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); } .property-dropdown-trigger:disabled { opacity: 0.4; cursor: not-allowed; } .property-dropdown-value { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .property-dropdown-arrow { margin-left: 4px; font-size: 10px; color: var(--color-text-tertiary); } .property-dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; margin-top: 2px; background: var(--color-bg-elevated); border: 1px solid var(--color-border-default); border-radius: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 1000; max-height: 200px; overflow-y: auto; } .property-dropdown-item { width: 100%; display: block; padding: 6px 8px; background: none; border: none; color: var(--color-text-primary); font-size: 11px; text-align: left; cursor: pointer; } .property-dropdown-item:hover { background: var(--color-bg-hover); } .property-dropdown-item.selected { background: var(--color-primary); color: var(--color-text-inverse); } .property-input-number::-webkit-inner-spin-button, .property-input-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .property-field-boolean { justify-content: space-between; } .property-toggle { position: relative; width: 36px; height: 18px; border-radius: 9px; border: none; cursor: pointer; transition: all var(--transition-base); flex-shrink: 0; padding: 0; } .property-toggle-off { background: var(--color-bg-inset); border: 1px solid var(--color-border-default); } .property-toggle-off:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); border-color: var(--color-border-hover); } .property-toggle-on { background: var(--color-primary); border: 1px solid var(--color-primary); } .property-toggle-on:hover:not(:disabled) { background: var(--color-primary-hover); border-color: var(--color-primary-hover); } .property-toggle:disabled { opacity: 0.4; cursor: not-allowed; } .property-toggle-thumb { position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: transform var(--transition-base); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .property-toggle-off .property-toggle-thumb { left: 2px; transform: translateX(0); } .property-toggle-on .property-toggle-thumb { left: 2px; transform: translateX(18px); } .property-color-wrapper { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; } .property-color-preview { width: 20px; height: 20px; border-radius: 3px; border: 1px solid var(--color-border-default); flex-shrink: 0; background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%); background-size: 8px 8px; background-position: 0 0, 0 4px, 4px -4px, -4px 0px; cursor: pointer; transition: transform var(--transition-fast); } .property-color-preview:hover { transform: scale(1.1); } .property-input-color { width: 0; height: 0; opacity: 0; position: absolute; pointer-events: none; } .property-input-color-text { flex: 1; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-family-mono); text-align: center; } /* Custom Color Picker */ .color-picker-popup { position: absolute; top: 100%; right: 0; margin-top: 4px; width: 200px; padding: 8px; background: var(--color-bg-elevated); border: 1px solid var(--color-border-default); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); z-index: 1000; } .color-picker-saturation { position: relative; width: 100%; height: 120px; border-radius: 4px; cursor: crosshair; overflow: hidden; } .color-picker-saturation-white { position: absolute; inset: 0; background: linear-gradient(to right, #fff, transparent); } .color-picker-saturation-black { position: absolute; inset: 0; background: linear-gradient(to top, #000, transparent); } .color-picker-cursor { position: absolute; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.3); transform: translate(-50%, -50%); pointer-events: none; } .color-picker-hue { position: relative; width: 100%; height: 12px; margin-top: 8px; border-radius: 6px; background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100% ); cursor: pointer; } .color-picker-hue-cursor { position: absolute; top: 50%; width: 6px; height: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.3); border-radius: 2px; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); } .color-picker-preview-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--color-border-subtle); } .color-picker-preview-box { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--color-border-default); flex-shrink: 0; } .color-picker-hex { font-family: var(--font-family-mono); font-size: 11px; color: var(--color-text-secondary); letter-spacing: 0.05em; } .property-asset-drop { flex: 1; display: flex; align-items: center; height: 22px; padding: 0 8px; background: var(--color-bg-input); border: 1px solid var(--color-border-default); border-radius: 3px; cursor: pointer; transition: all var(--transition-fast); min-width: 0; } .property-asset-drop:hover { border-color: var(--color-border-hover); } .property-asset-drop.dragging { border-color: var(--color-accent); background: rgba(99, 102, 241, 0.1); } .property-asset-text { flex: 1; font-size: 11px; color: var(--color-text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; } .property-asset-drop.has-value .property-asset-text { color: var(--color-text-primary); font-style: normal; } .property-asset-clear { width: 16px; height: 16px; margin-left: 4px; padding: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--color-text-tertiary); cursor: pointer; border-radius: 2px; font-size: 14px; line-height: 1; opacity: 0; transition: all var(--transition-fast); flex-shrink: 0; } .property-asset-drop:hover .property-asset-clear { opacity: 1; } .property-asset-clear:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-text-secondary); } .property-asset-actions { display: flex; align-items: center; gap: 2px; margin-left: 4px; } .property-asset-btn { width: 16px; height: 16px; padding: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--color-text-tertiary); cursor: pointer; border-radius: 2px; opacity: 0; transition: all var(--transition-fast); flex-shrink: 0; } .property-asset-drop:hover .property-asset-btn { opacity: 1; } .property-asset-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-accent); } .property-asset-btn-create { color: #4ade80; font-weight: bold; font-size: 14px; } .property-asset-btn-create:hover { background: rgba(74, 222, 128, 0.15); color: #4ade80; } .property-label-row { flex: 0 0 40%; display: flex; align-items: center; gap: 4px; min-width: 0; } .property-expand-btn { width: 16px; height: 16px; padding: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: var(--color-text-tertiary); cursor: pointer; border-radius: 2px; flex-shrink: 0; transition: all var(--transition-fast); } .property-expand-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-text-secondary); } .property-vector-compact { flex: 1; display: flex; gap: 4px; min-width: 0; } .property-vector-axis-compact { flex: 1; display: flex; align-items: center; gap: 3px; min-width: 0; } .property-input-number-compact { flex: 1 1 0; min-width: 0; text-align: right; padding: 1px 4px; font-size: 11px; height: 18px; line-height: 16px; } .property-vector-expanded { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 4px 0; min-width: 0; overflow: hidden; } .property-vector-axis { display: flex; align-items: center; gap: 6px; min-width: 0; } .property-vector-axis .property-input { flex: 1; min-width: 0; } .property-vector-axis-label { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; border-radius: 2px; flex-shrink: 0; letter-spacing: 0; text-transform: uppercase; } .property-vector-axis-x { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); } .property-vector-axis-y { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); } .property-vector-axis-z { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); } .property-vector-axis-w { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); } .property-field:focus-within { background: rgba(255, 255, 255, 0.04); } @keyframes property-field-highlight { 0% { background: rgba(0, 122, 204, 0.2); } 100% { background: transparent; } } .property-field.property-changed { animation: property-field-highlight 0.5s ease-out; } input[type="number"].property-input { -moz-appearance: textfield; appearance: textfield; } input[type="number"].property-input::-webkit-outer-spin-button, input[type="number"].property-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .property-input::placeholder { color: var(--color-text-tertiary); opacity: 0.5; } .property-input:hover::placeholder { opacity: 0.7; } @media (prefers-reduced-motion: reduce) { .property-input, .property-toggle, .property-toggle-thumb, .property-expand-btn, .property-color-preview { transition: none; } } /* Property Action Buttons */ .property-actions { display: flex; gap: 4px; margin-left: 4px; flex-shrink: 0; } .property-action-btn { display: flex; align-items: center; justify-content: center; padding: 3px 6px; background: var(--color-bg-base); border: 1px solid var(--color-border-default); border-radius: 3px; color: var(--color-text-secondary); cursor: pointer; font-size: 10px; transition: all var(--transition-fast); } .property-action-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); } .property-action-btn:active { transform: scale(0.95); } /* Animation Clips Editor */ .animation-clips-editor { padding: 8px; background: var(--color-bg-elevated); border-radius: 4px; } .clips-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } .clips-label { font-size: 11px; font-weight: 500; color: var(--color-text-secondary); } .add-clip-btn { padding: 4px; background: var(--color-bg-default); border: 1px solid var(--color-border-default); border-radius: 3px; color: var(--color-text-secondary); cursor: pointer; display: flex; align-items: center; } .add-clip-btn:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); } .clips-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; color: var(--color-text-muted); font-size: 11px; } .clips-list { display: flex; flex-direction: column; gap: 4px; } .clip-item { background: var(--color-bg-default); border: 1px solid var(--color-border-subtle); border-radius: 4px; overflow: hidden; } .clip-header { display: flex; align-items: center; gap: 6px; padding: 6px 8px; cursor: pointer; font-size: 11px; color: var(--color-text-primary); min-width: 0; } .clip-header:hover { background: rgba(255, 255, 255, 0.03); } .clip-header > svg { flex-shrink: 0; } .clip-name-input { flex: 1; min-width: 40px; background: transparent; border: none; color: var(--color-text-primary); font-size: 11px; padding: 2px 4px; border-radius: 2px; } .clip-name-input:focus { outline: none; background: var(--color-bg-elevated); } .frame-count { flex-shrink: 0; font-size: 10px; color: var(--color-text-muted); white-space: nowrap; } .preview-clip-btn { flex-shrink: 0; padding: 2px; background: transparent; border: none; color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; border-radius: 2px; transition: all 0.2s ease; } .preview-clip-btn:hover { background: rgba(34, 197, 94, 0.2); color: #22c55e; } .preview-clip-btn.is-playing { color: #22c55e; background: rgba(34, 197, 94, 0.15); } .preview-clip-btn.is-playing:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; } .set-default-btn { flex-shrink: 0; padding: 2px; background: transparent; border: none; color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; border-radius: 2px; transition: all 0.2s ease; } .set-default-btn:hover { background: rgba(250, 204, 21, 0.2); color: #facc15; } .set-default-btn.is-default { color: #facc15; background: rgba(250, 204, 21, 0.15); } .set-default-btn.is-default:hover { background: rgba(250, 204, 21, 0.25); } .clip-draggable-number { display: flex; align-items: center; gap: 4px; } .clip-draggable-label { color: var(--color-text-secondary); user-select: none; } .clip-draggable-number input { width: 50px; padding: 2px 4px; background: var(--color-bg-input); border: 1px solid var(--color-border-default); border-radius: 3px; color: var(--color-text-primary); font-size: 11px; -moz-appearance: textfield; appearance: textfield; } .clip-draggable-number input::-webkit-outer-spin-button, .clip-draggable-number input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .clip-draggable-number input:focus { outline: none; border-color: var(--color-primary); } .remove-clip-btn { flex-shrink: 0; padding: 2px; background: transparent; border: none; color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; border-radius: 2px; } .remove-clip-btn:hover { background: var(--color-danger); color: var(--color-text-inverse); } .clip-content { padding: 8px; border-top: 1px solid var(--color-border-subtle); background: rgba(0, 0, 0, 0.1); } .clip-settings { display: flex; gap: 12px; margin-bottom: 8px; font-size: 10px; color: var(--color-text-secondary); } .clip-settings label { display: flex; align-items: center; gap: 4px; } .clip-settings input[type="checkbox"] { width: 12px; height: 12px; } .clip-settings input[type="number"] { width: 50px; padding: 2px 4px; background: var(--color-bg-default); border: 1px solid var(--color-border-default); border-radius: 2px; color: var(--color-text-primary); font-size: 10px; } .frames-section { margin-top: 8px; } .frames-header { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--color-text-secondary); margin-bottom: 4px; } .frames-header button { padding: 2px 4px; background: var(--color-bg-default); border: 1px solid var(--color-border-default); border-radius: 2px; color: var(--color-text-secondary); cursor: pointer; display: flex; align-items: center; } .frames-header button:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); } .frames-empty { font-size: 10px; color: var(--color-text-muted); padding: 8px; text-align: center; } .frames-drop-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border: 1px dashed var(--color-border); border-radius: 4px; cursor: pointer; } .frames-drop-zone:hover { border-color: var(--color-accent); background: rgba(59, 130, 246, 0.05); } .frames-section { transition: background 0.2s; } .frames-list { display: flex; flex-direction: column; gap: 2px; } .frame-item { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--color-bg-default); border-radius: 2px; font-size: 10px; } .frame-index { width: 16px; color: var(--color-text-muted); text-align: center; } .frame-texture-field { flex: 1; min-width: 0; } .frame-texture-field .asset-field { margin-bottom: 0; } .frame-texture-field .asset-field__container { height: 22px; } .frame-texture-field .asset-field__icon { width: 22px; height: 20px; } .frame-texture-field .asset-field__input { height: 20px; padding: 0 4px; } .frame-texture-field .asset-field__value { font-size: 10px; } .frame-texture-field .asset-field__button { width: 18px; height: 18px; } .frame-duration { width: 45px; padding: 2px 4px; background: var(--color-bg-elevated); border: 1px solid var(--color-border-default); border-radius: 2px; color: var(--color-text-primary); font-size: 10px; text-align: right; } .frame-item button { padding: 2px; background: transparent; border: none; color: var(--color-text-muted); cursor: pointer; display: flex; align-items: center; border-radius: 2px; } .frame-item button:hover { background: var(--color-danger); color: var(--color-text-inverse); }