/* Flux3D - Control Styles - Enhanced */

/* Button Groups */
.button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mode-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mode-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--text-muted);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.mode-btn span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.mode-btn:hover {
    background: transparent;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.mode-btn:hover::before {
    opacity: 0.1;
}

.mode-btn:hover svg {
    fill: var(--accent-primary);
    transform: scale(1.1);
}

.mode-btn:hover span {
    color: var(--text-primary);
}

.mode-btn.active {
    background: transparent;
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.mode-btn.active::before {
    opacity: 1;
}

.mode-btn.active svg {
    fill: white;
}

.mode-btn.active span {
    color: white;
}

/* Control Rows - Enhanced */
.control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.control-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}

.control-row label:hover {
    color: var(--text-primary);
}

/* Checkboxes - Enhanced with animation */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

input[type="checkbox"]:checked {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    animation: checkmark 0.15s ease-out;
}

@keyframes checkmark {
    from {
        transform: rotate(45deg) scale(0);
    }
    to {
        transform: rotate(45deg) scale(1);
    }
}

/* Sliders - Enhanced with gradient track */
.slider-control {
    padding: 10px 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-control label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.slider-value {
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', 'Fira Code', monospace;
    color: var(--accent-primary);
    font-weight: 600;
    min-width: 40px;
    text-align: right;
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--bg-primary) 100%);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--accent-glow);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--bg-primary);
}

/* Buttons - Enhanced with hover effects */
.full-btn {
    width: 100%;
    padding: 12px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.full-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.full-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.full-btn:hover::before {
    opacity: 1;
}

.full-btn:active {
    transform: translateY(0);
}

.full-btn.primary {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.full-btn.primary:hover {
    box-shadow: var(--accent-glow-intense);
    transform: translateY(-2px);
}

.full-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Preset Buttons - Enhanced */
.camera-presets,
.lighting-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.preset-btn {
    padding: 10px 6px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.preset-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.preset-btn span {
    position: relative;
    z-index: 1;
}

.preset-btn:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.preset-btn:hover::before {
    opacity: 0.1;
}

.preset-btn.active {
    background: transparent;
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.preset-btn.active::before {
    opacity: 1;
}

/* Background Type Selector */
.bg-type-selector {
    display: flex;
    gap: 4px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.bg-type-btn {
    flex: 1;
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bg-type-btn:hover {
    color: var(--text-primary);
}

.bg-type-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* Color Pickers - Enhanced */
.color-picker-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.color-picker-row label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 52px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
}

input[type="color"]:hover::-webkit-color-swatch {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

/* Select Dropdowns - Enhanced */
select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:hover {
    border-color: var(--border-light);
    background-color: var(--bg-hover);
}

select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

/* Material Presets */
.material-presets {
    margin-top: 12px;
}

.material-presets > label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.material-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.material-btn {
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.material-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.material-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Clipping Controls */
.clipping-controls {
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.clipping-controls select {
    margin-top: 8px;
}

/* Tooltips */
[title] {
    position: relative;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.input-group label {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 60px;
}

.input-group input[type="number"] {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', monospace;
    outline: none;
    transition: border-color var(--transition-fast);
}

.input-group input[type="number"]:focus {
    border-color: var(--accent-primary);
}

/* Number Input Arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Dividers */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

/* Status Indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-dot.warning {
    background: var(--warning);
}

.status-dot.error {
    background: var(--error);
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

/* Tags/Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.accent {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    fill: var(--border-color);
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 13px;
}

/* Notification Toast - Enhanced with animations */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
    border-left: 4px solid var(--success);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-secondary) 100%);
}

.toast.error {
    border-color: var(--error);
    border-left: 4px solid var(--error);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-secondary) 100%);
}

.toast.info {
    border-color: var(--info);
    border-left: 4px solid var(--info);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-secondary) 100%);
}

.toast.warning {
    border-color: var(--warning);
    border-left: 4px solid var(--warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-secondary) 100%);
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    animation: toastIconPop 0.3s ease-out 0.2s both;
}

@keyframes toastIconPop {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.toast.success .toast-icon {
    fill: var(--success);
}

.toast.error .toast-icon {
    fill: var(--error);
}

.toast.info .toast-icon {
    fill: var(--info);
}

.toast.warning .toast-icon {
    fill: var(--warning);
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Button Row */
.button-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

/* Toggle Button */
.toggle-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.toggle-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Action Button */
.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

/* Context Menu - Enhanced glass effect */
.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-8px);
    transform-origin: top left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.context-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-fast);
}

