/* Video Object Tracking Styles */

/* Tracking overlay canvas */
.tracking-overlay {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

/* Track Panel */
.tracking-panel {
    margin: 8px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fafafa;
    overflow: hidden;
}

.tracking-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tracking-panel-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.tracking-panel-actions {
    display: flex;
    gap: 4px;
}

.tracking-panel-btn {
    padding: 3px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    font-size: 0.75rem;
    cursor: pointer;
    color: #475569;
}

.tracking-panel-btn:hover {
    background: #e2e8f0;
}

.tracking-track-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.tracking-no-tracks {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 12px;
    margin: 0;
}

/* Individual Track Item */
.tracking-track-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 2px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.1s;
}

.tracking-track-item:hover {
    background: #f8fafc;
}

.tracking-track-item.active {
    border-color: #6E56CF;
    background: rgba(110, 86, 207, 0.04);
}

.tracking-track-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tracking-track-label {
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.tracking-track-info {
    font-size: 0.7rem;
    color: #94a3b8;
}

.tracking-track-delete {
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px;
    border-radius: 3px;
}

.tracking-track-delete:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Interpolation type selector */
.tracking-interpolation-select {
    padding: 2px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.75rem;
    background: white;
}

/* Timeline track bars */
.tracking-timeline-bar {
    position: absolute;
    height: 8px;
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
}

.tracking-timeline-bar:hover {
    opacity: 0.9;
}

.tracking-keyframe-marker {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid white;
    cursor: pointer;
}

/* Tracking Controls Group (in toolbar) */
.tracking-controls-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    border-left: 1px solid #e2e8f0;
}

.tracking-btn {
    padding: 4px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
    color: #475569;
    transition: all 0.15s;
}

.tracking-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #6E56CF;
    color: #6E56CF;
}

.tracking-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tracking-btn.delete-btn:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.interpolation-select {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
    color: #475569;
    cursor: pointer;
}

.interpolation-select:hover {
    border-color: #6E56CF;
}

/* Tracking instructions */
.tracking-instructions {
    font-size: 0.8rem;
    color: #64748b;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
