.detection-image {
    object-fit: contain;
    width: 50px;
    height: 50px;
}

.detection-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px;
    font-size: 8px;
    background-color: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    margin-top: 2px; /* Space between image and details */
}

/* Each detection-image-container stacks its contents vertically */
.detection-image-container {
    display: flex;
    flex-direction: column; /* Stack image and details vertically */
    justify-content: flex-start;
    align-items: center;
    width: 60px; /* Fixed width for each container */
    flex-shrink: 0; /* Prevent container from shrinking */
    margin-right: 5px; /* Space between containers */
}

/* The person-detection-profile arranges multiple detection-image-containers horizontally */
.person-detection-profile {
    display: inline-block; /* Change to inline-block to arrange horizontally */
    padding: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    width: 60px; /* Fixed width */
    margin-right: 5px; /* Add spacing between profiles */
    flex-wrap: wrap; /* Allow wrapping if too many items */
    gap: 5px; /* Space between wrapped rows */
    max-width: 60px; /* Limit the width to 60px */
}

/* Main container for all detection profiles */
#person-detection-debug-panel {
    position: fixed;
    white-space: nowrap; /* Prevent wrapping to new line */
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    z-index: 1000;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
}
