/* Face Scanning Progress Modal Styles */
.scan-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-item .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-bar-container {
    margin-bottom: 24px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.current-photo-preview {
    text-align: center;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.current-photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 12px;
    object-fit: contain;
}

.photo-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Face Preview in Naming Modal */
.face-preview-container {
    position: relative;
}

#facePreviewCanvas {
    max-width: 100%;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--surface);
}

/* Face List Improvements */
.sidebar-item.face-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.face-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.face-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.face-info {
    flex: 1;
    min-width: 0;
}

.face-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.face-photo-count {
    font-size: 12px;
    color: var(--text-secondary);
}

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

.sidebar-item.face-item:hover .face-actions {
    opacity: 1;
}

.face-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
}

.face-action-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.face-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.face-action-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scan-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-item .material-symbols-outlined {
        font-size: 24px;
    }

    .stat-value {
        font-size: 20px;
    }

    .current-photo-preview img {
        max-height: 150px;
    }
}