.context-menu-item svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.context-menu-item span {
    flex: 1;
}

.context-menu-item .shortcut {
    font-size: 11px;
    color: var(--text-muted);
    flex: none;
    font-family: 'SF Mono', 'Monaco', monospace;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.context-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.context-menu-item:hover::before {
    height: 50%;
}

.context-menu-item:hover svg {
    fill: var(--accent-primary);
}

.context-menu-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.context-menu-separator {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Transform Numeric Inputs */
.transform-inputs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.transform-input-group {
    margin-bottom: 12px;
}

.transform-input-group > label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xyz-inputs {
    display: flex;
    gap: 6px;
}

.xyz-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    transition: border-color var(--transition-fast);
}

.xyz-input:focus-within {
    border-color: var(--accent-primary);
}

.xyz-input .axis {
    font-size: 11px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.xyz-input .axis.x {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.xyz-input .axis.y {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.xyz-input .axis.z {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.xyz-input input {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', monospace;
    outline: none;
    padding: 4px 0;
}

/* HDRI Upload Zone */
.hdri-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    margin: 10px 0;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hdri-upload-zone:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.hdri-upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.hdri-upload-zone svg {
    width: 24px;
    height: 24px;
    fill: var(--text-muted);
}

.hdri-upload-zone span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Turntable Controls */
.turntable-controls {
    padding-top: 8px;
    margin-top: 4px;
}

/* Camera Bookmarks */
.camera-bookmarks-section {
    margin-top: 8px;
}

.bookmarks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bookmarks-header label {
    font-size: 12px;
    color: var(--text-muted);
}

.icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.icon-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.icon-btn:hover::before {
    opacity: 1;
}

.icon-btn:hover svg {
    fill: white;
    transform: scale(1.1);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.icon-btn.active::before {
    opacity: 1;
}

.icon-btn.active svg {
    fill: white;
}

.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.empty-bookmark-message {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.bookmark-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.bookmark-item .bookmark-name {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.bookmark-item .bookmark-delete {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.bookmark-item:hover .bookmark-delete {
    opacity: 1;
}

.bookmark-item .bookmark-delete svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.bookmark-item .bookmark-delete:hover svg {
    fill: var(--error);
}

/* URL Import Input */
.url-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.url-input-row input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
}

.url-input-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.url-input-row input::placeholder {
    color: var(--text-muted);
}

/* Import/Export Section */
.import-section,
.export-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.import-section > label,
.export-section > label {
    font-size: 12px;
    color: var(--text-muted);
}

.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-buttons .full-btn {
    margin-top: 0;
}

/* Screenshot Options */
.screenshot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.screenshot-options .full-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.screenshot-options .full-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Annotation System Styles
   ======================================== */

/* Annotation Pin */
.annotation-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.annotation-pin:hover,
.annotation-pin.hovered {
    transform: translate(-50%, -100%) scale(1.1);
}

.annotation-pin.selected {
    z-index: 100;
}

.pin-marker {
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
}

.annotation-pin:hover .pin-marker,
.annotation-pin.hovered .pin-marker {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.annotation-pin.selected .pin-marker {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pin-number {
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pin-label {
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.annotation-pin:hover .pin-label,
.annotation-pin.hovered .pin-label,
.annotation-pin.selected .pin-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pin-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pin-description {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Annotation Panel Styles */
.annotation-mode-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    margin-bottom: 12px;
}

.annotation-mode-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse-dot 1.5s infinite;
}

.annotation-mode-indicator span {
    font-size: 12px;
    color: var(--accent-primary);
}

/* Annotations List */
.annotations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.annotation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.annotation-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.annotation-item.selected {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.annotation-item.hidden {
    opacity: 0.5;
}

.annotation-item-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.annotation-item-content {
    flex: 1;
    min-width: 0;
}

.annotation-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.annotation-item-title input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.annotation-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.annotation-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.annotation-item:hover .annotation-item-actions {
    opacity: 1;
}

.annotation-item-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.annotation-item-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.annotation-item-btn:hover {
    background: var(--bg-secondary);
}

.annotation-item-btn:hover svg {
    fill: var(--text-primary);
}

.annotation-item-btn.delete:hover svg {
    fill: var(--error);
}

.annotation-item-btn.visibility svg {
    fill: var(--text-muted);
}

.annotation-item-btn.visibility.hidden svg {
    fill: var(--text-muted);
    opacity: 0.5;
}

/* Annotation toolbar */
.annotation-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.annotation-toolbar .icon-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.annotation-toolbar .icon-btn span {
    font-size: 11px;
}

/* Empty state for annotations */
.annotations-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
}

.annotations-empty svg {
    width: 40px;
    height: 40px;
    fill: var(--border-color);
    margin-bottom: 8px;
}

.annotations-empty p {
    font-size: 12px;
    margin-bottom: 4px;
}

.annotations-empty small {
    font-size: 11px;
    opacity: 0.7;
}

/* Annotation Import/Export */
.annotation-io {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.annotation-io .full-btn {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Measurement System Styles
   ======================================== */

/* Measurement Labels (CSS2D) */
.measurement-label {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -150%);
    pointer-events: none;
    white-space: nowrap;
}

.measurement-label[data-type="distance"] {
    border-color: #00ff00;
    background: rgba(0, 40, 0, 0.9);
}

.measurement-label[data-type="angle"] {
    border-color: #ffaa00;
    background: rgba(40, 30, 0, 0.9);
}

.measurement-value {
    font-size: 13px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #00ff00;
}

.measurement-label[data-type="angle"] .measurement-value {
    color: #ffaa00;
}

/* Measurement Panel Styles */
.measurement-mode-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 6px;
    margin-bottom: 12px;
}

.measurement-mode-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse-dot 1.5s infinite;
}

.measurement-mode-indicator span {
    font-size: 12px;
    color: #00ff00;
}

/* Measurement Toolbar */
.measurement-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.measurement-toolbar .icon-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    height: auto;
    width: auto;
}

.measurement-toolbar .icon-btn span {
    font-size: 11px;
}

.measurement-toolbar .icon-btn.active {
    background: #00ff00;
    border-color: #00ff00;
}

.measurement-toolbar .icon-btn.active svg {
    fill: #000;
}

.measurement-toolbar .icon-btn.active span {
    color: #000;
}

.measurement-toolbar .icon-btn[data-mode="angle"].active {
    background: #ffaa00;
    border-color: #ffaa00;
}

/* Measurement Options */
.measurement-options {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
}

.measurement-options .control-row {
    padding: 4px 0;
}

/* Unit Selector */
.measurement-unit-selector {
    margin-bottom: 12px;
}

.measurement-unit-selector label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.measurement-unit-selector select {
    font-size: 12px;
    padding: 8px 12px;
}

/* Measurements List Header */
.measurements-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.measurements-list-header label {
    font-size: 12px;
    color: var(--text-muted);
}

.measurements-list-header .icon-btn.small {
    width: 24px;
    height: 24px;
}

.measurements-list-header .icon-btn.small svg {
    width: 14px;
    height: 14px;
}

/* Measurements List */
.measurements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.measurement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.measurement-item:hover {
    border-color: #00ff00;
    background: var(--bg-hover);
}

.measurement-item[data-type="angle"]:hover {
    border-color: #ffaa00;
}

.measurement-item.hidden {
    opacity: 0.5;
}

.measurement-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 255, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.measurement-item-icon svg {
    width: 16px;
    height: 16px;
    fill: #00ff00;
}

.measurement-item[data-type="angle"] .measurement-item-icon {
    background: rgba(255, 170, 0, 0.15);
}

.measurement-item[data-type="angle"] .measurement-item-icon svg {
    fill: #ffaa00;
}

.measurement-item-content {
    flex: 1;
    min-width: 0;
}

.measurement-item-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
    color: #00ff00;
}

.measurement-item[data-type="angle"] .measurement-item-value {
    color: #ffaa00;
}

.measurement-item-type {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.measurement-item-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.measurement-item:hover .measurement-item-actions {
    opacity: 1;
}

.measurement-item-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.measurement-item-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.measurement-item-btn:hover {
    background: var(--bg-secondary);
}

.measurement-item-btn:hover svg {
    fill: var(--text-primary);
}

.measurement-item-btn.delete:hover svg {
    fill: var(--error);
}

/* Empty state for measurements */
.measurements-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
}

.measurements-empty svg {
    width: 40px;
    height: 40px;
    fill: var(--border-color);
    margin-bottom: 8px;
}

.measurements-empty p {
    font-size: 12px;
    margin-bottom: 4px;
}

.measurements-empty small {
    font-size: 11px;
    opacity: 0.7;
}

/* Measurement Actions */
.measurement-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.measurement-actions .full-btn {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.measurement-actions .full-btn.danger {
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.3);
}

.measurement-actions .full-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

/* ========================================
   Animation Panel Styles
   ======================================== */

/* Animation Clips Section */
.animation-clips-section {
    margin-bottom: 12px;
}

.animation-clips-section label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.full-select {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.full-select:hover {
    border-color: var(--accent);
}

.full-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Animation Playback Controls */
.animation-playback-controls {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.playback-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.playback-buttons .icon-btn {
    width: 36px;
    height: 36px;
}

.playback-buttons .icon-btn.primary {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-color: var(--accent);
}

.playback-buttons .icon-btn.primary svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.playback-buttons .icon-btn.primary:hover {
    background: var(--accent-hover);
}

.playback-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.anim-timeline-slider {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.anim-timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.anim-timeline-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.anim-timeline-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.timeline-time {
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-family: 'SF Mono', 'Monaco', monospace;
    color: var(--text-muted);
}

/* Loop Mode Buttons */
.animation-option {
    margin-bottom: 12px;
}

.animation-option label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.loop-mode-buttons {
    display: flex;
    gap: 6px;
}

.loop-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.loop-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.loop-btn span {
    font-size: 10px;
    color: var(--text-muted);
}

.loop-btn:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.loop-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

.loop-btn.active svg {
    fill: var(--accent);
}

.loop-btn.active span {
    color: var(--accent);
}

/* Skeleton Section */
.skeleton-section {
    margin-bottom: 12px;
}

.skeleton-section .control-row {
    padding: 4px 0;
}

/* Morph Targets Section */
.morph-targets-section {
    margin-top: 12px;
}

.morph-targets-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.morph-targets-section .section-header label {
    font-size: 12px;
    color: var(--text-muted);
}

.morph-targets-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.morph-target-item {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 8px;
}

.morph-target-mesh-name {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.morph-target-slider {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.morph-target-slider:last-child {
    margin-bottom: 0;
}

.morph-target-slider label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
}

.morph-target-slider label span {
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.morph-target-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.morph-target-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.morph-target-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Animation Panel Clip Item */
.animation-clip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.animation-clip-item:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.animation-clip-item.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.animation-clip-item .clip-name {
    font-size: 12px;
    color: var(--text-primary);
}

.animation-clip-item .clip-duration {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* ========================================
   Performance Analysis Panel
   ======================================== */

/* Performance Mode Section */
.performance-mode-section {
    margin-bottom: 8px;
}

.performance-mode-section .hint-text {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Triangle Budget Section */
.triangle-budget-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.triangle-budget-section .section-header label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.budget-display {
    margin-bottom: 10px;
}

.budget-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.budget-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, #22c55e 50%, #ef4444 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.budget-fill.warning {
    background-position: 50% 0;
}

.budget-fill.exceeded {
    background-position: 100% 0;
    animation: budget-pulse 1s infinite;
}

@keyframes budget-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.budget-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.budget-percent {
    color: var(--text-muted);
}

.budget-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    margin: 10px 0;
}

.budget-warning svg {
    width: 16px;
    height: 16px;
    fill: #ef4444;
    flex-shrink: 0;
}

.budget-warning span {
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

/* Memory Section */
.memory-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.memory-section .section-header label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.memory-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.memory-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.memory-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.memory-stat .stat-value {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.memory-stat .stat-value.total {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Draw Calls Section */
.drawcalls-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.drawcalls-section .section-header label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.drawcalls-stats {
    margin-bottom: 8px;
}

.drawcalls-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.drawcalls-total .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.drawcalls-total .stat-value {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.drawcalls-breakdown {
    max-height: 120px;
    overflow-y: auto;
}

.drawcall-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    border-bottom: 1px solid var(--border-color);
}

.drawcall-item:last-child {
    border-bottom: none;
}

.drawcall-item .model-name {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.drawcall-item .drawcall-count {
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

/* Mesh Analysis Section */
.mesh-analysis-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mesh-analysis-section .section-header label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.mesh-issues {
    max-height: 150px;
    overflow-y: auto;
}

.mesh-issues-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
}

.mesh-issues-empty svg {
    width: 16px;
    height: 16px;
    fill: #22c55e;
    flex-shrink: 0;
}

.mesh-issues-empty span {
    font-size: 12px;
    color: #22c55e;
}

.mesh-issue-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: var(--bg-primary);
    border-radius: 6px;
    margin-bottom: 6px;
    border-left: 3px solid;
}

.mesh-issue-item.warning {
    border-left-color: #f59e0b;
}

.mesh-issue-item.info {
    border-left-color: #3b82f6;
}

.mesh-issue-item.error {
    border-left-color: #ef4444;
}

.mesh-issue-item .issue-type {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mesh-issue-item.warning .issue-type {
    color: #f59e0b;
}

.mesh-issue-item.info .issue-type {
    color: #3b82f6;
}

.mesh-issue-item.error .issue-type {
    color: #ef4444;
}

.mesh-issue-item .issue-message {
    font-size: 12px;
    color: var(--text-secondary);
}

.mesh-issue-item .issue-location {
    font-size: 11px;
    color: var(--text-muted);
}

/* Recommendations Section */
.recommendations-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.recommendations-section .section-header label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.recommendations-list {
    max-height: 200px;
    overflow-y: auto;
}

.recommendations-empty {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-primary);
    border-radius: 6px;
}

.recommendation-item {
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid;
}

.recommendation-item.high {
    border-left-color: #ef4444;
}

.recommendation-item.medium {
    border-left-color: #f59e0b;
}

.recommendation-item.low {
    border-left-color: #3b82f6;
}

.recommendation-item .rec-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.recommendation-item .rec-priority {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
}

.recommendation-item.high .rec-priority {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.recommendation-item.medium .rec-priority {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.recommendation-item.low .rec-priority {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.recommendation-item .rec-type {
    font-size: 11px;
    color: var(--text-muted);
}

.recommendation-item .rec-message {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.recommendation-item .rec-suggestion {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Full Analysis Button */
#run-full-analysis-btn {
    margin-top: 12px;
}

#run-full-analysis-btn svg {
    vertical-align: middle;
}

/* ========================================
   Command Palette - Enhanced Glass Design
   ======================================== */

.command-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
}

.command-palette-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.command-palette {
    width: 100%;
    max-width: 600px;
    max-height: 65vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-palette::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.command-palette-overlay.visible .command-palette {
    transform: translateY(0) scale(1);
}

.command-palette-search {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.command-palette-search .search-icon {
    width: 22px;
    height: 22px;
    fill: var(--accent-primary);
    flex-shrink: 0;
}

.command-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 17px;
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 500;
}

.command-palette-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.command-palette-hint {
    font-size: 11px;
    color: var(--text-muted);
    padding: 5px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.command-palette-results {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.command-palette-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 14px 6px;
    margin-top: 6px;
}

.command-palette-category:first-child {
    margin-top: 0;
}

.command-palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.command-palette-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-fast);
}

.command-palette-item:hover,
.command-palette-item.selected {
    background: var(--bg-hover);
}

.command-palette-item:hover::before,
.command-palette-item.selected::before {
    height: 50%;
}

.command-palette-item .command-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.command-palette-item .command-label mark {
    background: rgba(99, 102, 241, 0.25);
    color: var(--accent-primary);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.command-palette-item .command-shortcut {
    font-size: 11px;
    color: var(--text-muted);
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', 'Monaco', monospace;
    border: 1px solid var(--border-color);
}

.command-palette-empty {
    padding: 50px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.command-palette-empty::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--bg-tertiary);
    border-radius: 50%;
}

/* ========================================
   Settings Panel
   ======================================== */

.settings-section {
    margin-bottom: 16px;
}

.settings-section .section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.theme-toggle-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.theme-toggle-section label {
    font-size: 13px;
    color: var(--text-secondary);
}

.theme-buttons {
    display: flex;
    gap: 4px;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: fill var(--transition-fast);
}

.theme-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

.theme-btn:hover svg {
    fill: var(--text-secondary);
}

.theme-btn.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.theme-btn.active svg {
    fill: var(--accent-primary);
}

/* Recent Files List */
.recent-files-section {
    margin-top: 12px;
}

.recent-files-list {
    max-height: 200px;
    overflow-y: auto;
}

.recent-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recent-file-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.recent-file-item .file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-file-item .file-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--accent-primary);
}

.recent-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.recent-file-item .file-name {
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-file-item .file-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.recent-file-item .file-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.recent-file-item:hover .file-remove {
    opacity: 1;
}

.recent-file-item .file-remove:hover {
    background: var(--bg-active);
}

.recent-file-item .file-remove svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.recent-files-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.clear-recent-btn {
    margin-top: 8px;
}

/* Settings Import/Export */
.settings-io {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.settings-io .full-btn {
    flex: 1;
}

/* ========================================
   Transform Tools Overlay
   ======================================== */

/* Transform tools at the top */
.transform-tools-overlay {
    top: 20px !important;
    left: 20px !important;
    z-index: 12 !important;
}

/* Stats panel below transform tools - adjusts when transform is expanded */
.stats-overlay {
    top: 90px !important;  /* 20px + ~56px (transform panel collapsed height) + 14px gap */
    left: 20px !important;
    transition: top var(--transition-normal);
}

/* When transform tools are expanded, push stats panel down further */
.stats-overlay.transform-expanded {
    top: 170px !important;  /* Account for expanded transform panel */
}

.transform-tools-panel {
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.transform-tools-main {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
}

.transform-tool-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.transform-tool-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: all var(--transition-normal);
}

.transform-tool-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.transform-tool-btn:hover svg {
    fill: var(--text-primary);
}

.transform-tool-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
}

.transform-tool-btn.active svg {
    fill: white;
}

.transform-tools-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.transform-expand-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.transform-expand-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    transition: transform var(--transition-normal);
}

.transform-expand-btn:hover svg {
    fill: var(--text-primary);
}

.transform-expand-btn.expanded svg {
    transform: rotate(180deg);
}

.transform-tools-expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.transform-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.transform-option-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: all var(--transition-normal);
}

.transform-option-btn span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.transform-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.transform-option-btn:hover svg {
    fill: var(--text-primary);
}

.transform-option-btn:hover span {
    color: var(--text-primary);
}

.transform-option-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
}

.transform-option-btn.active svg {
    fill: var(--accent-primary);
}

.transform-option-btn.active span {
    color: var(--accent-primary);
}

/* ========================================
   Annotation Toolbar Redesigned
   ======================================== */

.annotations-panel-content {
    padding-top: 16px !important;
}

.annotation-toolbar-redesigned {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.annotation-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

.annotation-action-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.annotation-action-btn span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.annotation-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.annotation-action-btn:hover svg {
    fill: var(--text-primary);
}

.annotation-action-btn:hover span {
    color: var(--text-primary);
}

.annotation-action-btn.primary {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
}

.annotation-action-btn.primary svg {
    fill: white;
}

.annotation-action-btn.primary span {
    color: white;
}

.annotation-action-btn.primary:hover {
    box-shadow: var(--accent-glow);
    transform: translateY(-2px);
}

.annotation-action-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.annotation-action-btn.active svg {
    fill: white;
}

.annotation-action-btn.active span {
    color: white;
}

.annotation-io-row {
    display: flex;
    gap: 10px;
}

.annotation-io-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.annotation-io-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: all var(--transition-normal);
}

.annotation-io-btn span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.annotation-io-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.annotation-io-btn:hover svg {
    fill: var(--accent-primary);
}

.annotation-io-btn:hover span {
    color: var(--text-primary);
}

/* ========================================
   Screenshot Buttons Enhanced
   ======================================== */

.screenshot-panel-content {
    padding-top: 14px !important;
}

.screenshot-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.screenshot-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

.screenshot-btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.screenshot-btn-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: all var(--transition-normal);
}

.screenshot-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.screenshot-btn-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.screenshot-btn-shortcut {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', 'Fira Code', monospace;
}

.screenshot-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.screenshot-btn:hover .screenshot-btn-icon {
    background: rgba(99, 102, 241, 0.1);
}

.screenshot-btn:hover .screenshot-btn-icon svg {
    fill: var(--accent-primary);
}

.screenshot-btn.primary {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
}

.screenshot-btn.primary .screenshot-btn-icon {
    background: rgba(255, 255, 255, 0.15);
}

.screenshot-btn.primary .screenshot-btn-icon svg {
    fill: white;
}

.screenshot-btn.primary .screenshot-btn-title {
    color: white;
}

.screenshot-btn.primary .screenshot-btn-shortcut {
    color: rgba(255, 255, 255, 0.7);
}

.screenshot-btn.primary:hover {
    box-shadow: var(--accent-glow);
}

/* ========================================
   Lighting Preset Text Fix
   ======================================== */

.lighting-presets .preset-btn.active {
    color: white !important;
}

.lighting-presets .preset-btn.active span {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ensure preset button text is always visible */
.preset-btn.active,
.preset-btn.active span {
    color: white !important;
}

.preset-btn.active span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Model Card Redesigned
   ======================================== */

.model-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    min-height: 48px;
    overflow: hidden;
}

.model-item .model-thumbnail {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-item .model-thumbnail svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.model-item .model-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.model-item .model-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-width: 100%;
}

.model-item .model-meta {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions container - positioned as overlay on hover */
.model-item .model-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    background: linear-gradient(90deg, transparent 0%, var(--bg-primary) 20%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.model-item:hover .model-actions {
    opacity: 1;
    pointer-events: auto;
}

.model-item .model-action-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.model-item .model-action-btn svg {
    width: 13px;
    height: 13px;
    fill: var(--text-muted);
    transition: fill var(--transition-fast);
}

.model-item .model-action-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.model-item .model-action-btn:hover svg {
    fill: white;
}

.model-item .model-action-btn.delete:hover {
    background: var(--error);
    border-color: var(--error);
}

/* Active states for lock button */
.model-item .model-action-btn.active {
    background: var(--warning);
    border-color: var(--warning);
}

.model-item .model-action-btn.active svg {
    fill: white;
}

/* Selected model card */
.model-item.selected {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
}

.model-item.selected .model-name {
    color: var(--accent-primary);
}

/* Locked model indicator */
.model-item.locked::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--warning);
    border-radius: 50%;
}

/* Isolated model */
.model-item.isolated {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}

/* ========================================
   Transform Info Panel (bottom-left)
   Hidden by default - only shown when object selected
   ======================================== */

.transform-info {
    display: none;  /* Hidden by default */
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 11px;
    font-family: 'SF Mono', 'Monaco', 'Fira Code', monospace;
    min-width: 180px;
}

.transform-info.visible {
    display: block;
}

.transform-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.transform-info .info-row span:first-child {
    color: var(--text-muted);
    font-size: 10px;
}

.transform-info .info-row span:last-child {
    color: var(--accent-primary);
    font-weight: 600;
}
