.viewport-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--panel-bg);
    padding: 12px;
    border-radius: 8px;
}

.model-preview-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#preview-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.model-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.model-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    color: #888;
    font-size: 12px;
}

.stat-value {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Control Hints */
.control-hints {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px;
    border-radius: 5px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.control-hints:hover {
    opacity: 1;
}

.hint {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hint-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #fff;
    min-width: 70px;
    text-align: center;
}

.hint-action {
    color: #888;
    font-size: 12px;
}

/* Animation Panel Enhancements */
.animation-panel {
    background: rgba(26, 26, 26, 0.95);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animation-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 12px 0;
}

.control-btn {
    background: #444;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.control-btn:hover {
    background: #555;
    transform: translateY(-1px);
}

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