.person-detection-container {
    margin: 20px;
}

#person-detection-detector {
    width: 640px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.person-detection-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#person-detection-indicator {
    position: fixed;
    left: 0px;
    top: 10px;
    display: flex;
    align-items: center;
    padding: 4px 4px;
    font-size: 54px;
    gap: 8px;
    min-width: 70px;
    justify-content: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

#person-detection-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

#person-detection-indicator i {
    transition: color 0.3s ease;
}

#person-detection-indicator.active i {
    color: #007bff;
}

#person-detection-indicator .detection-count {
    font-size: 118px;
    color: #007bff;
    font-weight: 500;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

#person-detection-indicator.inactive i,
#person-detection-indicator.inactive .detection-count {
    display: none;
}

#person-detection-indicator.disabled i {
    color: #9e9e9e;
    animation: none;
}

#person-detection-indicator.disabled .detection-count {
    display: none;
}

#person-detection-indicator.disabled i::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #9e9e9e;
    transform: rotate(45deg);
    left: 0;
    top: 50%;
}

.person-detection-count {
    font-weight: bold;
    color: #007bff;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.person-detection-controls {
    margin: 10px 0;
    display: flex;
    gap: 20px;
}

.person-detection-controls-group {
    display: flex;
    gap: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.person-detection-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.person-detection-controls label input {
    cursor: pointer;
}

.person-detection-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-detection-toggle input {
    width: 18px;
    height: 18px;
}

.person-detection-detector ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.person-detection-detector li {
    position: relative;
    padding: 8px 8px 8px 25px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 20px;
}

.person-detection-detector li:before {
    content: '👤';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.person-detection-detector li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Animation for new items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.person-detection-detector li {
    animation: fadeIn 0.3s ease-out forwards;
}
